Greetings, I am trying to build the application Mnemosyne (www.mnemosyne-proj.org) using py2app on 10.5.2. With the command python setup.py py2app, the application compiles, but when I try to run it I receive the following error:
08/03/16 23:49:08 mnemosyne[1574] mnemosyne Error An unexpected error has occurred during execution of the main script ImportError: Failure linking new module: /Users/patrick/Desktop/mnemosyn e-1.0.1/dist/mnemosyne.app/Contents/Resources/lib/python2.4/lib-dynload/qt.so: Library not loaded: libqt.3.dylib Referenced from: /Users/patrick/Desktop/mnemosyne-1.0.1 /dist/mnemosyne.app/Contents/Resources/lib/python2.4/lib-dynload/qt.so Reason: image not found I tried to include the QT library myself, using the -f /Developer/qt/lib/libqt.3.dylib flag, and I got this error: copying build/bdist.macosx-10.3-fat/python2.4-standalone/app/site- packages.zip -> /Users/patrick/Desktop/mnemosyne-1.0.1 /dist/mnemosyne.app/Contents/Resources/lib/python2.4 copying /Library/Frameworks/Python.framework/Versions/2.4/Python -> /Users/patrick/Desktop/mnemosyne-1.0.1 /dist/mnemosyne.app/Contents/Frameworks/Python.framework/Versions/2.4 copying /Library/Frameworks/Python.framework/Versions/2.4/Resources/Info.plist -> /Users/patrick/Desktop/mnemosyne-1.0.1 /dist/mnemosyne.app/Contents/Frameworks/Python.framework/Versions/2.4/Resources copying /Library/Frameworks/Python.framework/Versions/2.4/Resources/version.plist -> /Users/patrick/Desktop/mnemosyne-1.0.1 /dist/mnemosyne.app/Contents/Frameworks/Python.framework/Versions/2.4/Resources copying /Developer/qt/lib/libqt.3.dylib -> /Users/patrick/Desktop/mnemosyne- 1.0.1/dist/mnemosyne.app/Contents/Frameworks Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app- 0.3.6-py2.4.egg/py2app/build_app.py", line 548, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app- 0.3.6-py2.4.egg/py2app/build_app.py", line 619, in run_normal self.create_binaries(py_files, pkgdirs, extensions, loader_files) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app- 0.3.6-py2.4.egg/py2app/build_app.py", line 731, in create_binaries mm.mm.run_file(fmwk) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib- 1.1-py2.4.egg/macholib/MachOGraph.py", line 66, in run_file File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib- 1.1-py2.4.egg/macholib/MachOStandalone.py", line 23, in createNode File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/altgraph- 0.6.7-py2.4.egg/altgraph/ObjectGraph.py", line 148, in createNode File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib- 1.1-py2.4.egg/macholib/MachO.py", line 61, in __init__ File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib- 1.1-py2.4.egg/macholib/MachO.py", line 76, in load File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib- 1.1-py2.4.egg/macholib/MachO.py", line 106, in load_header File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib- 1.1-py2.4.egg/macholib/MachO.py", line 146, in __init__ File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib- 1.1-py2.4.egg/macholib/MachO.py", line 178, in load ValueError: Unknown load command: 30 > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib- 1.1-py2.4.egg/macholib/MachO.py(178)load() How can I include the qt3 library so that the app can read it? Thanks in advance. Regards, --Patrick
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig