uv: UV 0.2.29 Permission error

I’m using uv with tox to build multiple versions of the same packet on Ubuntu Linux 22.04 LTS.

The tox.ini works well with uv 0.2.28, but starts to fail with 0.2.29. Changing back to uv 0.2.28 fixes the problem:

The command that causes the error: any uv pip install that tries to download a new file.

The error happens when uv is called inside tox and also in the command line with the virtual environment active.

The error happens when UV decides to download a package. I have the same error when the environment is empty or when it already has some installed packages.

Environment

$ uv --version
uv 0.2.29
$ python --version
Python 3.11.7
$ uname -a
Linux nilodev 5.15.0-116-generic #126-Ubuntu SMP Mon Jul 1 10:14:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ export RUST_BACKTRACE=full
$ uv pip install rich
thread 'main' panicked at crates/uv-client/src/base_client.rs:178:33:
Failed to build HTTP client: reqwest::Error { kind: Builder, source: Os { code: 13, kind: PermissionDenied, message: "Permission denied" } }
stack backtrace:
   0:     0x55c400517c45 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h1e1a1972118942ad
   1:     0x55c4005483eb - core::fmt::write::hc090a2ffd6b28c4a
   2:     0x55c40051358f - std::io::Write::write_fmt::h8898bac6ff039a23
   3:     0x55c400517a1e - std::sys_common::backtrace::print::ha96650907276675e
   4:     0x55c400519519 - std::panicking::default_hook::{{closure}}::h215c2a0a8346e0e0
   5:     0x55c40051925d - std::panicking::default_hook::h207342be97478370
   6:     0x55c4005199b3 - std::panicking::rust_panic_with_hook::hac8bdceee1e4fe2c
   7:     0x55c400519894 - std::panicking::begin_panic_handler::{{closure}}::h00d785e82757ce3c
   8:     0x55c400518109 - std::sys_common::backtrace::__rust_end_short_backtrace::h1628d957bcd06996
   9:     0x55c4005195c7 - rust_begin_unwind
  10:     0x55c3ff1a8783 - core::panicking::panic_fmt::hdc63834ffaaefae5
  11:     0x55c3ff1a8c36 - core::result::unwrap_failed::h82b551e0ff2b2176
  12:     0x55c3fffc2c76 - uv_client::base_client::BaseClientBuilder::build::hc4066069826b73b6
  13:     0x55c3fffd2a15 - uv_client::registry_client::RegistryClientBuilder::build::h09b56654473e14c4
  14:     0x55c3ff389682 - uv::commands::pip::install::pip_install::{{closure}}::hffe6d854e0c66324
  15:     0x55c3ff366092 - uv::run::{{closure}}::{{closure}}::hbd05a1e2e322c758
  16:     0x55c3ff40d509 - <core::pin::Pin<P> as core::future::future::Future>::poll::ha12a028225440d46
  17:     0x55c3ff576985 - tokio::runtime::scheduler::current_thread::Context::enter::h61c98b15c073ae39
  18:     0x55c3ff76d19e - tokio::runtime::context::set_scheduler::hadeae89fb860aac6
  19:     0x55c3ff576366 - tokio::runtime::runtime::Runtime::block_on::h6bb9c06934456063
  20:     0x55c3ff522a3b - uv::main::habe90a2d9b756a52
  21:     0x55c3ff74c199 - uv::main::h6766109f7db7d026
  22:     0x55c3ff5240b3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3c30aaf928253bef
  23:     0x55c3ff6ba379 - std::rt::lang_start::{{closure}}::h9bf9c3026104f20c
  24:     0x55c400508860 - std::rt::lang_start_internal::h3ed4fe7b2f419135
  25:     0x55c3ff74c1c5 - main
  26:     0x7f690c69cd90 - <unknown>
  27:     0x7f690c69ce40 - __libc_start_main
  28:     0x55c3ff1a8ee9 - <unknown>
  29:                0x0 - <unknown>

The package name makes no difference, having the same errors with numpy and pandas.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 28 (13 by maintainers)

Most upvoted comments

Thanks for the report! We will investigate. Are you using native TLS?

Yes, I’m using native TLS, set in the env var.