-
Notifications
You must be signed in to change notification settings - Fork 34
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
Can not import this package on python 3.11 #24
Comments
Hi, First of all, thanks for your excellent repository. I faced the same issue in Python 3.10. |
I faced the same issue in python 3.10 |
Hi. @tayyebehsaeedi, thanks for your solution. My problem was solved by changing |
Thank you the modified import worked for me on python 3.11, but I had to upgrade nltk pip install nltk --upgrade Successfully installed nltk-3.8.1 |
For python 3.11, setup.py should replace this line:
by this line: Also mentioned in this post, replace in file token_merger.py: Python <= 3.9from collections import Iterable Python > 3.9from collections.abc import Iterable |
Hi everyone
When I want to import the Parivar package on Python 3.11, It can not be imported because of the 'Iterable' of the 'collections' package. Actually, the following code of the Parsivar package is not called:
try:
# Python <= 3.9
from collections import Iterable
except ImportError:
# Python > 3.9
from collections.abc import Iterable
How can I fix this problem?
I must mention that I install the Parsivar package by following the code:
pip install git+https://github.com/ICTRC/Parsivar
Looking forward to hearing from you
Best Regards
Tayyebeh Saeedi
The text was updated successfully, but these errors were encountered: