@@ -49,33 +49,39 @@ conda activate ${env_dir}
4949# Pin pytorch to 2.5.1 for IsaacLab
5050conda install pytorch==2.5.1 torchvision==0.20.1 pytorch-cuda=12.4 -c pytorch -c nvidia -y
5151
52- conda run -p ${env_dir} pip install --upgrade pip
53- conda run -p ${env_dir} pip install ' isaacsim[all,extscache]==4.5.0' --extra-index-url https://pypi.nvidia.com
52+ # Ensure libexpat is at the correct version to avoid symbol errors
53+ conda install -c conda-forge expat -y
54+
55+ # Set LD_LIBRARY_PATH to prioritize conda environment libraries
56+ export LD_LIBRARY_PATH=${lib_dir} :$LD_LIBRARY_PATH
57+
58+ python -m pip install --upgrade pip
59+ python -m pip install ' isaacsim[all,extscache]==4.5.0' --extra-index-url https://pypi.nvidia.com
5460conda install conda-forge::" cmake>3.22" -y
5561
5662git clone https://github.com/isaac-sim/IsaacLab.git
5763cd IsaacLab
58- conda run -p ${env_dir} ./isaaclab.sh --install sb3
64+ ./isaaclab.sh --install sb3
5965cd ../
6066
6167# install tensordict
6268if [[ " $RELEASE " == 0 ]]; then
6369 conda install " anaconda::cmake>=3.22" -y
64- conda run -p ${env_dir} python -m pip install " pybind11[global]"
65- conda run -p ${env_dir} python -m pip install git+https://github.com/pytorch/tensordict.git
70+ python -m pip install " pybind11[global]"
71+ python -m pip install git+https://github.com/pytorch/tensordict.git
6672else
67- conda run -p ${env_dir} python -m pip install tensordict
73+ python -m pip install tensordict
6874fi
6975
7076# smoke test
71- conda run -p ${env_dir} python -c " import tensordict"
77+ python -c " import tensordict"
7278
7379printf " * Installing torchrl\n"
74- conda run -p ${env_dir} python -m pip install -e . --no-build-isolation
75- conda run -p ${env_dir} python -c " import torchrl"
80+ python -m pip install -e . --no-build-isolation
81+ python -c " import torchrl"
7682
7783# Install pytest
78- conda run -p ${env_dir} python -m pip install pytest pytest-cov pytest-mock pytest-instafail pytest-rerunfailures pytest-error-for-skips pytest-asyncio
84+ python -m pip install pytest pytest-cov pytest-mock pytest-instafail pytest-rerunfailures pytest-error-for-skips pytest-asyncio
7985
8086# Run tests
81- conda run -p ${env_dir} python -m pytest test/test_libs.py -k isaac -s
87+ python -m pytest test/test_libs.py -k isaac -s
0 commit comments