-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix Python 3.10 compatibility #3
Comments
@emso-c python_version arguments in setup.py exist to resolve a conflict between tensorflow and numpy versions that existed in python <3.8. Having said that, you are correct. We currently do not support 3.10 because of cyhunspell which is used for spelling correction. However the error I receive on 3.10 comes from cyhunspell not being installed, rather than your error so I assume you somehow managed to install cyhunspell on 3.10. There was already a long-term plan to improve spelling correction and perhaps bypass hunspell algorithm completely. Thanks for bringing this up. |
@meliksahturker Thanks for your response. And yes, as you said I've resolved the issue by following these steps. The current issue occured after the installation. Kolay gelsin :) |
@emso-c Moreover: There are open issues related to 3.10 and conda on cython hunspell github. both of which indicate MSeal is not in active development of the package and is open to volunteers that will contribute to/maintain cyhunspell. |
I've opened a PR in So until this PR is merged (if the maintainer is still active), you can use my branch. |
install_requires
insetup.py
suggests that the package works withpython_version < "3.8"
andpython_version >= "3.8"
but the package is not compatible with Python 3.10 due to dependency cython_hunspell that uses cacheman package.The problem is that in Python 3.10,
MutableMapping
moved fromcollections
tocollections.abc
.You can see that
MutableMapping
is still being imported fromcollections
in this file.As far as I can see said packages are not maintained properly. So maybe migrating away from them would be a solution. For the time being, the only solution other than fixing the error by hand is downgrading the Python version, which is not feasible in the long run IMHO.
To Reproduce:
Install and import the package
Expected Result:
Package working properly.
Actual Result:
Error message saying
ImportError: cannot import name 'MutableMapping' from 'collections'
Environment:
Python 3.10
The text was updated successfully, but these errors were encountered: