Thank you, it was a first step. Now I have a problem with jack:
===========================================================================
Collecting python-rtmidi
Downloading python-rtmidi-1.4.9.tar.gz (251 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 251.2/251.2 KB 6.6 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status ‘done’
Building wheels for collected packages: python-rtmidi
Building wheel for python-rtmidi (setup.py): started
Building wheel for python-rtmidi (setup.py): finished with status ‘error’
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [41 lines of output]
Package jack was not found in the pkg-config search path.
Perhaps you should add the directory containing `jack.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘jack’ found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/rtmidi
copying rtmidi/midiconstants.py → build/lib.linux-x86_64-3.10/rtmidi
copying rtmidi/midiutil.py → build/lib.linux-x86_64-3.10/rtmidi
copying rtmidi/init.py → build/lib.linux-x86_64-3.10/rtmidi
copying rtmidi/version.py → build/lib.linux-x86_64-3.10/rtmidi
running egg_info
writing python_rtmidi.egg-info/PKG-INFO
writing dependency_links to python_rtmidi.egg-info/dependency_links.txt
writing top-level names to python_rtmidi.egg-info/top_level.txt
reading manifest file ‘python_rtmidi.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no previously-included files found matching ‘.appveyor.yml’
warning: no previously-included files found matching ‘.travis.yml’
warning: no previously-included files found matching ‘.rst.in’
no previously-included directories found matching ‘ci’
warning: no previously-included files matching ‘pycache’ found under directory '’
warning: no previously-included files matching ‘.py[co]’ found under directory '’
adding license file ‘LICENSE.txt’
adding license file ‘AUTHORS.rst’
writing manifest file ‘python_rtmidi.egg-info/SOURCES.txt’
running build_ext
building 'rtmidi.rtmidi’ extension
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/src
creating build/temp.linux-x86_64-3.10/src/rtmidi
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -D__RTMIDI_SILENCE_WARNINGS_ -D__LINUX_ALSA__ -D__UNIX_JACK__ -Isrc/rtmidi -I/usr/include/python3.10 -c src/rtmidi.cpp -o build/temp.linux-x86_64-3.10/src/rtmidi.o
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -D__RTMIDI_SILENCE_WARNINGS -D__LINUX_ALSA__ -D__UNIX_JACK__ -Isrc/rtmidi -I/usr/include/python3.10 -c src/rtmidi/RtMidi.cpp -o build/temp.linux-x86_64-3.10/src/rtmidi/RtMidi.o
src/rtmidi/RtMidi.cpp:1540:10: fatal error: alsa/asoundlib.h: Aucun fichier ou dossier de ce type
1540 | #include <alsa/asoundlib.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
error: command ‘/usr/bin/x86_64-linux-gnu-gcc’ failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-rtmidi
Running setup.py clean for python-rtmidi
Failed to build python-rtmidi
Installing collected packages: python-rtmidi
Running setup.py install for python-rtmidi: started
Running setup.py install for python-rtmidi: finished with status ‘error’
error: subprocess-exited-with-error
× Running setup.py install for python-rtmidi did not run successfully.
│ exit code: 1
╰─> [43 lines of output]
Package jack was not found in the pkg-config search path.
Perhaps you should add the directory containing `jack.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘jack’ found
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/rtmidi
copying rtmidi/midiconstants.py → build/lib.linux-x86_64-3.10/rtmidi
copying rtmidi/midiutil.py → build/lib.linux-x86_64-3.10/rtmidi
copying rtmidi/init.py → build/lib.linux-x86_64-3.10/rtmidi
copying rtmidi/version.py → build/lib.linux-x86_64-3.10/rtmidi
running egg_info
writing python_rtmidi.egg-info/PKG-INFO
writing dependency_links to python_rtmidi.egg-info/dependency_links.txt
writing top-level names to python_rtmidi.egg-info/top_level.txt
reading manifest file ‘python_rtmidi.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no previously-included files found matching ‘.appveyor.yml’
warning: no previously-included files found matching ‘.travis.yml’
warning: no previously-included files found matching ‘.rst.in’
no previously-included directories found matching ‘ci’
warning: no previously-included files matching ‘pycache’ found under directory '’
warning: no previously-included files matching ‘.py[co]’ found under directory '’
adding license file ‘LICENSE.txt’
adding license file ‘AUTHORS.rst’
writing manifest file ‘python_rtmidi.egg-info/SOURCES.txt’
running build_ext
building 'rtmidi.rtmidi’ extension
creating build/temp.linux-x86_64-3.10
creating build/temp.linux-x86_64-3.10/src
creating build/temp.linux-x86_64-3.10/src/rtmidi
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -D__RTMIDI_SILENCE_WARNINGS_ -D__LINUX_ALSA__ -D__UNIX_JACK__ -Isrc/rtmidi -I/usr/include/python3.10 -c src/rtmidi.cpp -o build/temp.linux-x86_64-3.10/src/rtmidi.o
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -D__RTMIDI_SILENCE_WARNINGS -D__LINUX_ALSA__ -D__UNIX_JACK__ -Isrc/rtmidi -I/usr/include/python3.10 -c src/rtmidi/RtMidi.cpp -o build/temp.linux-x86_64-3.10/src/rtmidi/RtMidi.o
src/rtmidi/RtMidi.cpp:1540:10: fatal error: alsa/asoundlib.h: Aucun fichier ou dossier de ce type
1540 | #include <alsa/asoundlib.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
error: command ‘/usr/bin/x86_64-linux-gnu-gcc’ failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> python-rtmidi
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Process returned with code 1
==============================================================================
I tried to install the jack module but I obtained:
==============================================================================
/usr/bin/python3 -m pip install --no-cache-dir --user jack --disable-pip-version-check
Collecting jack
Downloading jack-0.1.0.tar.gz (3.8 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status ‘error’
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File “”, line 2, in
File “”, line 34, in
File “/tmp/pip-install-d6j2glk5/jack_1adf3db6f5cd4de092924ac188ee6b07/setup.py”, line 6, in
from pip.req import parse_requirements
ModuleNotFoundError: No module named ‘pip.req’
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Process returned with code 1
==============================================================================
Do you know what to do to resolve this problem ?
Sincerely.
Pascal KREZEL