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

Mark Hammond mhammond at skippinet.com.au
Thu Sep 4 09:18:22 CEST 2008


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'

Mark

> -----Original Message-----
> From: python-win32-bounces+skippy.hammond=gmail.com at python.org
> [mailto:python-win32-bounces+skippy.hammond=gmail.com at python.org] On
> Behalf Of Hartmut Goebel
> Sent: Thursday, 4 September 2008 1:41 AM
> To: python-win32 at python.org
> Subject: [python-win32] Can't import win32api from pywin32-egg in wine
> 
> 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




More information about the python-win32 mailing list