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

Python shebang example(s) from readme.md not working -> fatal PKGX_LVL >= 10 #1134

Open
nifr opened this issue Feb 25, 2025 · 1 comment
Open

Comments

@nifr
Copy link

nifr commented Feb 25, 2025

I try to run a python script with pkgx using a shebang line as described in the readme.

I do get the same error on macOS and Linux, both arm64 platforms.

#!/usr/bin/env -S pkgx [email protected] uv run

print("Hello World!")

If I execute the script, it first seems to download python and uv. It shows the progress indicator and finishes the download.

It then crashes with the following error:

× fatal PKGX_LVL >= 10
╰─➤ https://github.com/orgs/pkgxdev/discussions/11

I don't really understand what the issue discussed inside the discussion is about.

@mxcl
Copy link
Member

mxcl commented Feb 25, 2025

You need to upgrade uv or append --script. Older uv seemed to re-exec the script which causes a fork bomb which pkgx then prevents with this abort.

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

2 participants