Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install fails: ad-1.3.2 dependency #12

Open
dframirez-usmc opened this issue Jan 25, 2023 · 2 comments
Open

pip install fails: ad-1.3.2 dependency #12

dframirez-usmc opened this issue Jan 25, 2023 · 2 comments

Comments

@dframirez-usmc
Copy link

dframirez-usmc commented Jan 25, 2023

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.

@dframirez-usmc
Copy link
Author

dframirez-usmc commented Jan 25, 2023

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.

@dframirez-usmc
Copy link
Author

Problem is with satnerf repo. Closing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant