josephernest / SamplerBox

SamplerBox is a sampler musical instrument based on RaspberryPi.
https://www.samplerbox.org
430 stars 97 forks source link

Switch rtmidi wrapper from from rtmidi-python to python-rtmidi #54

Closed wuschel-brompf closed 2 years ago

wuschel-brompf commented 2 years ago

The latest raspi image (bullseye) comes with python 3.9.2., but the (not maintained) rtmidi-python package requires python3.7 or less due to deprecation of tp_print. This leads to error messages during installation: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’

Out of the box, libasound2-dev was not installed and has to be installed manually.

With the modifications proposed, SampleBox runs fine on a RaspberryPi 2 with RaspiOS 11 lite (2022-09-06)

This is my very first pull request ever, so if I did anything wrong, pease give me feedback on how to improve.

wuschel-brompf commented 2 years ago

Oh dear, now I found the numerous comments and discussions about rtmidi-python and python-rtmidi. I guess Im not adding anything new in this PR.