I'm using Py2exe to create an executable as a windows service.
When I run the script I get this error:
File "C:TeamCityuildAgentwork582d895bd5b431acwinpythonWinPython-32bit-2.7.3.3python-2.7.3libsite-packagespy2exeuild_exe.py", line 860, in build_executable
add_resource(ensure_unicode(exe_path), script_bytes, u"PYTHONSCRIPT", 1, True)
RuntimeError: EndUpdateResource: Access is denied.
This is the call to py2exe:
setup(
name = NAME,
description = DESCRIPTION,
version = '1.0.133.43',
service = [{'modules':["ServiceLauncher"], 'cmdline':'pywin32'}],
zipfile=None,
options = {
"py2exe":{"packages":"encodings",
"includes":"win32com,win32service,win32serviceutil,win32event",
"excludes":"libiomp5md.dll"
},
},
)
The problem occurs only on the build machine, it runs fine on my dev pc.
I've tried to set Full Control to everyone on the work folder, but it doesn't work.
Any idea?
Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…