Open pitzer opened 1 year ago
@pitzer, when I tried building on my Raspberry Pi 4, I got a different error:
$ pip3 install lpminimk3
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting lpminimk3
Using cached https://files.pythonhosted.org/packages/0f/61/9735eaf4d8aa6d765f5f15483ff3075df7c0799a895a96e617596a405efd/lpminimk3-0.6.2-py3-none-any.whl
Collecting python-rtmidi (from lpminimk3)
Using cached https://files.pythonhosted.org/packages/fc/fa/9c1dd76467da143a779cc78bac7af0b03447ce18c8918f5aee306a6b3b5c/python_rtmidi-1.5.4.tar.gz
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.7/tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-qocxoxvz/python-rtmidi/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-qocxoxvz/python-rtmidi/
The error shows that python-rtmidi
failed to install its build dependencies, so I tried to install it directly on the Pi and got this error:
$ pip3 install python-rtmidi
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting python-rtmidi
Using cached https://files.pythonhosted.org/packages/fc/fa/9c1dd76467da143a779cc78bac7af0b03447ce18c8918f5aee306a6b3b5c/python_rtmidi-1.5.4.tar.gz
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.7/tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-ueqee1do/python-rtmidi/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-ueqee1do/python-rtmidi/
So I believe there may be an issue with python-rtmidi
on Raspberry Pi 4.
But then, I tried it on a more recent Raspberry Pi 4 I have and got the following result:
$ pip3 install lpminimk3
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting lpminimk3
Downloading https://www.piwheels.org/simple/lpminimk3/lpminimk3-0.6.2-py3-none-any.whl (147 kB)
|████████████████████████████████| 147 kB 226 kB/s
Collecting jsonschema
Downloading https://www.piwheels.org/simple/jsonschema/jsonschema-4.18.4-py3-none-any.whl (80 kB)
|████████████████████████████████| 80 kB 457 kB/s
Collecting websockets
Downloading websockets-11.0.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (130 kB)
|████████████████████████████████| 130 kB 3.1 MB/s
Collecting python-rtmidi
Downloading python_rtmidi-1.5.4-cp39-cp39-manylinux_2_28_aarch64.whl (728 kB)
|████████████████████████████████| 728 kB 6.0 MB/s
Collecting jsonschema-specifications>=2023.03.6
Downloading https://www.piwheels.org/simple/jsonschema-specifications/jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
Collecting attrs>=22.2.0
Downloading https://www.piwheels.org/simple/attrs/attrs-23.1.0-py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB 372 kB/s
Collecting rpds-py>=0.7.1
Downloading rpds_py-0.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB)
|████████████████████████████████| 1.2 MB 6.0 MB/s
Collecting referencing>=0.28.4
Downloading https://www.piwheels.org/simple/referencing/referencing-0.30.0-py3-none-any.whl (25 kB)
Installing collected packages: rpds-py, attrs, referencing, jsonschema-specifications, websockets, python-rtmidi, jsonschema, lpminimk3
Successfully installed attrs-23.1.0 jsonschema-4.18.4 jsonschema-specifications-2023.7.1 lpminimk3-0.6.2 python-rtmidi-1.5.4 referencing-0.30.0 rpds-py-0.9.2 websockets-11.0.3
The only difference between the two Pis are the Debian versions. The Pi that worked had this for its kernel version and distribution information respectively:
$ uname -a # kernel version
Linux paw 6.1.21-v8+ 1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
$ lsb_release -a # distribution information
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
The Pi that didn't work had this:
$ uname -a # kernel version
Linux colaj 4.19.75-v7l+ 1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux
$ lsb_release -a # distribution information
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
You may want to check if you have the latest version of the OS. Hope this helps.
I'm trying to use the Launchpad Mini MK3 on a Raspberry Pi 4 and struggle getting it to work.
Installed lpminimk3 using
Running the example gives me the following error:
After installing the libjack-dev dependency it seems to require a JACK server
After installing jackd and running it using
Results in not finding the lp mini: