Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value error: MIDI is not enabled right after enable command is run #3

Open
draperjames opened this issue Sep 18, 2024 · 0 comments
Open

Comments

@draperjames
Copy link

getting the following error running:
midi.enable()
mid.inputs


ValueError Traceback (most recent call last)
Cell In[159], line 2
1 midi.enable()
----> 2 midi.inputs

File C:\Python312\Lib\site-packages\ipymidi\interface.py:69, in MIDIInterface.inputs(self)
66 @Property
67 def inputs(self) -> "Inputs":
68 """Returns a sequence of MIDI input devices."""
---> 69 self._check_enabled()
70 return Inputs()

File C:\Python312\Lib\site-packages\ipymidi\interface.py:64, in MIDIInterface._check_enabled(self)
62 def _check_enabled(self):
63 if not self.enabled:
---> 64 raise ValueError("MIDI is not enabled!")

ValueError: MIDI is not enabled!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant