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
Location:
src/steps/generic.rs:1095
Poetry failed:
0: Failed to execute /usr/bin/python3 -sP -c 'import sys; from os import path; print('\''Y'\'') if path.isfile(path.join(sys.prefix, '\''poetry_env'\'')) else print('\''N'\'')'
1: No such file or directory (os error 2)
cc @AThePeanut4, looks like we didn't check if file path.join(sys.prefix, 'poetry_env') exists or not before passing it to path.is_file() in our check_official_install_script, mind taking a look at this?
@SteveLauC I believe the issue is with the python interpreter being misrecognized: it's using /usr/bin/python3 -sP which I believe will cause problems both because of the leading space and because of the -sP. os.path.isfile doesn't throw an exception if the path doesn't exist, it just returns False.
@tsvikas Would you mind sending your poetry wrapper script here? i.e. just copy the output of cat /usr/bin/poetry.
I checked the rpm for poetry-1.8.3 and it does indeed have #! /usr/bin/python3 -sP as the shebang line in /usr/bin/poetry.
I've already made a fix that parses the shebang line to remove leading spaces and split out any arguments. I just need to test it on windows and then I'll send a PR through.
Erroneous Behavior
When running topgrade, the poetry step raise an error at the poetry step (fedora 41, poetry is installed with dnf).
The debug log shows that the detected interpreter is suspicious - it got a space before and a parameter after
Expected Behavior
No fail, just output that poetry from dnf cannot self update
Steps to reproduce
I just ran
topgrade
, but I maybe some unknown setup of my system might affect it?Possible Cause (Optional)
Seems like the interpreter is misrecognized
Problem persists without calling from topgrade
Did you run topgrade through
Remote Execution
If yes, does the issue still occur when you run topgrade directlly in your
remote host
Configuration file (Optional)
Additional Details
Operation System/Version
Fedora 41
Poetry 1.8.3 installed with dnf
Installation
From fedora copr
Topgrade version (
topgrade -V
)16.0.2
Verbose Output (
topgrade -v
)The text was updated successfully, but these errors were encountered: