hamuchiwa / AutoRCCar

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

issue when i run rc_control_test. #217

Closed harshithdayananda closed 5 years ago

harshithdayananda commented 5 years ago

(auto-rccar) C:\Users\Administrator\Desktop\AutoRCCar-master\test>python rc_control_test.py pygame 1.9.6 Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last):

File "rc_control_test.py", line 72, in RCTest()

File "rc_control_test.py", line 13, in init self.ser = serial.Serial("/dev/tty.usbmodem1421", 115200, timeout=1) # mac

File "C:\Users\Administrator\Miniconda3\envs\auto-rccar\lib\site-packages\serial\serialwin32.py", line 31, in init super(Serial, self).init(*args, **kwargs)

File "C:\Users\Administrator\Miniconda3\envs\auto-rccar\lib\site-packages\serial\serialutil.py", line 240, in init self.open()

File "C:\Users\Administrator\Miniconda3\envs\auto-rccar\lib\site-packages\serial\serialwin32.py", line 62, in open raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError())) serial.serialutil.SerialException: could not open port '/dev/tty.usbmodem1421':

FileNotFoundError(2, 'The system cannot find the path specified.', None, 3)

harshithdayananda commented 5 years ago

@hamuchiwa please help my demonstration is due on 13th June. I am using windows 10 and my com port is 3.

hamuchiwa commented 5 years ago

@harshithdayananda The port you see is for Mac, change the serial port to match your Windows one, perhaps 'COM3' in your case.

hamuchiwa commented 5 years ago

@harshithdayananda Just replace '/dev/tty.usbmodem1421' with your port 'COM3'. It's normal to have a pygame window open, it's for listening keyboard inputs, you will see some outputs in your console if you run the file in command line.

harshithdayananda commented 5 years ago

@harshithdayananda The port you see is for Mac, change the serial port to match your Windows one, perhaps 'COM3' in your case.

@hamuchiwa on which line number is the port for windows? I can only see mac and Linux. also when I change the port for Mac and run the script I get a pi game window with a black screen. 1

like this.

Yoganandhan01 commented 4 years ago

For using windows pc i am also having the same error..