allenai / allenact

An open source framework for research in Embodied-AI from AI2.
https://www.allenact.org
Other
308 stars 49 forks source link

How to install and run habitat plugin #356

Open jiwook-jung opened 1 year ago

jiwook-jung commented 1 year ago

Problem / Question

I'd like to run your code with habitat_plugin. Could you please guide how to install and run habitat plugin in your allenact SW?

I followed the below instruction command. https://allenact.org/installation/installation-framework/#installation-of-habitat

command history

2033 git clone -b habitat-2022 --single-branch https://github.com/allenai/allenact 2034 cd allenact/ 2035 export EMBCLIP_ENV_NAME=allenact-habitat-2022 2036 export CONDA_BASE="$(dirname $(dirname "${CONDA_EXE}"))" 2037 export PIP_SRC="${CONDA_BASE}/envs/${EMBCLIP_ENV_NAME}/pipsrc" 2038 conda env create --file ./conda/environment-base.yml --name $EMBCLIP_ENV_NAME 2039 conda activate $EMBCLIP_ENV_NAME 2040 conda env update --file ./conda/environment-11.1.yml --name $EMBCLIP_ENV_NAME 2041 conda env update --file allenact_plugins/clip_plugin/extra_environment.yml --name $MY_ENV_NAME 2042 conda env update --file allenact_plugins/habitat_plugin/extra_environment.yml --name $MY_ENV_NAME

Additional context

The error message was shown up as the below. $ conda env update --file allenact_plugins/habitat_plugin/extra_environment.yml --name $MY_ENV_NAME

Collecting package metadata (repodata.json): done Solving environment: | failed Solving environment: | Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed

UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:

Specifications:

Your python: python=3.8

If python is on the left-most side of the chain, that's the version you've asked for. When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Note that conda will not change your python version to a different minor version unless you explicitly specify that.

The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package wheel conflicts for: pip -> wheel python=3.8 -> pip -> wheel

Package libuuid conflicts for: numba -> python[version='>=3.10,<3.11.0a0'] -> libuuid[version='>=1.0.3,<2.0a0|>=2.32.1,<3.0a0'] python=3.8 -> libuuid[version='>=2.32.1,<3.0a0'] pip -> python[version='>=3.8,<3.9.0a0'] -> libuuid[version='>=1.0.3,<2.0a0|>=2.32.1,<3.0a0']

Package _libgcc_mutex conflicts for: python=3.8 -> libgcc-ng[version='>=11.2.0'] -> _libgcc_mutex[version='|0.1|0.1',build='conda_forge|main'] numba -> _openmp_mutex[version='>=5.1'] -> _libgcc_mutex[version='|0.1|0.1',build='conda_forge|main']

Package certifi conflicts for: numba -> setuptools -> certifi[version='>=2016.09|>=2016.9.26'] pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']

Package _openmp_mutex conflicts for: python=3.8 -> libgcc-ng[version='>=11.2.0'] -> _openmp_mutex[version='>=4.5'] numba -> libgcc-ng[version='>=11.2.0'] -> _openmp_mutex habitat-sim=0.1.5 -> numba -> _openmp_mutex[version='>=4.5|>=5.1'] numba -> _openmp_mutex[version='>=4.5|>=5.1']

Package pypy3.7 conflicts for: pip -> setuptools -> pypy3.7[version='7.3.3.|7.3.4.|7.3.5.|7.3.7.|>=7.3.3|>=7.3.5|>=7.3.7'] numba -> numpy[version='>=1.21,!=1.22.0,!=1.22.1,!=1.22.2,<1.23'] -> pypy3.7[version='7.3.3.|7.3.4.|7.3.5.|7.3.7.|>=7.3.3|>=7.3.4|>=7.3.5|>=7.3.7'] habitat-sim=0.1.5 -> matplotlib -> pypy3.7[version='>=7.3.3|>=7.3.4|>=7.3.5|>=7.3.7']The following specifications were found to be incompatible with your system:

Your installed version is: 2.27

jordis-ai2 commented 1 year ago

Hi @jiwook-jung,

Thanks for reaching out. Given the error message, I tried modifying conda/environment-base.yml to use python=3.6 instead of 3.8 before creating the conda environment and the habitat_plugin update didn't fail on my side. I also use mamba instead of plain conda to install everything, so give it a try if any step fails.

I hope this unlocks you!