python-rtmidi icon indicating copy to clipboard operation
python-rtmidi copied to clipboard

error: AttributeError: module 'rtmidi' has no attribute 'MidiOut'

Open antkn33 opened this issue 7 months ago • 1 comments

I'm on macos 15. Python in a venv with 3.9.21

import rtmidi
import time

midiout = rtmidi.MidiOut()
ports = midiout.get_ports()

antkn33 avatar May 21 '25 16:05 antkn33

Are you sure you really installed this package? Not another package, which uses the Python package name rtmidi?

See the install instructions, if unsure.

SpotlightKid avatar May 22 '25 13:05 SpotlightKid

Looks like you're right but why are there two python packages with the same name???

rexendevar avatar Nov 15 '25 00:11 rexendevar

Well, first there was one and then there came another (though the first commit of the latter package was a few weeks before the former, it was registered on PyPI much later).

PyPI does not enforce unique Python package names (as opposed to distribution package names).

SpotlightKid avatar Nov 15 '25 10:11 SpotlightKid