You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried reproducing the second example from https://docs.astral.sh/uv/guides/scripts/#using-gui-scripts on my Mac, and got a confusing error. I'm guessing uv tries to run a pythonw executable that doesn't exist on my system, or it's trying to run example_pyqt.pyw.py.
I think this should just work but, if not, the error message should be better.
$ uv run example_pyqt.pywerror: Failed to spawn: `example_pyqt.pyw` Caused by: No such file or directory (os error 2)
$ uname -aDarwin macaw.local 23.6.0 Darwin Kernel Version 23.6.0: Thu Sep 12 23:36:12 PDT 2024; root:xnu-10063.141.1.701.1~1/RELEASE_ARM64_T6020 arm64 arm Darwin
$ uv --versionuv 0.5.7 (Homebrew 2024-12-06)
After renaming the file to .py, everything worked (it's an impressive demo!).
The text was updated successfully, but these errors were encountered:
I don't see any real reason to forbid executing these in a
cross-platform way
```
❯ echo "print('hello world')" > test.pyw
❯ uv run test.pyw
error: Failed to spawn: `test.pyw`
Caused by: No such file or directory (os error 2)
❯ cargo run -q -- run test.pyw
hello world
```
Closes#9757
I tried reproducing the second example from https://docs.astral.sh/uv/guides/scripts/#using-gui-scripts on my Mac, and got a confusing error. I'm guessing
uv
tries to run apythonw
executable that doesn't exist on my system, or it's trying to runexample_pyqt.pyw.py
.I think this should just work but, if not, the error message should be better.
After renaming the file to
.py
, everything worked (it's an impressive demo!).The text was updated successfully, but these errors were encountered: