GibsonEnv icon indicating copy to clipboard operation
GibsonEnv copied to clipboard

'HuskyNavigateEnv' object has no attribute 'UI'

Open Yuantian013 opened this issue 5 years ago • 4 comments

(base) weipan@TUD278688:~$ xhost

access control enabled, only authorized clients can connect LOCAL: SI:localuser:weipan (base) weipan@TUD278688:$ sudo docker run --runtime=nvidia -ti --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v LOCAL:/root/mount/gibson/gibson/assets/dataset xf1280/gibson:0.3.1 root@b63b6a96e6d2:/mount/gibson# python examples/demo/play_husky_nonviz.py pybullet build time: Sep 27 2018 00:17:23 pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html /root/mount/gibson/examples/demo/../configs/play/play_husky_nonviz.yaml startThreads creating 1 threads. starting thread 0 started thread 0 argc=2 argv[0] = --unused argv[1] = --start_demo_name=Physics Server ExampleBrowserThreadFunc started X11 functions dynamically loaded using dlopen/dlsym OK! Creating context Created GL 3.0 context Direct GLX rendering context obtained Making context current GL_VENDOR=NVIDIA Corporation GL_RENDERER=TITAN V/PCIe/SSE2 GL_VERSION=3.2.0 NVIDIA 418.67 GL_SHADING_LANGUAGE_VERSION=1.50 NVIDIA via Cg compiler pthread_getconcurrency()=0 Version = 3.2.0 NVIDIA 418.67 Vendor = NVIDIA Corporation Renderer = TITAN V/PCIe/SSE2 b3Printf: Selected demo: Physics Server startThreads creating 1 threads. starting thread 0 started thread 0 MotionThreadFunc thread started Traceback (most recent call last): File "examples/demo/play_husky_nonviz.py", line 14, in env = HuskyNavigateEnv(config = args.config) File "/root/mount/gibson/gibson/envs/husky_env.py", line 38, in init tracking_camera=tracking_camera) File "/root/mount/gibson/gibson/envs/env_modalities.py", line 333, in init self.model_path = get_model_path(self.model_id) File "/root/mount/gibson/gibson/data/datasets.py", line 52, in get_model_path assert (model_id in os.listdir(data_path)) or model_id == 'stadium', "Model {} does not exist".format(model_id) AssertionError: Model space7 does not exist numActiveThreads = 0 stopping threads stopThreads: Thread 0 used: 1 Thread with taskId 0 exiting Thread TERMINATED destroy semaphore semaphore destroyed destroy main semaphore main semaphore destroyed finished numActiveThreads = 0 btShutDownExampleBrowser stopping threads stopThreads: Thread 0 used: 1 Thread with taskId 0 exiting Thread TERMINATED destroy semaphore semaphore destroyed destroy main semaphore main semaphore destroyed Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/miniconda/envs/py35/lib/python3.5/site-packages/gym/utils/closer.py", line 67, in close closeable.close() File "/root/mount/gibson/gibson/envs/env_modalities.py", line 498, in _close self.UI._close() AttributeError: 'HuskyNavigateEnv' object has no attribute 'UI' Exception ignored in: <bound method Env.del of <gibson.envs.husky_env.HuskyNavigateEnv object at 0x7f3b37df90b8>> Traceback (most recent call last): File "/miniconda/envs/py35/lib/python3.5/site-packages/gym/core.py", line 203, in del self.close() File "/root/mount/gibson/gibson/envs/env_modalities.py", line 498, in _close self.UI.close() AttributeError: 'HuskyNavigateEnv' object has no attribute 'UI' root@b63b6a96e6d2:~/mount/gibson#**

Yuantian013 avatar May 29 '19 12:05 Yuantian013

_**(base) weipan@TUD278688:~$ xhost

access control enabled, only authorized clients can connect LOCAL: SI:localuser:weipan (base) weipan@TUD278688:~$ sudo docker run --runtime=nvidia -ti --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v LOCAL:/root/mount/gibson/gibson/assets/dataset xf1280/gibson:0.3.1 root@b63b6a96e6d2:~/mount/gibson# python examples/demo/play_husky_nonviz.py pybullet build time: Sep 27 2018 00:17:23 pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html /root/mount/gibson/examples/demo/../configs/play/play_husky_nonviz.yaml startThreads creating 1 threads. starting thread 0 started thread 0 argc=2 argv[0] = --unused argv[1] = --start_demo_name=Physics Server ExampleBrowserThreadFunc started X11 functions dynamically loaded using dlopen/dlsym OK! Creating context Created GL 3.0 context Direct GLX rendering context obtained Making context current GL_VENDOR=NVIDIA Corporation GL_RENDERER=TITAN V/PCIe/SSE2 GL_VERSION=3.2.0 NVIDIA 418.67 GL_SHADING_LANGUAGE_VERSION=1.50 NVIDIA via Cg compiler pthread_getconcurrency()=0 Version = 3.2.0 NVIDIA 418.67 Vendor = NVIDIA Corporation Renderer = TITAN V/PCIe/SSE2 b3Printf: Selected demo: Physics Server startThreads creating 1 threads. starting thread 0 started thread 0 MotionThreadFunc thread started Traceback (most recent call last): File "examples/demo/play_husky_nonviz.py", line 14, in env = HuskyNavigateEnv(config = args.config) File "/root/mount/gibson/gibson/envs/husky_env.py", line 38, in init tracking_camera=tracking_camera) File "/root/mount/gibson/gibson/envs/env_modalities.py", line 333, in init self.model_path = get_model_path(self.model_id) File "/root/mount/gibson/gibson/data/datasets.py", line 52, in get_model_path assert (model_id in os.listdir(data_path)) or model_id == 'stadium', "Model {} does not exist".format(model_id) AssertionError: Model space7 does not exist numActiveThreads = 0 stopping threads stopThreads: Thread 0 used: 1 Thread with taskId 0 exiting Thread TERMINATED destroy semaphore semaphore destroyed destroy main semaphore main semaphore destroyed finished numActiveThreads = 0 btShutDownExampleBrowser stopping threads stopThreads: Thread 0 used: 1 Thread with taskId 0 exiting Thread TERMINATED destroy semaphore semaphore destroyed destroy main semaphore main semaphore destroyed Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/miniconda/envs/py35/lib/python3.5/site-packages/gym/utils/closer.py", line 67, in close closeable.close() File "/root/mount/gibson/gibson/envs/env_modalities.py", line 498, in _close self.UI._close() AttributeError: 'HuskyNavigateEnv' object has no attribute 'UI' Exception ignored in: <bound method Env.del of <gibson.envs.husky_env.HuskyNavigateEnv object at 0x7f3b37df90b8>> Traceback (most recent call last): File "/miniconda/envs/py35/lib/python3.5/site-packages/gym/core.py", line 203, in del self.close() File "/root/mount/gibson/gibson/envs/env_modalities.py", line 498, in _close self.UI.close() AttributeError: 'HuskyNavigateEnv' object has no attribute 'UI' root@b63b6a96e6d2:~/mount/gibson#**

Yuantian013 avatar May 29 '19 12:05 Yuantian013

It's because space7 doesn't exist in your dataset, did you download the dataset?

fxia22 avatar May 29 '19 19:05 fxia22

Which dataset needs to be downloaded? Space7 doesn't look to be anywhere in the docker image, nor in ig_dataset

lullabee avatar Mar 18 '22 17:03 lullabee

Hi, firstly you need download the dataset from # download the dataset from https://storage.googleapis.com/gibson_scenes/dataset.tar.gz Secondly, maybe your data path has something wrong, for example: /home/gibson/dataset is right, but /home/gibson/ is wrong.

letthink avatar Mar 02 '24 03:03 letthink