Skip to content

Commit c6f60e4

Browse files
authored
[CI] Fix habitat-gym imports (#890)
1 parent 4a6516a commit c6f60e4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.circleci/unittest/linux_libs/scripts_habitat/run_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env_dir="${root_dir}/env"
1919
lib_dir="${env_dir}/lib"
2020

2121
# smoke test
22-
python -c "import habitat;import habitat.utils.gym_definitions"
22+
python -c "import habitat;import habitat.gym"
2323

2424
# solves ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found
2525
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$lib_dir
@@ -35,7 +35,7 @@ conda env config vars set LD_PRELOAD=$LD_PRELOAD:$STDC_LOC
3535
conda deactivate && conda activate ./env
3636

3737
# this workflow only tests the libs
38-
python -c "import habitat;import habitat.utils.gym_definitions"
38+
python -c "import habitat;import habitat.gym"
3939
python -c """from torchrl.envs.libs.habitat import HabitatEnv
4040
env = HabitatEnv('HabitatRenderPick-v0')
4141
env.reset()

.circleci/unittest/linux_libs/scripts_habitat/setup_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ conda run python -m pip install git+https://github.com/facebookresearch/habitat-
5555
conda run python -m pip install "gym[atari,accept-rom-license]" pygame
5656

5757
# smoke test
58-
python -c "import habitat;import habitat.utils.gym_definitions"
58+
python -c "import habitat;import habitat.gym"

torchrl/envs/libs/habitat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
IMPORT_ERR = None
1616
try:
1717
import habitat
18-
import habitat.utils.gym_definitions # noqa
18+
import habitat.gym # noqa
1919

2020
_has_habitat = True
2121
except ImportError as err:

0 commit comments

Comments
 (0)