You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
Activity
jagra26 commentedon Mar 25, 2024
I made a fork of AttrDict with the changes to run in python 3.10.
First, run:
and rerun:
pageviewapi works fine again.
PierreSelim commentedon May 15, 2026
Sorry for the delay, I am in the process of modernizing the library, and drop the support of old python.
We should soon officially support 3.10+ (we have reproduced the behaviour of AttrDict without using it anymore): #8
So hopefully this will be closed soon.
PierreSelim commentedon May 17, 2026
Now the version in master supports Python 3.10+ (and drops former version as they are old). I'll push a release later next week.
PierreSelim commentedon May 18, 2026
The v0.5.0 does support Python 3.10 and is available on pypi.