madmom icon indicating copy to clipboard operation
madmom copied to clipboard

Pip packages for Python 3.8 and 3.9 missing

Open superbock opened this issue 4 years ago • 5 comments

Expected behaviour

Installing via pip install madmom should work for newer Python versions as well.

Actual behaviour

$ pip install madom
ERROR: Could not find a version that satisfies the requirement madom
ERROR: No matching distribution found for madom

superbock avatar Feb 26 '21 09:02 superbock

Ubuntu 20.0, Python 3.8.7, I can successfully install madmom 0.16.1 by pip install madmom.

However, I met import error after I successfully installed madmom 0.17.dev0 (to use the hpss submodule in audio) by pip install -e git+https://github.com/CPJKU/madmom#egg=madmom

Selection_011

Selection_010

Reinstall did not solve it.

snownstone avatar Mar 19 '21 04:03 snownstone

Installation via pip install -e git+https://github.com/CPJKU/madmom#egg=madmom is not supported, since the package contains code which needs to be compiled.

I will update the PyPI packages soon and include compatibility for newer Python versions. In the mean time you can install from source as described here: https://madmom.readthedocs.io/en/latest/installation.html#install-from-source

superbock avatar Mar 19 '21 08:03 superbock

I read the instruction of install from source, but I did not follow it because of my confusion about the procedure in pyenv. I will try again as the suggested way.

Thank you very much for your excellent work and generous sharing.

snownstone avatar Mar 19 '21 09:03 snownstone

@snownstone The solution is either to update your Numpy to v1.20 or wait for my PR https://github.com/CPJKU/madmom/pull/474 to be merged.

Btw @superbock, installation via pip install -e git+https://github.com/CPJKU/madmom#egg=madmom should work (again) after that, it's not the cause of this error. The reason why pip install madmom works in this case is that it uses a wheel that has been build before Numpy v1.20 was released. If you'd build wheels for madmom v0.16.1 and/or Python 3.8 or 3.9 at this moment, you'd risk running into the same problem.

jpauwels avatar May 06 '21 10:05 jpauwels

@snownstone The solution is either to update your Numpy to v1.20 or wait for my PR #474 to be merged.

Btw @superbock, installation via pip install -e git+https://github.com/CPJKU/madmom#egg=madmom should work (again) after that, it's not the cause of this error. The reason why pip install madmom works in this case is that it uses a wheel that has been build before Numpy v1.20 was released. If you'd build wheels for madmom v0.16.1 and/or Python 3.8 or 3.9 at this moment, you'd risk running into the same problem.

With this I could successfully install on python 3.10.4

danuo avatar Apr 18 '22 18:04 danuo