allenai / ai2thor

An open-source platform for Visual AI.
http://ai2thor.allenai.org
Apache License 2.0
1.15k stars 215 forks source link

error about ai2thor-xorg #1167

Open cuican-github opened 11 months ago

cuican-github commented 11 months ago

Hello, I am a beginner in ai2thor.when i use google colab, linux remote server and local laptop to run example code, it raise the same error:

Exception Traceback (most recent call last) in <cell line: 1>() ----> 1 controller = Controller( 2 agentMode="arm", 3 massThreshold=None, 4 scene="FloorPlan203", 5 visibilityDistance=1.5,

1 frames /usr/local/lib/python3.10/dist-packages/ai2thor/controller.py in find_build(self, local_build, commit_id, branch, platform) 1350 message += instructions 1351 error_messages.append(message) -> 1352 raise Exception("\n".join(error_messages)) 1353 1354 def find_platform_builds(

Exception: The following builds were found, but had missing dependencies. Only one valid platform is required to run AI2-THOR. Platform Linux64 failed validation with the following errors: Invalid display: :1. Failed to connect Can't connect to display ":1": [Errno 111] Connection refused Linux64 requires a X11 server to be running with GLX. If you have a NVIDIA GPU, please run: sudo ai2thor-xorg start

how can i fix this issue? i need to run this python file (also your work)https://github.com/allenai/interactron/blob/main/data_collection/collect_ithor_tree_data.py to generate my dataset, but i can't fix this error.

I would be greatly appreciative if you could respond to me.

Shengqiang-Zhang commented 10 months ago

Same problem here, have you solved this problem? Thanks very much!

cuican-github commented 10 months ago

After deploying and running the ai2thor code on a cloud server, I encountered this issue. Since ai2thor is based on Unity, it requires the X11 server to be available on the GPU. However, since cloud servers do not have a display interface, it seems impossible to install the X11 server. Therefore, I installed the Ubuntu system on my local computer and configured the corresponding ai2thor environment, which allowed me to successfully run the code.

Hope these can help you!