[Pythonmac-SIG] PySerial not working on Tiger

Bob Ippolito bob at redivi.com
Sat Sep 3 01:57:06 CEST 2005


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050902/f7e905d5/attachment.html


More information about the Pythonmac-SIG mailing list