[python-win32] Can't import win32api from pywin32-egg in wine

Hartmut Goebel h.goebel at goebel-consult.de
Wed Sep 3 17:40:46 CEST 2008


Hi,

when running Python in Wine, I can not import win32api which is
installed as pywin32-212-py2.5-win32.egg::

$ wine python
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32api
err:module:import_dll Library pywintypes25.dll (which is needed by
L"C:\\Python25\\lib\\site-packages\\pywin32-212-py2.5-win32.egg\\win32api.pyd")
not found
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed: Module not found
>>>

The dll exists, but

$ ls site-packages/pywin32*.egg/pywin32_system32/pywintypes25.*
site-packages/pywin32-212-py2.5-win32.egg/pywin32_system32/pywintypes25.dll

This tracks down to: pywintypes.py can not find pywintypes32.dll using
_win32sysloader.GetModuleFilename(filename) or
_win32sysloader.LoadModule(filename)

Any hints?

-- 
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3195 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080903/e505cce6/attachment.bin>


More information about the python-win32 mailing list