allenai / ai2thor-colab

🚀 Run AI2-THOR with Google Colab
https://ai2thor.allenai.org
Apache License 2.0
19 stars 3 forks source link

Issue on Colab: "Failed to connect Can't connect to display" #4

Open yding25 opened 1 year ago

yding25 commented 1 year ago

When I run AI2-THOR on Colab, I had such an issue. How to solve it?

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
shenxy05 commented 1 year ago

Hi, have you ever solved this problem? I tried running the suggested commandsudo ai2thor-xorg startbut got another series of errors

yding25 commented 1 year ago

No. I give up running it on colab. There is no issue on local PC.

shenxy05 commented 1 year ago

No. I give up running it on colab. There is no issue on local PC.

Okay, I'll try it on PC too. Thanks for your quick reply!

garfieldnate commented 11 months ago

I encountered the same issue on the stock Collab notebook for procthor, so I think this functionality must just be broken right now. Maybe Collab's out-of-the-box config changed or something?

wonggwan commented 9 months ago

Could you please tell me did you solve this issue now?

basteran commented 2 months ago

Hi everyone, I had the same issue and one way to solve it is to enable the GPU usage in Google Colab.

But now I have a different problem:

ValueError                                Traceback (most recent call last)
[<ipython-input-2-de96efd4658a>](https://localhost:8080/#) in <cell line: 1>()
----> 1 controller = Controller()

1 frames
[/usr/local/lib/python3.10/dist-packages/ai2thor/controller.py](https://localhost:8080/#) in find_build(self, local_build, commit_id, branch, platform)
   1304             platforms_message = ",".join(map(lambda p: p.name(), candidate_platforms))
   1305             if commit_id:
-> 1306                 raise ValueError(
   1307                     "Invalid commit_id: %s - no build exists for arch=%s platforms=%s"
   1308                     % (commit_id, platform_system(), platforms_message)

ValueError: Invalid commit_id: f0825767cd50d69f666c7f282e54abfe58f1e917 - no build exists for arch=Linux platforms=Linux64

Can I somehow change the commit ID?

hgrattenthaler commented 1 month ago

This seems to be a larger issue, i cannot get X to run on any colab notebook, no matter what i try, it comes down to this error message when starting X: xf86EnableIO: failed to enable I/O ports 0000-03ff (Operation not permitted). The virtualhome project has the same problem on their demo colab notebook. I cannot find a larger community that requires the X display system to run on Google Colab. Here are the experiments as a github gist.