chipKIT® Development Platform

Inspired by Arduino™

Max32 Python Problems

Created Sun, 01 Jan 2012 07:32:08 +0000 by tt_tony


tt_tony

Sun, 01 Jan 2012 07:32:08 +0000

Hey I'm new to Arduino/ChipKit but I am really enjoying it so far!

I am trying to get this to work:

...well apparently I cant include a link. this is the project:

arduino-python-4-axis-servo-control i guess just google it if you need to.

I installed Python 2.7 along with Pyserial 2.5 just to follow the instructions exactly. I am running Windows 7 64 bit on a PC. When I run the servo.py module I usually get this error or it comes up after I try to import the servo: >>> import servo

Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import servo File "C:\Python27\servo.py", line 29, in <module> ser = serial.Serial(usbport, 9600, timeout=1) File "C:\Python27\lib\site-packages\serial\serialwin32.py", line 30, in init SerialBase.init(self, *args, **kwargs) File "C:\Python27\lib\site-packages\serial\serialutil.py", line 260, in init self.open() File "C:\Python27\lib\site-packages\serial\serialwin32.py", line 56, in open raise SerialException("could not open port %s: %s" % (self.portstr, ctypes.WinError())) SerialException: could not open port com8: [Error 5] Access is denied. >>>

I have read that I need to give python administrator access but I'm not sure how to do that.


Jacob Christ

Tue, 03 Jan 2012 08:21:49 +0000

I have read that I need to give python administrator access but I'm not sure how to do that.

I've never used python but...

You probably just need to open a cmd shell that as administrator access. You can make a copy or short cut (say on the desktop) of the cmd shell that is in the start->accessories menu and change its access by right clicking on the icon then click on the "compatibility" tab. There will be an option there to run as administrator.

Jacob


tt_tony

Tue, 03 Jan 2012 15:38:12 +0000

OK, thanks for that Jacob, unfortunately it didn't help. I ran Python 3.2 and 2.7 in compatibility mode, with administrator privileges with the same result. that's OK. there are a few thousand other projects out there that I could try.