peteanderson80 / Matterport3DSimulator

AI Research Platform for Reinforcement Learning from Real Panoramic Images.
Other
481 stars 129 forks source link

cannot connect to X server localhost:11.0 #102

Closed kiitaamuuraa closed 2 years ago

kiitaamuuraa commented 2 years ago

Firstly, I appreciate your great work on this project. I have been setting up my docker environment following your instruction, and am trying to run the instructive demo. I encountered an error, whose message is cannot connect to X server localhost:11.0on running python3 src/driver/driver.py. It would be great if you could help with the issue.

kiitaamuuraa commented 2 years ago

I tried to execute the following code and failed to connect to X server on a docker container.

root@196ad3b0a158:~/mount/Matterport3DSimulator/build# python3Python 3.6.9 (default, Jan 26 2021, 15:33:00) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.namedWindow('Python RGB')
: cannot connect to X server 

Also, I made sure the code, cv2.namedWindow('Python RGB'), had worked without docker.

chenguanqi commented 2 years ago

Hi, I have the same problem. Do you solve this problem?

kiitaamuuraa commented 2 years ago

Yes, I did; I followed the following instruction https://stackoverflow.com/questions/48235040/run-x-application-in-a-docker-container-reliably-on-a-server-connected-via-ssh-w