py2exe problem

Joined
Dec 6, 2010
Messages
2
Reaction score
0
Hello,

I have a problem with py2exe. I get the error listed below when i execute the compile script. I've reinstalled python, py2exe and MS VC redist (the one listed in the py2exe tutorial), to no avail.

I'm using python 2.6.5 and py2exe 0.6.9.
this is the setup script:

from distutils.core import setup
import py2exe
setup(console=['hello.py'])

and this is hello.py:
print 'Hello World'

Has anyone got an idea what's wrong?
...

*** copy dlls ***
copying C:\WINDOWS\system32\python26.dll -> Z:\pythonWorkSpace\scripts\experimen
tal\dist
setting sys.winver for 'Z:\pythonWorkSpace\scripts\experimental\dist\python26.dll' to 'py2exe'
Traceback (most recent call last):
File "setup.py", line 4, in <module>
setup(console=['hello.py'])
File "C:\Python26\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python26\lib\distutils\dist.py", line 975, in run_commands
self.run_command(cmd)
File "C:\Python26\lib\distutils\dist.py", line 995, in run_command
cmd_obj.run()
File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 243, in run
self._run()
File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 312, in _run
self.create_binaries(py_files, extensions, dlls)
File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 525, in create_binaries self.copy_dlls(dlls)
File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 471, in copy_dlls self.patch_python_dll_winver(dst)
File "C:\Python26\lib\site-packages\py2exe\build_exe.py", line 1015, in patch_python_dll_winver add_resource(ensure_unicode(dll_name), data, RT_STRING, id, False)
RuntimeError: EndUpdateResource: Het systeem kan het opgegeven apparaat of bestand niet openen.
 
Joined
Dec 6, 2010
Messages
2
Reaction score
0
problem solved

Turns out it was anti-malware software (panda cloud) :banghead: i installed that interferred with the creation of the executable.
Since i uninstalled the software everything works smooth.
 

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,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top