Closed briansemrau closed 1 year ago
This might be due to insufficiently declared dependencies in the build library used (https://gitlab.com/thiblahute/mesonpep517, or rather my own fork of it).
Can you change your requirements.txt
to include meson[ninja]
and try again?
I've updated the rtmidi
branch of my fork of mesonpep517, which is used by python-rtmidi, to depend on meson[ninja]
. So adding this to your requirements.txt
shouldn't be necessary anymore.
Could you test installation from PyPI again?
Installation on Windows appears works with no issue. Will later confirm for ubuntu on WSL2.
Thanks. That sounds promising. Let us know.
I am having the same issue on NixOS with python3.12 :confused:
@theoparis Please retry the installation from the source distribution with:
pip -v install --user --upgrade --no-cache-dir --no-binary python-rtmidi --log python-rtmidi-install.log python-rtmidi
This installs the package under ~/.local/lib
and doesn't mess with you system libs.
Please post the contents of python-rtmidi-install.log
here (between triple backticks).
You can uninstall it with:
pip uninstall python-rtmidi
To test whether the installation actually works, run
python -c 'import rtmidi; print(rtmidi.__file__); print(rtmidi.MidiOut().get_ports())'
For JACK or pipewire-jack (make sure server is running):
python -c 'import rtmidi; print(rtmidi.MidiOut(rtapi=rtmidi.API_UNIX_JACK).get_ports())'
This should output a Python list of available output port names.
I tried with WSL2 like OP and I get a different error. Strangely it cannot find the mesonpep517 module, while having correctly installed it just before.
Successfully installed cython-0.29.35 meson-1.1.1 mesonpep517-0.2 ninja-1.11.1 packaging-23.1 setuptools-67.8.0 toml-0.10.2 wheel-0.40.0
...
ModuleNotFoundError: No module named 'mesonpep517'
Binary wheel install works perfectly 'tho.
Looks very much like a WSL2-specific problem to me.
There's a chance the migration to python-meson will solve this.
confirmed that 1.5.3 installs correctly on WSL2 Ubuntu 20.04 LTS from binary wheel.
Installation succeeds with version 1.4.9 but not 1.5.0
Running
Ubuntu 20.04 LTS (GNU/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64)
requirements.txt:
error: