avlmaps / AVLMaps

[ISER 2023] The official implementation of Audio Visual Language Maps for Robot Navigation
https://avlmaps.github.io/
MIT License
28 stars 4 forks source link

The software package fails to be installed according to the steps in the readme file. #3

Open majestichou opened 6 months ago

majestichou commented 6 months ago

I installed the software step by step according to the setup environment chapter.

git clone https://github.com/avlmaps/AVLMaps.git
conda create -n avlmaps python=3.8 -y  # or use virtualenv
conda activate avlmaps
conda install jupyter -y
cd AVLMaps
bash install.bash

I have successfully installed the packages in requirements.txt. But when the command which is conda install habitat-sim=0.2.2 -c conda-forge -c aihabitat -y is executed , something unexpected happens. The information is as follws:

Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: \ unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.

Conda is in the process of resolving the environment. I've been waiting half the day, and it's still working on the environment. I've never had this happen with conda. Is there a wrong version of some packages in the AVLMaps project, such as the python version?

Tom-Huang commented 6 months ago

Hi, thank you for your interest in our project. I tested the installation process just now and also noticed the conflict solving process. However, the process finished very soon (in less than one minute) on my computer with CPU AMD Ryzen 9 PRO 7945 12-Core Processor. The python version in the environment is 3.8.19 and it should not be an issue for habitat-sim=0.2.2. You can also try to create a new environment and install the habitat-sim shown in the install.bash file first and then pip install requirements.txt. This might avoid the conflict solving from the conda side.

majestichou commented 6 months ago

Hi, thank you for your interest in our project. I tested the installation process just now and also noticed the conflict solving process. However, the process finished very soon (in less than one minute) on my computer with CPU AMD Ryzen 9 PRO 7945 12-Core Processor. The python version in the environment is 3.8.19 and it should not be an issue for habitat-sim=0.2.2. You can also try to create a new environment and install the habitat-sim shown in the install.bash file first and then pip install requirements.txt. This might avoid the conflict solving from the conda side.

Thank you for your answer. I would like to know how your anaconda channel is set up. What is the content of ~/.condarc? My setup is as follows:

channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  deepmodeling: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/
Tom-Huang commented 6 months ago

I don't have a .condarc file under my home directory and I am using miniconda rather than anaconda.

majestichou commented 6 months ago

I don't have a .condarc file under my home directory and I am using miniconda rather than anaconda.

What is your operating system? I have this problem on both centos 7 and ubuntu 20.04: conda is in the process of resolving the environment for a long time.

Tom-Huang commented 6 months ago

I am using Ubuntu 22.04. But as I said, maybe try to install habitat-sim first before all pip installations as is shown below:

conda install habitat-sim=0.2.2 -c conda-forge -c aihabitat -y # install habitat-sim first
pip install -r requirements.txt
pip install -r avlmaps/audioclip/requirements.txt
pip install -e .
cd ~
git clone --recursive https://github.com/cvg/Hierarchical-Localization/
cd Hierarchical-Localization/
python -m pip install -e .
majestichou commented 6 months ago

pip install -r avlmaps/audioclip/requirements.txt

In the readme of the avlmaps project, there is no mention of the need for this command: pip install -r avlmaps/audioclip/requirements.txt. This command does not appear in the install.bash file. Is this command necessary?

Tom-Huang commented 6 months ago

I just pushed a quick fix for the installation. This line is necessary for the use of audioclip for map creation.