#33 RunTimeError with Setup (simple)

closed
nobody
None
5
2004-01-19
2004-01-17
Werner F. Bruhin
No

I am getting the following traceback when I run py2exe
from within Boa 0.2.8 with the setup.py (simple) - the
setup.py (extended) works fine.

Traceback (most recent call last):
File "setup.py", line 34, in ?
console = ["hello.py"],
File "C:\Python23\lib\distutils\core.py", line 149,
in setup
dist.run_commands()
File "C:\Python23\lib\distutils\dist.py", line 907,
in run_commands
self.run_command(cmd)
File "C:\Python23\lib\distutils\dist.py", line 927,
in run_command
cmd_obj.run()
File
"C:\Python23\Lib\site-packages\py2exe\build_exe.py",
line 197, in run
self.create_binaries(py_files, extensions, dlls)
File
"C:\Python23\Lib\site-packages\py2exe\build_exe.py",
line 391, in create_binaries
arcname, target.script)
File
"C:\Python23\Lib\site-packages\py2exe\build_exe.py",
line 590, in build_executable
self.add_versioninfo(target, exe_path)
File
"C:\Python23\Lib\site-packages\py2exe\build_exe.py",
line 609, in add_versioninfo
from py2exe.resources.VersionInfo import Version,
RT_VERSION
File
"C:\Python23\Lib\site-packages\py2exe\py2exe.py", line
3, in ?
raise RuntimeError, "something's wrong"
RuntimeError: something's wrong

Discussion

  • Logged In: YES
    user_id=649757

    The offending line in setup.py is:
    version = "0.5.0",

    Actually the following import in build_exe is the cause, but
    I can't figure out why.

    from py2exe.resources.VersionInfo import Version, RT_VERSION

    See you
    Werner

     
  • Thomas Heller
    Thomas Heller
    2004-01-19

    Logged In: YES
    user_id=11105

    IMO the problem is that you didn't remove the previous
    installation of py2exe: there mist *not* be a 'py2exe.py'
    file (neither py2exe.pyc or py2exe.pyo) in the
    Python23\lib\site-packages\py2exe directory.

    Does this fix the problem

     
    • status: open --> closed
     
  • Logged In: YES
    user_id=649757

    Thomas,

    Yes, deleting everyting in py2exe directory and installing
    0.5 again fixed the problem.

    You might want to add some text to the install to state that
    one should delete old installation first.

    Thanks again for your quick reply.

    See you
    Werner