udacity / deep-reinforcement-learning

Repo for the Deep Reinforcement Learning Nanodegree program
https://www.udacity.com/course/deep-reinforcement-learning-nanodegree--nd893
MIT License
4.9k stars 2.34k forks source link

Banana.exe Not working #59

Closed tawsifkamal closed 2 years ago

tawsifkamal commented 3 years ago

When trying to complete the p1_navigation project, I am not able to open the environment Banana.exe neither from Ubuntu 20.04 nor Windows 10. When I try to run the code cell listed below,

env = UnityEnvironment(file_name="Banana_Windows_x86_64/Banana.exe")

The error that I get is the following:

`timeout Traceback (most recent call last) ~\anaconda3\envs\udacity_rl\lib\site-packages\unityagents\environment.py in init(self, file_name, worker_id, base_port, curriculum) 98 self._socket.listen(1) ---> 99 self.conn, = self._socket.accept() 100 self._conn.settimeout(30)

~\anaconda3\envs\udacity_rl\lib\socket.py in accept(self) 292 """ --> 293 fd, addr = self._accept() 294 sock = socket(self.family, self.type, self.proto, fileno=fd)

timeout: timed out

During handling of the above exception, another exception occurred:

UnityTimeOutException Traceback (most recent call last)

in ----> 1 env = UnityEnvironment(file_name="Banana_Windows_x86_64/Banana.exe") ~\anaconda3\envs\udacity_rl\lib\site-packages\unityagents\environment.py in __init__(self, file_name, worker_id, base_port, curriculum) 102 p = json.loads(p) 103 except socket.timeout as e: --> 104 raise UnityTimeOutException( 105 "The Unity environment took too long to respond. Make sure {} does not need user interaction to " 106 "launch and that the Academy and the external Brain(s) are attached to objects in the Scene." UnityTimeOutException: The Unity environment took too long to respond. Make sure Banana_Windows_x86_64/Banana does not need user interaction to launch and that the Academy and the external Brain(s) are attached to objects in the Scene. ` Please help. Thank you.
rajkk1 commented 1 year ago

Hello! What was the resolution to this problem?

mikepratt1 commented 9 months ago

@rajkk1 did you find a solution to this?

rajkk1 commented 9 months ago

@rajkk1 did you find a solution to this?

No I don't think I ever did :/