Hendrik Lamberts
unread,Aug 2, 2023, 5:31:51 PM8/2/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to thonny
Beste,
zijn er problemen met de recente versies van mido en/of rtmidi/python-rtmidi?
Op een Windows 10 ) desktop met oudere versies van de IDE "Thonny" (3.3.13 ), Mido(1.2.9 ), rtmidi (2.5.0 ) en python- rtmidi (1.4.6) heb ik geen problemen; op een nieuwere desktop met Windows11 en recentere versies van Thonny (4.0.2), Mido (1.3.0), rtmidi (2.5.0) en python-rtmidi (1.5.2) krijg ik foutboodschappen:
Are there any problems with the recent versions of mido and/or rtmidi/python-rtmidi?
On a Windows 10 ) desktop with older versions of the IDE "Thonny" (3.3.13 ), Mido(1.2.9 ), rtmidi (2.5.0 ) and python-rtmidi (1.4.6) I have no problems; on a newer desktop with Windows11 and more recent versions of Thonny (4.0.2), Mido (1.3.0), rtmidi (2.5.0) and python-rtmidi (1.5.2) I get error messages:import mido
with mido.open_input() as inport:
for msg in inport:
print(msg)
>>> %Run mido_fout.py
Traceback (most recent call last):
File "C:\Users\hendr\OneDrive\Bureaublad\MIDI in volgens AI\mido_fout.py", line 3, in <module>
with mido.open_input() as inport:
File "C:\Users\hendr\AppData\Roaming\Python\Python310\site-packages\mido\backends\backend.py", line 91, in open_input
return self.module.Input(name, **self._add_api(kwargs))
File "C:\Users\hendr\AppData\Roaming\Python\Python310\site-packages\mido\ports.py", line 161, in __init__
BasePort.__init__(self, name, **kwargs)
File "C:\Users\hendr\AppData\Roaming\Python\Python310\site-packages\mido\ports.py", line 86, in __init__
self._open(**kwargs)
File "C:\Users\hendr\AppData\Roaming\Python\Python310\site-packages\mido\backends\rtmidi.py", line 123, in _open
rtapi = _get_api_id(api)
File "C:\Users\hendr\AppData\Roaming\Python\Python310\site-packages\mido\backends\rtmidi.py", line 34, in _get_api_id
return rtmidi.API_UNSPECIFIED
AttributeError: module 'rtmidi' has no attribute 'API_UNSPECIFIED'