Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pageviewapi not working on python 3.10 #7

Open
andres-trrs opened this issue Jul 6, 2022 · 1 comment
Open

pageviewapi not working on python 3.10 #7

andres-trrs opened this issue Jul 6, 2022 · 1 comment

Comments

@andres-trrs
Copy link

andres-trrs commented Jul 6, 2022

raceback (most recent call last):
File "c:\Users\User\Desktop\universidad\base de datos\INFO133_2022-main\nlp\demo_wikipedia_2.py", line 2, in
import pageviewapi
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pageviewapi_init_.py", line 3, in
from pageviewapi.client import (
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pageviewapi\client.py", line 10, in
from attrdict import AttrDict
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\attrdict_init_.py", line 5, in
from attrdict.mapping import AttrMap
File "C:\Users\User\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\attrdict\mapping.py", line 4, in
from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\lib\collections_init_.py)

@jagra26
Copy link

jagra26 commented Mar 25, 2024

I made a fork of AttrDict with the changes to run in python 3.10.

First, run:

pip install git+https://github.com/jagra26/AttrDict.git

and rerun:

pip install pageviewapi

pageviewapi works fine again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants