I’m pretty new to Python and wanted to try it out by making some stuff happen with my Arduino microcontroller. So I downloaded the serial library, placed it into the Lib folder and imported it into my programm. Unfortunately the import causes the following Syntax Error:
Traceback (most recent call last):
File "C:\Python33\test.py", line 2, in <module>
import serial
File "C:\Python33\lib\serial\__init__.py", line 19, in <module>
from serial.serialwin32 import *
File "C:\Python33\lib\serial\serialwin32.py", line 12, in <module>
from serial import win32
File "C:\Python33\lib\serial\win32.py", line 196
MAXDWORD = 4294967295L # Variable c_uint
^
SyntaxError: invalid syntax
I am using Windows 7 64 Bit. How can I fix this? I don’t find any other versions of the serial module.
Maybe 2to3 can help you here…