#28 [pyserial 2.5RC2, win32] No Serial class

closed
Chris Liechti
7
2010-02-04
2010-02-02
desolat
No

After freshly installing pyserial 2.5 RC2 via the windows installer on Win XP with Python 2.6.4 and trying out the "short introduction" I get the following error:

AttributeError: 'module' object has no attribute 'Serial'

What could be the reason? As site-packages is on the PYTHONPATH the Serial class should be available.

Thx,
Chris

Discussion

  • desolat
    desolat
    2010-02-02

    • priority: 5 --> 7
    • assigned_to: nobody --> cliechti
     
  • Chris Liechti
    Chris Liechti
    2010-02-04

    Do you have an other module named serial.py in your python path? or did you name your test script like that?

    Does the following return the file you expect? (it should return a path containing ".../serial/__init__.py[c]"
    >>> import serial
    >>> serial.__file__

     
  • Chris Liechti
    Chris Liechti
    2010-02-04

    • status: open --> pending
     
  • desolat
    desolat
    2010-02-04

    Stupid me: the test package was named 'serial'. Thx a lot!

     
  • desolat
    desolat
    2010-02-04

    • status: pending --> closed