Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ImportError: cannot import name 'MutableSequence' from 'collections' #535

@Winter-Sno

Description

@Winter-Sno

Expected behaviour

I want to do onset detection in a classical music piece.
I expect the program to return an arraylist like [1,2,3,4,...] marking the onset timestamp of each note.

Actual behaviour

The program did nothing and an error like this occurred. (╥﹏╥...)

Traceback (most recent call last):
  File "D:\workspace\SRT_simulation\madmom_note_extract.py", line 1, in <module>
    import madmom
  File "D:\anaconda3\Lib\site-packages\madmom\__init__.py", line 24, in <module>
    from . import audio, evaluation, features, io, ml, models, processors, utils
  File "D:\anaconda3\Lib\site-packages\madmom\audio\__init__.py", line 27, in <module>
    from . import comb_filters, filters, signal, spectrogram, stft
  File "madmom\\audio\\comb_filters.pyx", line 15, in init madmom.audio.comb_filters
  File "D:\anaconda3\Lib\site-packages\madmom\processors.py", line 23, in <module>
    from collections import MutableSequence
ImportError: cannot import name 'MutableSequence' from 'collections' (D:\anaconda3\Lib\collections\__init__.py)

Steps needed to reproduce the behaviour

import madmom

filename = '01.Overture.flac'


def madmom_get_note_map(filename):
    proc = madmom.features.onsets.CNNOnsetProcessor()
    proc(filename)


if __name__ == '__main__':
    madmom_get_note_map(filename)

Information about installed software

python 3.11 (using anaconda)
madmom 0.16.1
numpy 1.24.3
scipy 1.11.1
cython 3.0.8
mido 1.3.2
packaging 23.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions