Skip to content
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

Cannot import name 'MutableSequence' from 'collections' (Python 3.10) #8

Open
michalzmuda opened this issue Sep 2, 2022 · 2 comments

Comments

@michalzmuda
Copy link

I get the following error when I try to use IPAString in new project

from ipapy.ipastring import IPAString

if __name__ == '__main__':
    IPAString(unicode_string="tɛst")

Error:

Traceback (most recent call last):
  File "D:\dev\tes1\main.py", line 1, in <module>
    from ipapy.ipastring import IPAString
  File "D:\dev\tes1\venv\lib\site-packages\ipapy\ipastring.py", line 10, in <module>
    from collections import MutableSequence
ImportError: cannot import name 'MutableSequence' from 'collections' (C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.1776.0_x64__qbz5n2kfra8p0\lib\collections\__init__.py)

Resolution is to change ipastring.py:10:
from
from collections import MutableSequence
to
from collections.abc import MutableSequence

@Pita
Copy link

Pita commented Dec 14, 2022

See #5

@nickrhight
Copy link

Has this been fixed? I'm having the same issue.

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

No branches or pull requests

3 participants