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' #509

Open
asapsmc opened this issue Oct 27, 2022 · 2 comments
Open

Cannot Import name 'MutableSequence' from 'collections' #509

asapsmc opened this issue Oct 27, 2022 · 2 comments

Comments

@asapsmc
Copy link

asapsmc commented Oct 27, 2022

I'm getting this error when I try to import from madmom:

Exception has occurred: ImportError
cannot import name 'MutableSequence' from 'collections' (/Users/machine/miniforge3/envs/22env/lib/python3.10/collections/__init__.py)
    from madmom.audio.spectrogram import FilteredSpectrogramProcessor, LogarithmicSpectrogramProcessor, SpectrogramDifferenceProcessor

I'm running in a conda environment with the following versions:
python 3.9.7
madmom 0.16.1
numpy 1.21.4

@inikishev
Copy link

inikishev commented Nov 11, 2022

I'm getting this error when I try to import from madmom:

Exception has occurred: ImportError
cannot import name 'MutableSequence' from 'collections' (/Users/machine/miniforge3/envs/22env/lib/python3.10/collections/__init__.py)
    from madmom.audio.spectrogram import FilteredSpectrogramProcessor, LogarithmicSpectrogramProcessor, SpectrogramDifferenceProcessor

I'm running in a conda environment with the following versions: python 3.9.7 madmom 0.16.1 numpy 1.21.4

u need to add
from collections.abc import MutableMapping, MutableSequence

@orrp
Copy link

orrp commented Aug 14, 2023

This will be an issue for any Python version 3.10 or higher: https://stackoverflow.com/questions/70870041/cannot-import-name-mutablemapping-from-collections

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