We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
get_data()
loaders
this error is happening `ImportError Traceback (most recent call last) in <cell line: 7>() 5 6 import numpy as np ----> 7 from nlpia.loaders import get_data 8 from sklearn.decomposition import PCA 9
1 frames /usr/local/lib/python3.10/dist-packages/pugnlp/util.py in 45 import warnings 46 from traceback import print_exc ---> 47 from collections import OrderedDict, Mapping, Counter 48 from itertools import islice 49 from decimal import Decimal, InvalidOperation, InvalidContext
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the "Open Examples" button below.`
The text was updated successfully, but these errors were encountered:
Got the same error as you did I've show the screen shots below, Hopefully you find them helpful. This is the error I got, similar to yours
It shows that it's due to importing the Mapping class from the wrong library
Change the import such that Mapping is imported from collections.abc from collections.abc import Mapping
collections.abc
from collections.abc import Mapping
After fixing that you may or may not get a second error as the one below
Much like the first one, it indicates that mapping has been imported from the wrong library.
Adjust it like you did the previous one as follows from collections.abc import Mapping
Hopefully this helps. Thanks
Sorry, something went wrong.
No branches or pull requests
this error is happening
`ImportError Traceback (most recent call last)
in <cell line: 7>()
5
6 import numpy as np
----> 7 from nlpia.loaders import get_data
8 from sklearn.decomposition import PCA
9
1 frames
/usr/local/lib/python3.10/dist-packages/pugnlp/util.py in
45 import warnings
46 from traceback import print_exc
---> 47 from collections import OrderedDict, Mapping, Counter
48 from itertools import islice
49 from decimal import Decimal, InvalidOperation, InvalidContext
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.`
The text was updated successfully, but these errors were encountered: