Win error
veskohard opened this issue · comments
I heve problem
When i write tis all is ok:
from canard import can
from canard.hw import cantact
from canard.proto.uds import UdsInterface
dev = cantact.CantactDev("COM7")
dev.set_bitrate(125000)
dev.start()
but after adding ''p = UdsInterface(dev)" after dev.start()
i got error:
File "C:\Python27\lib\site-packages\serial\serialwin32.py", line 66, in open
raise SerialException("could not open port %r: %r" % (self.portstr, ctyp
es.WinError()))
raise SerialException("could not open port %r: %r" % (self.portstr, ctypes.WinEr
ror()))
serial.serialutilserial.serialutil..SerialExceptionSerialException: : ccould not
open port 'COM7': WindowsError(5, 'Access is denied.')ould not open port 'COM7'
: WindowsError(5, 'Access is denied.'