Skip to content
New issue

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

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

Already on GitHub? # to your account

"ImportError: cannot import name 'Mapping' from 'collections' (C:\ProgramData\anaconda3\lib\collections\__init__.py)" #386

Open
lnxq opened this issue Apr 11, 2023 · 0 comments

Comments

@lnxq
Copy link

lnxq commented Apr 11, 2023

Environment

Windows 11
Python 3.10.9
pip install qgrid
Jupyter lab packages:
bqplot v0.5.40 enabled ok (python, bqplot)
jupyterlab-plotly v5.14.1 enabled ok
jupyterlab_pygments v0.2.2 enabled ok (python, jupyterlab_pygments)
@jupyter-widgets/jupyterlab-manager v5.0.7 enabled ok (python, jupyterlab_widgets)
@voila-dashboards/jupyterlab-preview v2.2.0 enabled ok (python, voila)

Description of Issue

When attempting to implement python qgrid in a data analysis script, the following error was raised:
"ImportError: cannot import name 'Mapping' from 'collections' (C:\ProgramData\anaconda3\lib\collections_init_.py)"

I have attempted to reinstall various related packages etc., and I have tried the several answers that relate to it when searched online, but nothing seems to work. For instance:

I added the following lines to the "C:\ProgramData\anaconda3\lib\collections_init_.py" file

from _collections_abc import Mapping
from _collections_abc import MutableMapping
from _collections_abc import Sequence

so I got by the 'Mapping' package error, only to get an error for the 'Iterable' package.
Fix one error with the package, only for another related error to crop up.

Spent lots of time trying to solve this, to no avail. Sounds like a promising package, but I can't get it to work.

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

No branches or pull requests

1 participant