Hi,
I'm duly impressed by PyInstaller, what an amount of work must have gone
into this project, its impressive how much the program is able to resolve
by default.
Its great to have a method of distributing a Python project that does not
include the source code.
Today I ran into a particular error, when trying to package a project.
It seems as if PyInstaller cannot find the Python lib would be my guess.
I've attached the .spec and the script I'm trying to package, basically, a
hello world of enthought traits.
I'm trying to package a pretty large CAD application and I'm trying to go
about this by segmenting the issue into manageable bits.
Interestingly, I've been able to produce a 0.5+GB executable from my
project ( a non-working alas ), but seem to have ran into a bug with a very
small program ( "simple_traits.py" )
I've used the following commands to package:
pyi-makespec --onedir --name="SimplestTraits" --out=build --noconsole
--debug simplest_traits.py
pyi-build SimplestTraits.spec
With the following traceback you find below.
Finally, its worth mentioning that I'm on osx 10.8 and use the 2.6 python
interpreter.
Thanks so much for PyInstaller!
-jelle
23778 INFO: Removing dir
/Users/jelleferinga/Documents/workspace/PyRAPID/Code/PyRAPID/build/dist/SimplestTraits
23797 INFO: building COLLECT out00-COLLECT.toc
Traceback (most recent call last):
File "/usr/local/bin/pyi-build", line 9, in <module>
load_entry_point('PyInstaller==2.1dev-0f0f4a4', 'console_scripts',
'pyi-build')()
File
"/Library/Python/2.6/site-packages/PyInstaller-2.1dev_0f0f4a4-py2.6.egg/PyInstaller/cliutils/build.py",
line 38, in run
PyInstaller.build.main(None, args[0], opts.__dict__["buildpath"],
opts.__dict__["noconfirm"])
File
"/Library/Python/2.6/site-packages/PyInstaller-2.1dev_0f0f4a4-py2.6.egg/PyInstaller/build.py",
line 1674, in main
build(specfile, buildpath)
File
"/Library/Python/2.6/site-packages/PyInstaller-2.1dev_0f0f4a4-py2.6.egg/PyInstaller/build.py",
line 1627, in build
execfile(spec)
File "SimplestTraits.spec", line 24, in <module>
name=os.path.join('dist', 'SimplestTraits'))
File
"/Library/Python/2.6/site-packages/PyInstaller-2.1dev_0f0f4a4-py2.6.egg/PyInstaller/build.py",
line 1218, in __init__
self.__postinit__()
File
"/Library/Python/2.6/site-packages/PyInstaller-2.1dev_0f0f4a4-py2.6.egg/PyInstaller/build.py",
line 305, in __postinit__
self.assemble()
File
"/Library/Python/2.6/site-packages/PyInstaller-2.1dev_0f0f4a4-py2.6.egg/PyInstaller/build.py",
line 1248, in assemble
and config['hasUPX'], dist_nm=inm)
File
"/Library/Python/2.6/site-packages/PyInstaller-2.1dev_0f0f4a4-py2.6.egg/PyInstaller/build.py",
line 786, in checkCache
digest = cacheDigest(fnm)
File
"/Library/Python/2.6/site-packages/PyInstaller-2.1dev_0f0f4a4-py2.6.egg/PyInstaller/build.py",
line 740, in cacheDigest
data = open(fnm, "rb").read()
IOError: [Errno 2] No such file or directory: 'Python'
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.