Closed bikrdotnet closed 2 years ago
This is running on mac os 12.0.1 Python 3.8.2 (default, Dec 21 2020, 15:06:04) [Clang 12.0.0 (clang-1200.0.32.29)] on darwin
@bikrdotnet, thanks for reporting the issue. I've never tested on a Mac, so I suspect that the port names are a little different. Can you send me the output of the following command:
$ python3 -c "import rtmidi; inports=rtmidi.MidiIn().get_ports(); print(f'in={inports}'); outports=rtmidi.MidiOut().get_ports(); print(f'out={
outports}')"
Joshs-iMac-Pro:examples josh$ python3 -c "import rtmidi; inports=rtmidi.MidiIn().get_ports(); print(f'in={inports}'); outports=rtmidi.MidiOut().get_ports(); print(f'out={
outports}')" File "
", line 1 import rtmidi; inports=rtmidi.MidiIn().get_ports(); print(f'in={inports}'); outports=rtmidi.MidiOut().get_ports(); print(f'out={ ^ SyntaxError: EOL while scanning string literal Joshs-iMac-Pro:examples josh$
@bikrdotnet, try:
$ python3 -c "import rtmidi; inports=rtmidi.MidiIn().get_ports(); print('in=', inports); outports=rtmidi.MidiOut().get_ports(); print('out=', outports)"
Joshs-iMac-Pro:examples josh$ python3 -c "import rtmidi; inports=rtmidi.MidiIn().get_ports(); print('in=', inports); outports=rtmidi.MidiOut().get_ports(); print('out=', outports)"
in= ['Launchpad Mini MK3 LPMiniMK3 DAW Out', 'Launchpad Mini MK3 LPMiniMK3 MIDI Out']
out= ['Launchpad Mini MK3 LPMiniMK3 DAW In', 'Launchpad Mini MK3 LPMiniMK3 MIDI In']
Joshs-iMac-Pro:examples josh$
@bikrdotnet, please try my pull request #101 when you get the chance. You can test it quickly by running the following commands:
$ git pull
$ git checkout add-mac-support
$ PYTHONPATH=. python3 examples/flash.py
Let me know if it fixes the problem.
That did it! Thank you!!
Attempting to run and getting the following error when executing examples or via shell directly: