Grrr... With so many programs that supposedly make a single file executable out of a Python program, you'd think at least one of them would work.
1) GUI2exe - It just crashes just by trying to create a new project. It doesn't even get as far as *trying* to make an executable.
2) PyInstaller - It makes an executable which simply segfaults.
3) cx_Freeze - It dies trying to make the executable (see appendix A).
4) bbFreeze - Also dies trying to make the executable (see appendix B).
Maybe these programs just don't support Linux well. But if that's the case, I can't use them. I develop in Linux and I'm not going to make my program Windows-only. The whole *point* of wxPython is to be cross platform.
Daniel.
APPENDIX A: Trying to run cx_Freeze
···
-----------------------------------
% ./cxfreeze wx_Wordlibro.py --target-dir dist
Traceback (most recent call last):
File "./cxfreeze", line 5, in <module>
main()
File "/home/daniel/Projects/Monda/Wordlibro/Python/cx_Freeze-4.1.1/cx_Freeze/main.py", line 187, in main
silent = options.silent)
File "/home/daniel/Projects/Monda/Wordlibro/Python/cx_Freeze-4.1.1/cx_Freeze/freezer.py", line 88, in __init__
self._VerifyConfiguration()
File "/home/daniel/Projects/Monda/Wordlibro/Python/cx_Freeze-4.1.1/cx_Freeze/freezer.py", line 336, in _VerifyConfiguration
self._GetInitScriptFileName()
File "/home/daniel/Projects/Monda/Wordlibro/Python/cx_Freeze-4.1.1/cx_Freeze/freezer.py", line 251, in _GetInitScriptFileName
raise ConfigError("no initscript named %s", name)
cx_Freeze.freezer.ConfigError: no initscript named Console
APPENDIX B: Trying to run bbFreeze
----------------------------------
% ./bb-freeze wx_Wordlibro.py
Traceback (most recent call last):
File "./bb-freeze", line 4, in <module>
from bbfreeze import main
File "/home/daniel/Projects/Monda/Wordlibro/Python/bbfreeze/bbfreeze/__init__.py", line 8, in <module>
from bbfreeze.freezer import Freezer
File "/home/daniel/Projects/Monda/Wordlibro/Python/bbfreeze/bbfreeze/freezer.py", line 11, in <module>
from modulegraph import modulegraph
File "/home/daniel/Projects/Monda/Wordlibro/Python/bbfreeze/bbfreeze/modulegraph/modulegraph.py", line 9, in <module>
require("altgraph")
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 626, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 524, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: altgraph