Installation issue wrt python version

17 views
Skip to first unread message

Ray Wakeland

unread,
Mar 15, 2025, 3:19:10 PMMar 15
to madmom-users

Hi.  I used conda to create an environment with python 3.13.2 and all the other listed pre-requisites except PyAudio, because I had to use pip to get a recent-enough version of PyAudio, ending up with PyAudio 0.2.14.  Then I used pip to install madmom, ending up with madmom 0.16.1.

When I try to import madmom in jupyterlab (3.3.2), I get this error:

ImportError: cannot import name 'MutableSequence' from 'collections' (C:\Users\ray_w\trnscrpt_proj\trnscrpt_env\Lib\collections\__init__.py)

Getting help from a friend, I was told that " the MutableSequences class was moved from collections to collections.abc in Python 3.10"  He suggested that make an environment with Python 3.9 and numpy 1.19.

Is the problem that I'm encountering a "bug", or a failure on my part?

Thanks!
Ray








khubaib ahmad

unread,
Mar 15, 2025, 3:22:51 PMMar 15
to Ray Wakeland, madmom-users
try to create a virual env with 3.8 or 3.10 for now. Also look into madmom documentation for learning the supported python versions.
Or try to install madmom for yourself with editable version so that you may debug , resolve and recompile it for yourself.


From: madmom...@googlegroups.com <madmom...@googlegroups.com> on behalf of Ray Wakeland <raywa...@gmail.com>
Sent: Sunday, March 16, 2025 12:19:10 AM
To: madmom-users <madmom...@googlegroups.com>
Subject: Installation issue wrt python version
 
--
You received this message because you are subscribed to the Google Groups "madmom-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to madmom-users...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/madmom-users/467ac7f9-3a34-4118-8eb2-7716e3c47ab1n%40googlegroups.com.

Ray Wakeland

unread,
Mar 15, 2025, 3:41:42 PMMar 15
to madmom-users
OK, thanks.

WRT " look into madmom documentation for learning the supported python versions",  

https://madmom.readthedocs.io/en/latest/installation.html says simply "you must have either Python 2.7 or Python 3.5 or newer".

The main text of https://pypi.org/project/madmom/ [madmom 0.16.1] says "you must have either Python 2.7 or Python 3.3 or newer", but upon further scrutinizing I see that on the left sidebar has

Programming Language

Should this have made me realize that there was an upper limit to the python version?

Thanks!

khubaib ahmad

unread,
Mar 15, 2025, 3:44:19 PMMar 15
to Ray Wakeland, madmom-users
Yes. So far my experience with Madmom is with python 3.8. Also I got into numpy issues that i resolved after debugging.


Sent: Sunday, March 16, 2025 12:41:42 AM
To: madmom-users <madmom...@googlegroups.com>
Subject: Re: Installation issue wrt python version
 

Ray Wakeland

unread,
Mar 15, 2025, 4:37:51 PMMar 15
to madmom-users
Well, for someone of my python abilities, this translates to "madmom doesn't work right now".

Ray Wakeland

unread,
Mar 19, 2025, 9:35:24 AMMar 19
to madmom-users
I now have an installation that can run most parts of the tutorials using Python 3.8.20 and numpy 1.19.5.  The key is to keep other installed packages from upgrading to numpy 2.anything.  At some point I successfully used 

pip install numpy==1.19.5 --upgrade

to downgrade numpy back from 2.someting that had been introduced by another package, maybe ipykernels.

Thanks to khub... for the suggestion to go back to Python 3.8.


On Saturday, March 15, 2025 at 3:22:51 PM UTC-4 khub...@gmail.com wrote:

khubaib ahmad

unread,
Mar 19, 2025, 9:59:30 AMMar 19
to Ray Wakeland, madmom-users
I am glad it worked out. 


Sent: Wednesday, March 19, 2025 6:35:24 PM
To: madmom-users <madmom...@googlegroups.com>
Subject: Re: Installation issue wrt python version
 
Reply all
Reply to author
Forward
0 new messages