serial I/O install fail -- DLL not found

Fossil mskcrpttnrmt at
Mon Nov 1 22:55:06 CET 2010

Just starting with Python.
  Python 2.7
on a Home WinXP SP3 Toshiba laptop with 2GB memory.  Open Python and
try to do simple I/O test and can't even get past first line.
Transcript below.  You will see that
__name__ is defined as '__main__"
but path is not defined.  Could this be due to creating the folder
holding the Python.exe being on the E: drive or for some other obscure
reason?  The DOS path environmental variable includes:
e:\Program Files\Python27
Thanks in advance for for any help.

Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit
(Intel)] on win
Type "help", "copyright", "credits" or "license" for more information.
>>> from uspp import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "E:\Python27\lib\", line 189, in <module>
    from SerialPort_win import *
  File "E:\Python27\lib\", line 54, in <module>
    from win32file import *
  File "E:\Python27\lib\", line 12, in <module>
  File "E:\Python27\lib\", line 10, in __load
    mod = imp.load_dynamic(__name__, path)
ImportError: DLL load failed: The specified module could not be found.
>>> path
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'path' is not defined
>>> __name__

More information about the Python-list mailing list