From 9975508474380728af3d72f00e1b0f34a6c35566 Mon Sep 17 00:00:00 2001 From: David Ramirez Date: Wed, 25 Jan 2023 15:22:35 -0700 Subject: [PATCH 1/2] Ensure setuptools version <=58 Resolves issue with setuptools loss of support for "use_2to3". Resolves "pip install sat-bundleadjust" issue "error in ad setup command: use_2to3 is invalid." --- setup_ba_env.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup_ba_env.sh b/setup_ba_env.sh index c4a3040..aaf3c7b 100644 --- a/setup_ba_env.sh +++ b/setup_ba_env.sh @@ -1,6 +1,7 @@ ### create satnerf venv conda create -n ba -c conda-forge python=3.8 conda activate ba +python3 -m pip install --force-reinstall -v "setuptools<=58" python3 -m pip install git+https://github.com/centreborelli/sat-bundleadjust pip install fire #pip install "pyproj>=2.0.2,<3.0.0" From ebb8c372426a1275d6a9a660f96cadea83f6dc1d Mon Sep 17 00:00:00 2001 From: David Ramirez Date: Wed, 25 Jan 2023 17:05:17 -0700 Subject: [PATCH 2/2] Include libgdal and torch into dependencies Needed for special execution --- setup_ba_env.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/setup_ba_env.sh b/setup_ba_env.sh index aaf3c7b..801f278 100644 --- a/setup_ba_env.sh +++ b/setup_ba_env.sh @@ -1,9 +1,10 @@ ### create satnerf venv -conda create -n ba -c conda-forge python=3.8 +conda create -n ba -c conda-forge python=3.8 libgdal conda activate ba -python3 -m pip install --force-reinstall -v "setuptools<=58" -python3 -m pip install git+https://github.com/centreborelli/sat-bundleadjust +python3 -m pip install --ignore-installed certifi gdal +python3 -m pip install --force-reinstall -v "setuptools<=58" pip +python3 -m pip install --ignore-installed git+https://github.com/centreborelli/sat-bundleadjust +pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 -f https://download.pytorch.org/whl/torch_stable.html pip install fire -#pip install "pyproj>=2.0.2,<3.0.0" conda deactivate echo "ba conda env created !"