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

Rye 0.21.0 cannot locate pip #594

Closed
raanasn opened this issue Feb 5, 2024 · 12 comments · Fixed by #596
Closed

Rye 0.21.0 cannot locate pip #594

raanasn opened this issue Feb 5, 2024 · 12 comments · Fixed by #596

Comments

@raanasn
Copy link

raanasn commented Feb 5, 2024

Steps to Reproduce

Script:

$ curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash
$ . "$HOME/.rye/env"
$ rye sync --no-lock

Expected Result

Downloading [email protected]
Checking checksum
success: Downloaded [email protected]
Initializing new virtualenv in /builds/FOLDERNAME/.venv
Python version: [email protected]
Installing dependencies
Creating virtualenv for pip-tools
Looking in indexes: https://pypi.org/simple/

Actual Result

Downloading [email protected]
Checking checksum
success: Downloaded [email protected]
Reusing already existing virtualenv
Installing dependencies
error: could not locate pip
Caused by:
No such file or directory (os error 2)

Version Info

0.21.0

Stacktrace

No response

@mitsuhiko
Copy link
Collaborator

I'm quite confused that it tried to download 3.9. Can you wipe the .rye folder and re-run this? It might be that it picked up an old installation and the upgrade did not function.

@raanasn
Copy link
Author

raanasn commented Feb 5, 2024

@mitsuhiko I wanted python 3.9 and added this to the pyproject.toml:

requires-python = ">=3.9"

First it installs 3.12.1 like this:

Bootstrapping rye internals
Downloading [email protected]

Then when it comes to $ rye sync --no-lock it installs this:

Downloading [email protected]

But fails because of pip.

@mitsuhiko
Copy link
Collaborator

Can you please dump the output of rye --version?

@nrydanov
Copy link

nrydanov commented Feb 5, 2024

Got same error, this error occurs with Rye version 0.20.0 and higher. Currently, we downgraded Rye to 0.19.0, what solved the problem.

@mitsuhiko
Copy link
Collaborator

Same question, can you share the output of rye --version? I was not able to repro this on my machine yet and would need the full dump of what the version output generates.

@mitsuhiko
Copy link
Collaborator

I believe I have found a case where this can happen. Should be fixed in the next version but it would be great if you could check if this fixes it already.

@raanasn
Copy link
Author

raanasn commented Feb 6, 2024

@mitsuhiko this did not fix it.

Here is additional Info:

Bildschirm­foto 2024-02-06 um 09 29 08 Bildschirm­foto 2024-02-06 um 09 29 30

@raanasn
Copy link
Author

raanasn commented Feb 8, 2024

@mitsuhiko will this be fixed in the next version or should I create a new issue for that?

@eifinger
Copy link
Contributor

eifinger commented Feb 8, 2024

I had the same issue and investigated a bit in this draft PR: eifinger/setup-rye#153

1st commit just using rye sync --no-lock failed : link to run

2nd commit updating the lock files with 0.21.0 locally and pushing again failed : link to run

3rd commit running rye sync once before rye sync --no-lock succeeded : link to run

@mitsuhiko
Copy link
Collaborator

Please open a new issue if this still reproduces on the latest version.

@raanasn
Copy link
Author

raanasn commented Feb 12, 2024

@mitsuhiko works perfectly on the latest version! Thanks a lot!

@eifinger
Copy link
Contributor

Also fixed on my end. Thanks!

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

Successfully merging a pull request may close this issue.

4 participants