Hi,

I have installed pywin32-214.win32 on Vista. Python Version 2.5.2.

PYTHONPATH is set to  
C:\Python25\Lib\site-packages\win32;C:\Python25\Lib\site-packages;

when I try to import win32com I get the following traceback:

>>> import win32com
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "C:\Python25\Lib\site-packages\win32com\__init__.py", line 5, in 
<module>
   import win32api, sys, os
 File 
"c:\Python25\Lib\site-packages\isapi\test\build\bdist.win32\winexe\temp\win32api.py",
 
line 15
, in <module>
   __load()
 File 
"c:\Python25\Lib\site-packages\isapi\test\build\bdist.win32\winexe\temp\win32api.py",
 
line 13
, in __load
   mod = imp.load_dynamic(__name__, path)
ImportError: DLL load failed: The specified module could not be found.

When importing  win32api I get:

>>> import win32com
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "C:\Python25\Lib\site-packages\win32com\__init__.py", line 5, in 
<module>
   import win32api, sys, os
 File 
"c:\Python25\Lib\site-packages\isapi\test\build\bdist.win32\winexe\temp\win32api.py",
 
line 15
, in <module>
   __load()
 File 
"c:\Python25\Lib\site-packages\isapi\test\build\bdist.win32\winexe\temp\win32api.py",
 
line 13
, in __load
   mod = imp.load_dynamic(__name__, path)
ImportError: DLL load failed: The specified module could not be found.


If I hardcode the path 'C:\Python25\Lib\site-packages\win32' into the 
line mod = imp.load_dynamic(__name__, path) the import works fine. print 
__loader__ gives: NameError: global name '__loader__' is not defined. So 
the resulting path is therefor c:\Python25\win32api.pyd which is wrong.

I am relatively new to python (I haven't really got the idea behind 
__loader__ ). Any help would be very much appreciated.

Uri


-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to