hamuchiwa / AutoRCCar

OpenCV Python Neural Network Autonomous RC Car
BSD 2-Clause "Simplified" License
3.33k stars 1.48k forks source link

issue after i run rc_driver.py #176

Closed Siraj95Abudaber closed 5 years ago

Siraj95Abudaber commented 5 years ago

I have a broken pipe error every time i run Rc_driver.py , i didn't have this problem when i run training and testing codes , all tho the part of code responsible of connection is the same

hamuchiwa commented 5 years ago

Can you post the error on your computer as well as on raspberry pi? Have you tried to run rc_driver_nn_only.py? Does it give you error as well?

Siraj95Abudaber commented 5 years ago

The rc_driver_nn_only.py work just fine after i change the host to " self.server_socket.bind(("0.0.0.0", port))" in the other hand the rc_driver.py don't work as well , i got this error Traceback (most recent call last): File "rc_driver.py", line 188, in ts.start() File "rc_driver.py", line 181, in start self.video_stream(self.host, self.port1) File "rc_driver.py", line 170, in video_stream s = socketserver.TCPServer((host, port), VideoStreamHandler) File "/home/siraj/miniconda3/envs/auto-rccar/lib/python3.7/socketserver.py", line 452, in init self.server_bind() File "/home/siraj/miniconda3/envs/auto-rccar/lib/python3.7/socketserver.py", line 466, in server_bind Exception in thread Thread-1: Traceback (most recent call last): File "/home/siraj/miniconda3/envs/auto-rccar/lib/python3.7/threading.py", line 917, in _bootstrap_inner self.run() File "/home/siraj/miniconda3/envs/auto-rccar/lib/python3.7/threading.py", line 865, in run self._target(*self._args, **self._kwargs) File "rc_driver.py", line 174, in sensor_stream s = socketserver.TCPServer((host, port), SensorDataHandler) File "/home/siraj/miniconda3/envs/auto-rccar/lib/python3.7/socketserver.py", line 452, in init self.server_bind() File "/home/siraj/miniconda3/envs/auto-rccar/lib/python3.7/socketserver.py", line 466, in server_bind self.socket.bind(self.server_address) OSError: [Errno 99] Cannot assign requested address

self.socket.bind(self.server_address)

OSError: [Errno 99] Cannot assign requested address

hamuchiwa commented 5 years ago

@Sirajabudabe Address is taken by your previous run, make sure to exit the program, or you can close the terminal/pycharm, then the address will be available. Check out #144 if it helps.

prologueyan-hr commented 5 years ago

how did u solved this problem?