[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pythonmac-sig
Subject:    [Pythonmac-SIG] problem with QT3 and py2app
From:       "Patrick Kenny" <ptmkenny () gmail ! com>
Date:       2008-03-17 0:38:25
Message-ID: 270df8470803161738v2eb39fdcm378ad4ef48bb3cbe () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

Greetings,<br><br>I am trying to build the application Mnemosyne (<a \
href="http://www.mnemosyne-proj.org" target="_blank" onclick="return \
top.js.OpenExtLink(window,event,this)">www.mnemosyne-proj.org</a>) using py2app on \
10.5.2.&nbsp; With the command python setup.py py2app, the application compiles, but \
when I try to run it I receive the following error:<br>

<br>08/03/16 23:49:08 mnemosyne[1574] mnemosyne Error<br>
An unexpected error has occurred during execution of the main script<br>ImportError: \
Failure linking new module: /Users/patrick/Desktop/mnemosyn<div \
id="mb_0">e-1.0.1/dist/mnemosyne.app/Contents/Resources/lib/python2.4/lib-dynload/qt.so: \
Library not loaded: libqt.3.dylib<br>

&nbsp; Referenced from: \
/Users/patrick/Desktop/mnemosyne-1.0.1/dist/mnemosyne.app/Contents/Resources/lib/python2.4/lib-dynload/qt.so<br>&nbsp; \
Reason: image not found<br>&nbsp;<br>I tried to include the QT library myself, using \
the -f /Developer/qt/lib/libqt.3.dylib flag, and I got this error:<br>

copying build/bdist.macosx-10.3-fat/python2.4-standalone/app/site-packages.zip -&gt; \
/Users/patrick/Desktop/mnemosyne-1.0.1/dist/mnemosyne.app/Contents/Resources/lib/python2.4<br>copying \
/Library/Frameworks/Python.framework/Versions/2.4/Python -&gt; \
/Users/patrick/Desktop/mnemosyne-1.0.1/dist/mnemosyne.app/Contents/Frameworks/Python.framework/Versions/2.4<br>


copying /Library/Frameworks/Python.framework/Versions/2.4/Resources/Info.plist -&gt; \
/Users/patrick/Desktop/mnemosyne-1.0.1/dist/mnemosyne.app/Contents/Frameworks/Python.framework/Versions/2.4/Resources<br>copying \
/Library/Frameworks/Python.framework/Versions/2.4/Resources/version.plist -&gt; \
/Users/patrick/Desktop/mnemosyne-1.0.1/dist/mnemosyne.app/Contents/Frameworks/Python.framework/Versions/2.4/Resources<br>


copying /Developer/qt/lib/libqt.3.dylib -&gt; \
/Users/patrick/Desktop/mnemosyne-1.0.1/dist/mnemosyne.app/Contents/Frameworks<br>Traceback \
(most recent call last):<br>&nbsp; File \
&quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app-0.3.6-py2.4.egg/py2app/build_app.py&quot;, \
line 548, in _run<br>

&nbsp;&nbsp;&nbsp; self.run_normal()<br>&nbsp; File \
&quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app-0.3.6-py2.4.egg/py2app/build_app.py&quot;, \
line 619, in run_normal<br>&nbsp;&nbsp;&nbsp; self.create_binaries(py_files, pkgdirs, \
extensions, loader_files)<br>

&nbsp; File &quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app-0.3.6-py2.4.egg/py2app/build_app.py&quot;, \
line 731, in create_binaries<br>&nbsp;&nbsp;&nbsp; mm.mm.run_file(fmwk)<br>&nbsp; \
File &quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachOGraph.py&quot;, \
line 66, in run_file<br>

&nbsp; File &quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachOStandalone.py&quot;, \
line 23, in createNode<br>&nbsp; File \
&quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/altgraph-0.6.7-py2.4.egg/altgraph/ObjectGraph.py&quot;, \
line 148, in createNode<br>

&nbsp; File &quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py&quot;, \
line 61, in __init__<br>&nbsp; File \
&quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py&quot;, \
line 76, in load<br>

&nbsp; File &quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py&quot;, \
line 106, in load_header<br>&nbsp; File \
&quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py&quot;, \
line 146, in __init__<br>

&nbsp; File &quot;/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py&quot;, \
line 178, in load<br>ValueError: Unknown load command: 30<br>&gt; \
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/macholib-1.1-py2.4.egg/macholib/MachO.py(178)load()<br>


</div><br>How can I include the qt3 library so that the app can read \
it?<br><br>Thanks in advance.<br><br><br>Regards,<br>--Patrick<br>



_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic