[Pythonmac-SIG] PySerial not working on Tiger

Bob Ippolito bob at redivi.com
Sat Sep 3 02:05:17 CEST 2005


On Sep 2, 2005, at 5:02 PM, Mark Baxter wrote:

>
> On Sep 3, 2005, at 1:57 AM, Bob Ippolito wrote:
>
>>
>> Don't name your module serial.
>>
>
> Is there any particular reason why? The PySerial website (http:// 
> pyserial.sourceforge.net/) seems to think that it works and all I  
> have done is try to follow the examples.

Because "import serial" imports whatever thing it finds named serial,  
and it's not finding PySerial because you have a module named  
serial.py.  If the PySerial documentation says "name your script  
serial.py", then it's dumb because that won't work.

-bob

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


More information about the Pythonmac-SIG mailing list