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

TimeoutError: Could not get a message from the queue after 600 attempts #63

Open
jaclyngu opened this issue Oct 28, 2024 · 1 comment
Open

Comments

@jaclyngu
Copy link

jaclyngu commented Oct 28, 2024

Hi, I've checked all previous issues related to this; I've tested the below steps from ai2thor works fine, and have set the multiprocessing to False. But I still cannot connect to Unity. I've also tried to turn on and off my VPNs. Could you tell me how to debug this? I'm using Mac Somona 14.4
Screenshot 2024-10-28 at 12 42 02 PM

Traceback (most recent call last):
File "/opt/anaconda3/envs/holodeck/lib/python3.10/site-packages/ai2thor/wsgi_server.py", line 48, in queue_get
res = que.get(block=True, timeout=queue_get_timeout_per_try)
File "/opt/anaconda3/envs/holodeck/lib/python3.10/queue.py", line 179, in get
raise Empty
_queue.Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/Holodeck/connect_to_unity.py", line 32, in
controller = Controller(
File "/opt/anaconda3/envs/holodeck/lib/python3.10/site-packages/ai2thor/controller.py", line 547, in init
self.start(
File "/opt/anaconda3/envs/holodeck/lib/python3.10/site-packages/ai2thor/controller.py", line 1548, in start
self.last_event = self.server.receive(timeout=self.server_start_timeout)
File "/opt/anaconda3/envs/holodeck/lib/python3.10/site-packages/ai2thor/wsgi_server.py", line 281, in receive
return queue_get(
File "/opt/anaconda3/envs/holodeck/lib/python3.10/site-packages/ai2thor/wsgi_server.py", line 62, in queue_get
raise TimeoutError(
TimeoutError: Could not get a message from the queue after 600 attempts

@YueYANG1996
Copy link
Collaborator

It should has nothing to do with the VPNs. Did you open the Unity and click the play button? Also, have you reinstall some packages by following this?

pip uninstall Werkzeug
pip uninstall Flask
pip install Werkzeug==2.0.1
pip install Flask==2.0.1

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