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

ImportError: cannot import name 'MutableMapping' from 'collections' #22

Open
mxmilkiib opened this issue Jul 14, 2022 · 0 comments
Open

Comments

@mxmilkiib
Copy link

Getting this atm:

% pip3 install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: docopt>=0.6.1 in /usr/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.6.2)
Requirement already satisfied: Jinja2>=2.10.1 in /usr/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (3.1.2)
Requirement already satisfied: MarkupSafe>=1.0.0 in /usr/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (2.1.1)
Collecting mutagenx>=1.24
  Downloading mutagenx-1.24.tar.gz (830 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 831.0/831.0 kB 2.8 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      /var/tmp/pip-install-180a0ll6/mutagenx_350a9f28363b44a0b5e489d6e2ab7704/setup.py:15: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
        from imp import reload
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/var/tmp/pip-install-180a0ll6/mutagenx_350a9f28363b44a0b5e489d6e2ab7704/setup.py", line 223, in <module>
          from mutagenx import version_string
        File "/var/tmp/pip-install-180a0ll6/mutagenx_350a9f28363b44a0b5e489d6e2ab7704/mutagenx/__init__.py", line 35, in <module>
          from collections import MutableMapping
      ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

This is on Arch btw. Mutagen is available in the community repos; community/python-mutagen 1.45.1-6

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

1 participant