-
Notifications
You must be signed in to change notification settings - Fork 967
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
uv venv
fails because python3.wrapper
is not available
#1868
Comments
How did you install python? |
Via a proprietary enterprise tool, so some shenanigans are happening with paths. However running |
|
Isn't possible to implement a fallback in case of custom python installations? |
Could you run with debug logging?
For background, we rely on |
There you go: $ RUST_LOG=debug uv venv -v
uv_interpreter::python_query::find_default_python platform=Platform { os: Manylinux { major: 2, minor: 17 }, arch: X86_64 }, cache=Cache { root: "/home/csalerno/.cache/uv", refresh: None, _temp_dir_drop: None }
0.016782s 11ms DEBUG uv_interpreter::interpreter Detecting markers for: /home/cadappl_RHEL7/python3/3.10.5/wrapper/python3.wrapper
× Querying Python at `/home/cadappl_RHEL7/python3/3.10.5/wrapper/python3.wrapper` failed
│ with status exit status: 127:
│ --- stdout:
│ --- stderr:
│ /home/cadappl_RHEL7/python3/3.10.5/wrapper/python3.wrapper: line 5: python3.wrapper:
│ command not found
│ --- Regarding your question, not sure, maybe some enterprise rules, however $ python -c 'print("hello world")'
hello world However in our setup, |
uv calls python 2 to get its version information. But it won't use it if you have a Python3 installation. Can you run |
Sure, no sensitive content found :)
#!/bin/sh
export PATH=/cadappl/python3/3.10.5/python3/bin:${PATH}
export LD_LIBRARY_PATH=/cadappl/python3/3.10.5/python3/lib:/cadappl/tcl/8.6.11/tcl/lib:/cadappl/tk/8.6.11/tk/lib:/cadappl/sqlite/3.34.1/sqlite/lib:/cadappl/zlib/1.2.11/lib:/cadappl/openssl/1.1.1j/openssl/lib:/cadappl/valgrind/3.16.1/valgrind/lib:/cadappl/gdbm/1.19/gdbm/lib:/cadappl/readline/6.2.4.1/readline/lib:/cadappl/bzip2/1.0.6.a/bzip2/lib:${LD_LIBRARY_PATH}
`basename $0` "$@" |
It's probably because we resolve the symlink so the basename changes |
is there a workaround that I could apply in |
We should stop resolving the symlinks unconditionally; Initially, it looked like a convenient solution for venv-from-venv use cases, but using |
@konstin - I generally agree, although if we change that, it will "break" cases like this: pypa/virtualenv#2682. (That issue motivated virtualenv to start recursively resolving symlinks (on |
I've asked at python/cpython#106045 (comment), this should bring some clarity |
Hi, is there any update regarding this issue? |
We've rewritten interpreter discovery and this should not occur anymore, feel free to reopen if it's still a problem. |
Machine: RHEL7
The text was updated successfully, but these errors were encountered: