-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Hi Christopher,
I have written an app which uses mido which in turn, uses python-rtmidi. I have uploaded it to pypi.org and it runs perfectly when I run uvx osmose-presets in macOS 15.6.1.
The problem comes when I try to run uvx osmose-presets on Windows 11 Pro and Linux Mint 22.2 Cinnamon. In both cases its falling over trying to build python-rtmidi.
In the case of Windows, this is the error message...
PS C:\WINDOWS\system32> uvx python-rtmidi
x Failed to build `python-rtmidi==1.5.8`
|-> The build backend returned an error
`-> Call to `mesonpy.build_wheel` failed (exit code: 1)
[stdout]
+ meson setup C:\Users\Carl\AppData\Local\uv\cache\sdists-v9\pypi\python-rtmidi\1.5.8\Izm7r_nLUIn56WFmGbdar\src
C:\Users\Carl\AppData\Local\uv\cache\sdists-v9\pypi\python-rtmidi\1.5.8\Izm7r_nLUIn56WFmGbdar\src\.mesonpy-1wc8vmq0 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dwheel=true -Dverbose=false
-Dbuildtype=plain --native-file=C:\Users\Carl\AppData\Local\uv\cache\sdists-v9\pypi\python-rtmidi\1.5.8\Izm7r_nLUIn56WFmGbdar\src\.mesonpy-1wc8vmq0\meson-python-native-file.ini
The Meson build system
Version: 1.9.1
Source dir: C:\Users\Carl\AppData\Local\uv\cache\sdists-v9\pypi\python-rtmidi\1.5.8\Izm7r_nLUIn56WFmGbdar\src
Build dir: C:\Users\Carl\AppData\Local\uv\cache\sdists-v9\pypi\python-rtmidi\1.5.8\Izm7r_nLUIn56WFmGbdar\src\.mesonpy-1wc8vmq0
Build type: native build
WARNING: Failed to activate VS environment: Could not parse vswhere.exe output
Project name: python-rtmidi
Project version: 1.5.8
..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['c++'], ['g++'], ['clang++'], ['clang-cl']]
The following exception(s) were encountered:
Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `c++ --version` gave "[WinError 2] The system cannot find the file specified"
Running `g++ --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang++ --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
A full log can be found at C:\Users\Carl\AppData\Local\uv\cache\sdists-v9\pypi\python-rtmidi\1.5.8\Izm7r_nLUIn56WFmGbdar\src\.mesonpy-1wc8vmq0\meson-logs\meson-log.txt
hint: This usually indicates a problem with the package or the build environment.
I tried initially installing Python 3.13.7 on the Windows machine, the same as the version used to develop it. I also tried installing Python 3.12.7 and I tried running uvx python-rtmidi. All of those gave rise to the same error (more or less, I didn't check the minute detail ;-))
The Python Discord is a non starter for getting help, populated as it is by a vast number of youngsters all seeking help with their homework, or so it seems. Nothing against youngsters... I used to be one myself ;-)
If you have any idea what I can do about this, I'd be really grateful. I chose the uvx route because I thought it was the easiest way of achieving a painless, cross platform distribution method...
Cheers,
Carl