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

Hartmut Goebel h.goebel at goebel-consult.de
Thu Sep 4 10:05:10 CEST 2008


Hallo Mark,

> IIRC there is a bug in setuptools that prevented the post-install script
> running in an egg - which would prevent those 2 DLLs being copied from
> pywin32_system32 to either system32 or next to python.exe.  Try copying them
> manually, or run 'pywin32_postinstall.py -install'

Neither of these seams to work.

1) Both Scripts/pywin32_postinstall.py and
Lib/site-packages/pywin32-212-py2.5-win32.egg/EGG-INFO/scripts/pywin32_postinstall.py
fail.

2) Manual copy to C:\Python25, C:\Python25\DLLs and C:\windows\system32 
does not help.

I figured out that LoadSystemModule wants to load
C:\Python25\Lib\site-packages\pywin32_system32\pywintypes25.dll
which doe not exist in an egg.

I prepared a patch which I will issue to the sourceforge project page.

-- 
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: 4719 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080904/70543385/attachment.bin>


More information about the python-win32 mailing list