Py2exe - win32api.pyc ImportError DLL load failed?

I've seen this problem when the package was built on Vista but executed on XP. The problem turned out to be that py2exe mistakenly added powrprof. Dll and mswsock.

Dll to the package. Windows XP contains its own copies of these files though, and can't load the Vista ones which got installed with your app.

I've seen this problem when the package was built on Vista but executed on XP. The problem turned out to be that py2exe mistakenly added powrprof. Dll and mswsock.

Dll to the package. Windows XP contains its own copies of these files though, and can't load the Vista ones which got installed with your app. Removing them from the package did the trick, you can do this easy by adding this to the options dict in setup.Py 'dll_excludes': "mswsock.

Dll", "powrprof. Dll" .

Thank you very much! That did the trick, all working perfectly now – user240788 Dec 30 '09 at 15:42 We've seen the same thing, and powrprof. Dll showed up in the dependency list using the Dependency Walker tool.

After adding it to 'dll_excludes', it works fine. – Ivo Mar 16 '10 at 13:56.

Wim, I found the bit about "adding this to the options dict in setup. Py" a bit confusing. If like me you did not have an options arg in your existing call to setup this might make things clearer: setup(name='myprog', ... options={"py2exe":{"dll_excludes": "mswsock.

Dll", "powrprof. Dll" }}, ... ).

Try adding win32api to your packages, in the options dictionary. Here's an example: excludes = "pywin", "pywin. Debugger" # there will be more in real life... options = dict(optimize=2, dist_dir="build", excludes=excludes, packages="win32api") setup( name="MyCoolApp", options=dict(py2exe=options), # etc ...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions