hi.
I am using macport and pyinstaller svn on Mac OS X 10.6, with python
2.7.1
I run
$ /opt/local/bin/python Configure.py
$ /opt/local/bin/python Makespec.py ../mentalcalculation/
mentalcalculation.py
# I add the bundle stuff at the end of the .spec
# something like that
import sys
if sys.platform.startswith("darwin"):
app = BUNDLE(exe,
name=os.path.join('dist', 'MentalCalculation.app'),
version='0.3.3')"
# then
$ /opt/local/bin/python Build.py mentalcalculation/
mentalcalculation.spec
and I got the following output/error
[~/Downloads/pyinstaller]$ /opt/local/bin/python Build.py
mentalcalculation/mentalcalculation.spec
checking Analysis
building Analysis because outAnalysis0.toc non existent
running Analysis outAnalysis0.toc
Analyzing: /Users/solsticedhiver/Downloads/pyinstaller/support/
_mountzlib.py
Analyzing: /Users/solsticedhiver/Downloads/pyinstaller/support/
useUnicode.py
Analyzing: ../mentalcalculation/mentalcalculation.py
Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
QGLContext::chooseMacVisual: Unable to choose a pixel format
QGLContext::makeCurrent: Cannot make invalid context current
QGLContext::makeCurrent: Cannot make invalid context current
sh: line 1: 10686 Segmentation fault "/opt/local/Library/
Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/
MacOS/Python" -c "from PyQt4.QtGui import QApplication;
app=QApplication([]); app.setApplicationName('pyinstaller'); from
PyQt4.phonon import Phonon;
v=Phonon.VideoPlayer(Phonon.VideoCategory); print
map(unicode,app.libraryPaths())" > "/var/folders/Dg/
Dg5WDkA7HtKG8Cedvx9r3++++TI/-Tmp-/tmpAo13kb"
Traceback (most recent call last):
File "Build.py", line 1541, in <module>
main(args[0], configfilename=opts.configfile)
File "Build.py", line 1519, in main
build(specfile)
File "Build.py", line 1424, in build
execfile(spec)
File "mentalcalculation/mentalcalculation.spec", line 3, in <module>
pathex=['/Users/solsticedhiver/Downloads/pyinstaller'])
File "Build.py", line 351, in __init__
self.__postinit__()
File "Build.py", line 301, in __postinit__
self.assemble()
File "Build.py", line 420, in assemble
analyzer.analyze_script(script)
File "/Users/solsticedhiver/Downloads/pyinstaller/mf.py", line 578,
in analyze_script
return self.analyze_r('__main__')
File "/Users/solsticedhiver/Downloads/pyinstaller/mf.py", line 470,
in analyze_r
newnms = self.analyze_one(name, nm, imptyp, level)
File "/Users/solsticedhiver/Downloads/pyinstaller/mf.py", line 531,
in analyze_one
mod = self.doimport(nm, ctx, fqname)
File "/Users/solsticedhiver/Downloads/pyinstaller/mf.py", line 619,
in doimport
hooks = __import__('hooks', globals(), locals(), [hookmodnm])
File "/Users/solsticedhiver/Downloads/pyinstaller/hooks/hook-
PyQt4.phonon.py", line 4, in <module>
pdir = qt4_phonon_plugins_dir()
File "/Users/solsticedhiver/Downloads/pyinstaller/hooks/
hookutils.py", line 53, in qt4_phonon_plugins_dir
qt4_plugin_dirs = eval(exec_statement("from PyQt4.QtGui import
QApplication; app=QApplication([]);
app.setApplicationName('pyinstaller'); from PyQt4.phonon import
Phonon; v=Phonon.VideoPlayer(Phonon.VideoCategory); print
map(unicode,app.libraryPaths())"))
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing
I don't quite understand that error. I tried to fix the hooks/
hookutil.py by creating a script variable holding the content of the
script in line 53. but that does not work either.
What's the problem here ?
Is it that it does not find phonon ? it seems ok when I run my python/
pyqt script manuallyn though
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.