dll errors in compiled python program

A

Alex Hall

Hi all,
I am stumped. The compiled version of my project works on my pc, but
when I put it on a thumb drive and try it on a laptop without python
installed I get this:

Traceback (most recent call last):
File "sw.pyw", line 3, in <module>
File "modes\arm.pyc", line 4, in <module>
File "dependencies\wmi1_3\wmi.pyc", line 140, 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.
Traceback (most recent call last):
File "sw.pyw", line 3, in <module>
File "modes\arm.pyc", line 4, in <module>
File "dependencies\wmi1_3\wmi.pyc", line 140, 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.

It repeated it twice in the log file; that is no mistake. The compiled exe is at
http://www.gateway2soemewhere.com/sw/sw_beta.zip

Thanks in advance. I will be amazed when this finally works the way it should!!
 
D

DonAmit

You can do this easy by adding this to the options dict in setup.py

'dll_excludes': [ "mswsock.dll", "powrprof.dll" ]

source:
http://stackoverflow.com/questions/1979486/py2exe-win32api-pyc-importerror-dll-load-failed

-Amit

Alex Hall said:
I am stumped. The compiled version of my project works on my pc, but
when I put it on a thumb drive and try it on a laptop without python
installed I get this:
ImportError: DLL load failed: The specified procedure could not be found.

Are you using py2exe? If so, are you including the necessary MS
runtime dll[1]?

1: http://www.py2exe.org/index.cgi/Tutorial#Step5
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top