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.
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.