ActivePython 2.1.0 build 211
Jim Gurnavage
gurnavage at agere.com
Thu Jun 21 10:19:27 EDT 2001
Paul,
I believe there is a problem with the win32commc.pyd (DLL) in the 211 build for
Windows 98.
(Disclaimer: I am a totally newbie, with roughly 12 hours of Python experience;
so this may all be naiveté!).
According to DependancyWalker (http://www.dependencywalker.com/) the DLL file
win32commc.pyd is
looking for a system file called python15.dll. I think it should be looking for
python21.dll.
To reproduce the problem, run the following code sample. The "import win32comm"
will attempt to load win32commc.pyd and fail with the following error:
======== PythonWin output start ==========
PythonWin 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond (MarkH at ActiveState.com) - see
'Help/About PythonWin' for further copyright information.
Traceback (most recent call last):
File "c:\python21\pythonwin\pywin\framework\scriptutils.py", line 301, in
RunScript
exec codeObject in __main__.__dict__
File "C:\_mywork\python\commtest\JUNK.PY", line 3, in ?
import win32comm
File "c:\python21\lib\win32comm.py", line 1043, in ?
import win32commc
ImportError: DLL load failed: One of the library files needed to run this
application cannot be found.
>>>
====== end PythonWin output =============
#-------
import sys
import win32comm
# ============================================================
# Test code.
# ============================================================
def _test_():
print "Hello!"
# ============================================================
if __name__ == '__main__':
_test_()
## end of file
Thanks for any help.
Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gurnavage.vcf
Type: text/x-vcard
Size: 276 bytes
Desc: Card for Jim Gurnavage
URL: <http://mail.python.org/pipermail/python-list/attachments/20010621/929f3712/attachment.vcf>
More information about the Python-list
mailing list