@robolink_leila
thanks for the info, it works.
Welcome to the Robolink Community forum!
Latest posts made by Alpha
-
RE: Pairing Test issue
@robolink_leila
thanks for the information, it works. -
Pairing Test issue
when I using python to do a pair test I got error from the result.
Below is my python code I use:
import CoDrone
drone = CoDrone.CoDrone()
drone.pair(drone.Nearest)and below is the output result I got:
"C:\Program Files (x86)\Python38-32\python.exe" "C:/Users/jia_f/Documents/SIT (ICT)/Modules Notes/ICT2111-Integrative Team Project/Distek ITP Project/Python Program/Test.py"
Traceback (most recent call last):
File "C:/Users/jia_f/Documents/SIT (ICT)/Modules Notes/ICT2111-Integrative Team Project/Distek ITP Project/Python Program/Test.py", line 3, in <module>
drone.pair(drone.Nearest)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\CoDrone\codrone.py", line 725, in pair
self.open(port_name)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\CoDrone\codrone.py", line 666, in open
self._serialPort = serial.Serial(
File "C:\Program Files (x86)\Python38-32\lib\site-packages\serial\serialwin32.py", line 31, in init
super(Serial, self).init(*args, **kwargs)
File "C:\Program Files (x86)\Python38-32\lib\site-packages\serial\serialutil.py", line 240, in init
self.open()
File "C:\Program Files (x86)\Python38-32\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 'COM8': FileNotFoundError(2, 'The system cannot find the file specified.', None, 2)Process finished with exit code 1