Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4598

Re: dll errors in compiled python program

Date 2011-05-03 23:12 -0700
From DonAmit <amit.paunikar@gmail.com>
Subject Re: dll errors in compiled python program
References <v2sbc7f680c1004291830k2a7967afv5eb9b9e0a074737c@mail.gmail.com> <56def94c-f0d8-4aa2-b46d-be06138ab5b0@q36g2000prg.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.1140.1304489523.9059.python-list@python.org> (permalink)

Show all headers | View raw


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 


alex23 wrote:
> 
> Alex Hall <mehg...@gmail.com> wrote:
>> 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
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 
> 

-- 
View this message in context: http://old.nabble.com/dll-errors-in-compiled-python-program-tp28407640p31538796.html
Sent from the Python - python-list mailing list archive at Nabble.com.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: dll errors in compiled python program DonAmit <amit.paunikar@gmail.com> - 2011-05-03 23:12 -0700

csiph-web