uv
uv copied to clipboard
It doesn't work on Alpine Linux(Actually in iSH app)
Environment
platform (result of "uname -a")
Linux iPhone-7-Plus 4.20.69-ish SUPER AWESOME May 20 2023 23:41:32 i686 Linux
Note: Alpine Linux's default shell is ash. This may be crucial.
uv version
0.1.26
Method of reproducing
I'm afraid you have to try to find an Apple device and install iSH to reproduce.
issue
I use iSH app to simulate linux on iPhone. Using pip in this case is unbearably slow. So I tried to install uv. I tried four times, but the installation was not successful. The following are the details of my four attempts.
-
I first installed it using the package manager: "apk add uv" (apk is the package manager of Alpine Linux.) Output shows that there is no such package. Then I ran "apk search uv", still no.
-
I ran the installation command in readme. But it raised an error: ERROR: there isn't a package for i686-unknown-linux-musl-dynamic. I didn't delve into the reason.
-
I downloaded uv-i686-unknown-linux-musl.tar.gz, uncompressed it, and tried running the "uv" file in it. It raised an error again:
thread 'tokio-runtime-worker' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/multi_thread/worker.rs:656:12thread 'tokio-runtime-worker' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/runtime/scheduler/multi_thread/worker.rs:656:12:
:
attempt to calculate the remainder with a divisor of zero
attempt to calculate the remainder with a divisor of zero
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Segmentation fault
I thought it might not work this way, So I tried to find another.
- I browsed the installation script and modified the part of the architecture check. I let it to install i686-unknown-linux-musl directly. The installation went smoothly. The output looks like this:
downloading uv 0.1.26 i686-unknown-linux-musl
installing to /root/.cargo/bin
uv
everything's installed!
To add $HOME/.cargo/bin to your PATH, either restart your shell or run:
source $HOME/.cargo/env
I ran "source $HOME/.cargo/env" and then ran "uv", still not working. Error message was the same as the second time.
my request
Please see what's wrong with this. Alpine Linux is popular after all.
PS: uv is such a cool program!