ffont / push2-python

Utils to interface with Push2 from Python
MIT License
83 stars 19 forks source link

on initializing the main class, _rtmidi.SystemError: MidiInAlsa::initialize: error #10

Open karen-pal opened 1 year ago

karen-pal commented 1 year ago

I was trying to light up the pads but I keep bumping into the same error when running push2_python.Push2(), in linux machine with the push2

_rtmidi.SystemError: MidiInAlsa::initialize: error creating ALSA sequencer client object.

being risen by the mido library

  File "/PATH/TO/ENV/lib/python3.8/site-packages/mido/backends/rtmidi.py", line 51, in get_devices
    input_names = set(rtmidi.MidiIn(rtapi=rtapi).get_ports())
  File "_rtmidi.pyx", line 821, in _rtmidi.MidiIn.__cinit__
_rtmidi.SystemError: MidiInAlsa::initialize: error creating ALSA sequencer client object.

I can't run any of the example code snippets. I posted on an active thread of mido in case it's an upstream problem.

I remember in january I tried this library and got the lights working - just did a fresh install of the library and no code works anymore!

the only code that doesn't make the errror appear is:

push = push2_python.Push2(use_user_midi_port=True) but when i try to light up the pads nothing happens. I also tried calling the method push.configure_midi() but still not response from the push2.

I just found the old virtualenv that worked in january, the working state of the dependecies is : push2-python @ git+https://github.com/ffont/push2-python@ae91501788469f2c54aa95ed12f37f83505d73f8

Kinda new to the whole MIDI ecosystem! Thanks

ffont commented 1 year ago

I think this should not be related to push2-python, maybe something to do with user permissions?