On Sep 2, 2005, at 4:17 PM, Mark Baxter wrote:

Hi all.

Sorry if this is really basic, but I've been tearing my hair out searching all over the place. I'm a complete beginner to Python (but not programming in general, I'm more of a C++ man normally).

I am trying to install PySerial on a basic MacPython installation on 10.4. As is suggested by the PySerial website I typed "sudo python setup.py install" and then tried the examples. Python just doesn't seem to believe that PySerial exists. 

I created a simple program just to import PySerial and create a serial instance:

#!/usr/bin/env python
import serial
ser = serial.Serial()

And all I get for my troubles when I type "python serial.py" is:

Traceback (most recent call last):
  File "serial.py", line 10, in ?
    import serial
  File "/Users/myb/Python Serial/serial.py", line 11, in ?
    ser = serial.Serial()
AttributeError: 'module' object has no attribute 'Serial'

Don't name your module serial.

-bob

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to