This is the error that I get after typing import serial. I’m running osx snow leopard, python3.2 and there were no errors when I installed pyserial.
import serial
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "serial/__init__.py", line 21, in <module>
from serial.serialposix import *
File "serial/serialposix.py", line 64
50: 0000001,
^
0000001is an invalid token in Python 3, because it used to be parsed as an octal literal in Python 2, and that behavior was dropped in favor of the0oprefix.0o0000001would work (as would0o1, or simply1).I don’t exactly know why your version of pySerial contains such a literal, but it will not work on Python 3 as it is. Try upgrading, as Martijn suggests.