-
Notifications
You must be signed in to change notification settings - Fork 65
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
Windows 10 system cannot install using Python 38-32-bit parser, installation error #208
Comments
It seems you are trying to run Python program, which uses mido. Mido can use python-rtmidi as a backend, but you have to specify, which backends to install, when you install mido: https://mido.readthedocs.io/en/stable/installing.html#installation |
Windows PowerShell 安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows PS C:\Users\Administrator\PycharmProjects\pythonProject8> pip install python-rtmidi × Preparing metadata (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
Windows PowerShell 安装最新的 PowerShell,了解新功能和改进!https://aka.ms/PSWindows PS C:\Users\Administrator\PycharmProjects\pythonProject8> python -m pip install mido[ports-rtmidi] × Preparing metadata (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. |
You are trying to build python-rtmidi with a 32-bit version of Python on a 64-bit version of windows. Also, your Python version (3.8) is rather old, and support for it will end in two months: https://www.python.org/downloads/ The python-rtmidi project does not provide binary wheels for windows and Python version 3.8. So you are on your own there, sorry. I don't have the capacity to support that. Try upgrading your Python installation to the latest 64-bit version. |
Which Python version 32-bit is supported by Python rtmidi library,I want to use 32-bit Python |
I'm not sure. The python-rtmidi project only provides binary wheels for 64-bit Python on Windows. These are built by our CI (GitHub actions). I don't have a Windows system to test building different combinations myself. You can try building python-rtmidi manually from the source yourself: https://spotlightkid.github.io/python-rtmidi/install-windows.html Try with the latest Python 3.12.5, I guess. Alternatively, you can check whether you have more luck with other midi backends. |
D:\py\Python38-32\python.exe C:\Users\Administrator\PycharmProjects\pythonProject8\OSC+MIDI11.py
Traceback (most recent call last):
File "C:\Users\Administrator\PycharmProjects\pythonProject8\OSC+MIDI11.py", line 245, in
app = SerialOSCBridgeApp(root)
File "C:\Users\Administrator\PycharmProjects\pythonProject8\OSC+MIDI11.py", line 76, in init
self.update_midi_devices()
File "C:\Users\Administrator\PycharmProjects\pythonProject8\OSC+MIDI11.py", line 114, in update_midi_devices
devices = mido.get_output_names()
File "D:\py\Python38-32\lib\site-packages\mido\backends\backend.py", line 180, in get_output_names
devices = self._get_devices(**self._add_api(kwargs))
File "D:\py\Python38-32\lib\site-packages\mido\backends\backend.py", line 167, in _get_devices
if hasattr(self.module, 'get_devices'):
File "D:\py\Python38-32\lib\site-packages\mido\backends\backend.py", line 47, in module
self.load()
File "D:\py\Python38-32\lib\site-packages\mido\backends\backend.py", line 63, in load
self.module = importlib.import_module(self.name)
File "D:\py\Python38-32\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "D:\py\Python38-32\lib\site-packages\mido\backends\rtmidi.py", line 11, in
import rtmidi
ModuleNotFoundError: No module named 'rtmidi'
进程已结束,退出代码为 1
The text was updated successfully, but these errors were encountered: