Installing pySerial

eliben eliben at gmail.com
Sat Sep 20 07:01:14 CEST 2008


On Sep 18, 6:01 pm, Tim Golden <m... at timgolden.me.uk> wrote:
> Joe G (Home) wrote:
> > Hi All,
>
> > Background
> > ===================
> > I have installed Python for windows today from the python web site  .I also
> > installed pySerial using the Windows installer from the sourceforge web
> > site..... Both installs use the default directories.
>
> > Phyton  version    : Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC
> > v.1310 32 bit (Intel)] on win32
>
> > pySerial   2.4   July 6th
>
> > Problem :  Errors Screen output
> > ============================
> >>>> import serial
>
> > Traceback (most recent call last):
> >   File "<pyshell#0>", line 1, in <module>
> >     import serial
> >   File "C:\Python25\Lib\site-packages\serial\__init__.py", line 18, in
> > <module>
> >     from serialwin32 import *
> >   File "C:\Python25\Lib\site-packages\serial\serialwin32.py", line 9, in
> > <module>
> >     import win32file  # The base COM port and file IO functions.
> > ImportError: No module named win32file
>
> You need to install the pywin32 extensions from:
>
>  http://pywin32.sf.net
>
> They're so commonly used (and, if you install the ActiveState
> distro of Python, even bundled) that I imagine many Windows
> Pythoneers like myself simply install them automatically as
> soon as we've installed the main python.org Python.
>
> Once you've done that, the rest should just work: it's
> clear from the traceback that the serial module is getting
> imported; it's just trying to find the win32file module.
>

Why are people preferring the python.org package over ActiveState's,
which seems to be more complete and includes more modules (like
pywin32) ?

Eli




More information about the Python-list mailing list