Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while opening port in Python using TI Chronos

Tags:

python

port

I'm trying to get accelerometer data from TI Chronos. I get the following error message when I run the code:

Traceback (most recent call last):
  File "C:\Python32\chronos_accel.py", line 50, in <module>

.

 .

   .

raise SerialException("could not open port %s: %s" % (self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port COM4: [Error 5] Access is denied.

Why is access denied? I'm the system administrator. Could it be a problem with the code?

like image 582
Jay Avatar asked May 24 '11 02:05

Jay


1 Answers

I figured it out. It was simple enough.

I just disabled the COM port in the Device Manager window and enabled it again.

like image 74
Jay Avatar answered Sep 28 '22 05:09

Jay