Closed Sino-Huang closed 2 years ago
Hi, A new error message came out when I tried to build Docker manually
➜ iglu git:(master) ✗ docker run --network host --rm -it -v $(pwd):/root/iglu_dev iglu_env python iglu_dev/test/test_env.py
Traceback (most recent call last):
File "iglu_dev/test/test_env.py", line 2, in <module>
import minerl_patched
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/__init__.py", line 7, in <module>
import minerl_patched.herobraine.envs
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/herobraine/envs.py", line 19, in <module>
MINERL_TREECHOP_V0 = Treechop()
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/herobraine/env_specs/treechop_specs.py", line 44, in __init__
**kwargs)
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/herobraine/env_specs/simple_embodiment.py", line 34, in __init__
super().__init__(name, *args, **kwargs)
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/herobraine/env_spec.py", line 38, in __init__
self.reset()
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/herobraine/env_spec.py", line 44, in reset
self.actionables = self.create_actionables()
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/herobraine/env_specs/simple_embodiment.py", line 47, in create_actionables
handlers.KeybasedCommandAction(k, v) for k, v in INVERSE_KEYMAP.items()
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/herobraine/env_specs/simple_embodiment.py", line 48, in <listcomp>
if k in SIMPLE_KEYBOARD_ACTION
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/herobraine/hero/handlers/agent/actions/keyboard.py", line 60, in __init__
super().__init__(command, spaces.Discrete(len(keys) + 1))
File "/root/miniconda/envs/py37/lib/python3.7/site-packages/minerl_patched-0.1.0-py3.7-linux-x86_64.egg/minerl_patched/herobraine/hero/spaces.py", line 206, in __init__
self.shape = ()
AttributeError: can't set attribute
So, this means that the it's not about OS or CUDA, I think something wrong with the current dependencies.
Hi, wrt the second error, make sure you are using gym==0.18.3
.
Hi, wrt the second error, make sure you are using
gym==0.18.3
.
yes, only the first error remained after I switched to gym==0.18.3
should be fixed now. pls check
Greeting. My environment is Ubuntu 20.04.3 LTS RTX 3090 NVIDIA-SMI 470.86 Driver Version: 470.86 CUDA Version: 11.4 cudnn8 I tried to run this program on my local machine, and then I encounter KeyError
Not sure what caused this. But I can successfully run the program on docker container. I think the only difference is that the container is based on nvidia/cuda:10.1-cudnn7-runtime-ubuntu18.04