rye icon indicating copy to clipboard operation
rye copied to clipboard

Rye Error: Bootstrapping rye internals during install, sync, etc in wsl

Open PadenZach opened this issue 7 months ago • 11 comments

Steps to Reproduce

Running on ubuntu in WSL behind company firewall + Cisco VPN

curl -sSf https://rye.astral.sh/get | bash
rye sync --verbose

Expected Result

Rye to install, sync.

This looks like a normal 404 error, however, the weird part is that all the downloads can be curled for me, ie:

curl https://github.com/astral-sh/uv/releases/download/0.2.22/uv-x86_64-unknown-linux-gnu.tar.gz --output uv.tar.gz
curl https://github.com/astral-sh/rye/releases/latest/download/rye-x86_64-linux.gz --output rye.tar.gz

both run successfully.

Additionally, I already have an installation of uv available.

Actual Result

This script will automatically download and install rye (latest) for you.
######################################################################## 100.0%
Welcome to Rye!

This installer will install rye to /home/zpaden/.rye
This path can be changed by exporting the RYE_HOME environment variable.

Details:
  Rye Version: 0.36.0
  Platform: linux (x86_64)

✔ Continue? · yes
✔ Select the preferred package installer · uv (fast, recommended)
✔ What should running `python` or `python3` do when you are not inside a Rye managed project? · Run a Python installed and managed by Rye
✔ Which version of Python should be used as default toolchain? · [email protected]
Installed binary to /home/zpaden/.rye/shims/rye
Bootstrapping rye internals
error: download of https://github.com/astral-sh/uv/releases/download/0.2.22/uv-x86_64-unknown-linux-gnu.tar.gz failed

Caused by:
    [6] Couldn't resolve host name (Could not resolve host: github.com)

After self install of rye and running rye sync:

Bootstrapping rye internals
error: could not sync because bootstrap failed

Caused by:
    0: download of https://github.com/astral-sh/uv/releases/download/0.2.22/uv-x86_64-unknown-linux-gnu.tar.gz failed
    1: [6] Couldn't resolve host name (Could not resolve host: github.com)

Version Info

❯ rye --version rye 0.36.0 commit: 0.36.0 (12c024c7c 2024-07-07) platform: linux (x86_64) self-python: not bootstrapped (target: [email protected]) symlink support: true uv enabled: true

Stacktrace

❯ RUST_BACKTRACE=1 rye sync --verbose Bootstrapping rye internals error: could not sync because bootstrap failed

Caused by: 0: download of https://github.com/astral-sh/uv/releases/download/0.2.22/uv-x86_64-unknown-linux-gnu.tar.gz failed 1: [6] Couldn't resolve host name (Could not resolve host: github.com)

Stack backtrace: 0: <E as anyhow::context::ext::StdError>::ext_context 1: rye::bootstrap::download_url_ignore_404 2: rye::uv::UvBuilder::ensure_exists 3: rye::bootstrap::ensure_self_venv_with_toolchain 4: rye::sync::sync 5: rye::cli::sync::execute 6: rye::cli::execute 7: std::panicking::try 8: rye::utils::panic::trap_bad_pipe 9: rye::main 10: std::sys_common::backtrace::__rust_begin_short_backtrace 11: std::rt::lang_start::{{closure}} 12: std::rt::lang_start_internal 13: main

PadenZach avatar Jul 09 '24 22:07 PadenZach