[python-win32] Probelm with win32api dll load failed

Mike Driscoll mdriscoll at co.marshall.ia.us
Tue Mar 31 16:08:18 CEST 2009


Andrew Spagnoletti wrote:
> Hi, 
> ? 
> I have developed an application with Python 2.6 and wxPython and prepared the set up using py2exe and InstallJammer. 
> ? 
> When I generated the installation from ?my Vista machine and then install it on an XP computer (not sure if there is any significance to the Vista -> XP), when I run the installed program on the XP machine I get the following log (note that LegaliteInvoice contains the following import, but so does LegaliteMain ? which calls LegaliteViewTransactions which calls LegaliteInvoice): - 
> from win32com.client import Dispatch 
> ? 
> Traceback (most recent call last): 
> ? File "LegaliteMain.pyw", line 13, in <module> 
> ? File "LegaliteViewTransactions.pyc", line 8, in <module> 
> ? File "LegaliteInvoice.pyc", line 7, in <module> 
> ? File "win32com\__init__.pyc", line 5, in <module> 
> ? File "win32api.pyc", line 12, in <module> 
> ? File "win32api.pyc", line 10, in __load 
> ImportError: DLL load failed: The specified procedure could not be found. 
> ? 
> Any ideas? 
> ? 
>  
> Andrew Spagnoletti 
>  
> ----------

This is a py2exe question, but I think you need to specifically include 
the win32com library in your setup.py file that you use to build the 
executable with py2exe. See their docs for how to do that.

- Mike


More information about the python-win32 mailing list