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 mentions 3 different versions of Python, then fails at installing any #7

Closed
ksamuel opened this issue Apr 23, 2023 · 8 comments
Closed
Labels
bug Something isn't working

Comments

@ksamuel
Copy link

ksamuel commented Apr 23, 2023

On Ubuntu 20.04 with deadsnake:

$ rye pin 3.11
pinned cpython@3.11.1 in /tmp/.python-version
 
$ rye init
success: Initialized project in /tmp/.
$ cat pyproject.toml 
[project]
...
requires-python = ">= 3.8"
...
$ rye run python
Bootstrapping rye internals
Downloading cpython@3.10.9
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 15.13 KiB/27.29 MiBtar: Archive is compressed. Use --zstd option
tar: Error is not recoverable: exiting now
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }', rye/src/bootstrap.rs:176:35
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Rye mentions 3.11, 3.8 and 3.10, so I don't understand what's going on.

Unfortunately, adding the backtrace doesn't give much more info:

$ export RUST_BACKTRACE=1
$ rye run python
Bootstrapping rye internals
error: No such file or directory (os error 2)
@mitsuhiko
Copy link
Collaborator

I'm assuming your tar version does not does support zstd compressed files. This requires some fixing.

@mitsuhiko mitsuhiko added the bug Something isn't working label Apr 23, 2023
@ksamuel
Copy link
Author

ksamuel commented Apr 23, 2023

Ping me if you want me to test it later.

@kabouzeid
Copy link

I get the following, no matter which python version I pin.

Bootstrapping rye internals
Downloading cpython@3.10.9
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 16.00 KiB/27.29 MiB
tar: This does not look like a tar archive
tar: Skipping to next header
success: Downloaded cpython@3.10.9
tar: Exiting with failure status due to previous errors
error: No such file or directory (os error 2)

tar (GNU tar) 1.29
curl 7.58.0

@mitsuhiko
Copy link
Collaborator

mitsuhiko commented Apr 23, 2023

Should be fixed with a466939

@ksamuel please let me know if this does not resolve the issue

@kabouzeid
Copy link

that fixed it for me. thanks!

@ksamuel
Copy link
Author

ksamuel commented Apr 23, 2023

With the new version I get the second error message only:

/tmp/foo/rye/target/debug/rye run python
Bootstrapping rye internals
error: No such file or directory (os error 2)

But give how generic it is, it's probably a different error give you are now untarring from rust.

@mitsuhiko
Copy link
Collaborator

@ksamuel it might be that it has a broken state in ~/.rye now. Just wipe that entire folder and rerun. Error reporting is pretty bad, definitely something that would have to be worked on.

@ksamuel
Copy link
Author

ksamuel commented Apr 24, 2023

Right on the money.

Everything works as expected after deleting ~/.rye (might want to put that in .config and .local).

I can now test it on entire projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants