Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error about ai2thor-xorg #1167

Open
cuican-github opened this issue Oct 16, 2023 · 2 comments
Open

error about ai2thor-xorg #1167

cuican-github opened this issue Oct 16, 2023 · 2 comments

Comments

@cuican-github
Copy link

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
Copy link

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

@cuican-github
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants