centreborelli/sat-bundleadjust

pip install fails: ad-1.3.2 dependency

Opened this issue · 2 comments

When cloning and installing this repo:
git clone https://github.com/centreborelli/sat-bundleadjust.git && cd sat-bundleadjust
an error occurs during:
$ pip install -e .

Obtaining file:///home/user/sat-bundleadjust
Preparing metadata (setup.py) ... done
Collecting rpcm@ git+https://github.com/cmla/rpcm.git@localization-origin
Cloning https://github.com/cmla/rpcm.git (to revision localization-origin) to /tmp/pip-install-_z8uxzqd/rpcm_266dd421bfbe4f4aa857a28744a16282
Running command git clone --filter=blob:none --quiet https://github.com/cmla/rpcm.git /tmp/pip-install-_z8uxzqd/rpcm_266dd421bfbe4f4aa857a28744a16282
Running command git checkout -b localization-origin --track origin/localization-origin
Switched to a new branch 'localization-origin'
Branch 'localization-origin' set up to track remote branch 'localization-origin' from 'origin'.
Resolved https://github.com/cmla/rpcm.git to commit 3b676b121f9bf87616f9ff452866049dea55d896
Preparing metadata (setup.py) ... done
Collecting setuptools<=58
Using cached setuptools-58.0.0-py3-none-any.whl (816 kB)
Collecting ad
Using cached ad-1.3.2.zip (26 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in ad setup command: use_2to3 is invalid.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

This is caused by setuptools ending support for use_2to3 parameter.

Within the Sat-NeRF repo/setup_be_env.sh:
conda create is getting pip and setuptools before this sat_bundleadjust dependency is gathered.
Stated another way, SetupTools is being installed by conda create.

User can fix with:
pip install --force-reinstall -v "setuptools<=58"
After conda create but before pip install sat_bundleadjust.

Problem is with satnerf repo. Closing here.