Installation via Pixi fails on Ubuntu 24.04
Describe the bug I'm following the installation guide on Ubuntu 24.04 using the Pixi dependency manager: https://docs.nerf.studio/quickstart/installation.html#using-pixi
After cloning the nerfstudio repository and running pixi run post-install, the installation ultimately fails with the error Unsupported archive type: setuptools when trying to install fire==0.6.0. This error occurs with every Pixi command, as it tries to update the lockfile first and then runs into the problem when installing fire.
To Reproduce
git clone https://github.com/nerfstudio-project/nerfstudio.git
cd nerfstudio
git checkout tags/v1.1.3
pixi run post-install
Output:
⠒ default:linux-64 [00:00:00] resolving fire==0.6.0 × failed to solve the pypi requirements of 'default' 'linux-64'
├─▶ failed to resolve pypi dependencies
├─▶ Failed to download and build `fire==0.6.0`
├─▶ Failed to build: `fire==0.6.0`
├─▶ Failed to install requirements from build-system.requires (install)
├─▶ Failed to prepare distributions
├─▶ Failed to fetch wheel: setuptools==69.5.1
├─▶ Failed to extract archive
╰─▶ Unsupported archive type: setuptools
The result is the same for v1.1.3 and for current main (2ed1716980191abd818d048b686475f897267c96).
Expected behavior Installation completes without errors.
Additional context
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble
$ uname -a
Linux desktop 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ pixi -V
pixi 0.27.1
$ pixi list -vv 2>&1 |grep -E 'setuptools|fire'
INFO resolve_pypi{group=default platform=linux-64}: pixi::lock_file::resolve::pypi: the following python packages are assumed to be installed by conda: pysocks 1.7.1, jinja2 3.1.4, mpmath 1.3.0, certifi 2024.2.2, gmpy2 2.1.5, pillow 10.3.0, torch 2.2.2, numpy 1.26.4, pip 24.0, requests 2.31.0, charset-normalizer 3.3.2, pyyaml 6.0.1, setuptools 69.5.1, wheel 0.43.0, sympy 1.12, pyarrow 15.0.2, brotli 1.1.0, markupsafe 2.1.5, typing-extensions 4.11.0, idna 3.7, urllib3 2.2.1, torchvision 0.17.2, filelock 3.14.0, networkx 3.3
INFO solve:solve_tracked: pubgrub::internal::partial_solution: add_decision: setuptools @ 69.5.1
INFO resolve_pypi{group=default platform=linux-64}:process_request{request=Prefetch fire *}:get_or_build_wheel_metadata{dist=fire==0.6.0}:build_metadata{dist=fire==0.6.0}:setup_build{version_id="fire==0.6.0" subdirectory=None}: uv_virtualenv::bare: Ignoring empty directory
INFO solve:solve_tracked: pubgrub::internal::partial_solution: add_decision: setuptools @ 69.5.1
├─▶ Failed to download and build `fire==0.6.0`
├─▶ Failed to build: `fire==0.6.0`
├─▶ Failed to fetch wheel: setuptools==69.5.1
╰─▶ Unsupported archive type: setuptools
Same problem in Ubuntu 20.04 LTS, same steps to reproduce. The Docker unfortunately also seems to be broken (ns-download-data immediately errors with ModuleNotFoundError: No module named 'nerfstudio'), so none of the installation options described on the docs page work at the moment.
same error in Ubuntu 22.04
I saw this error recently - I saw it with magic, which is a fork of pixi. The equivalent pixi version that fixed it for me is 0.33.0.