Am Donnerstag, 2. Juli 2009 schrieb Hans-Peter Jansen:
> Dear Giovanni,
>
> I'm stuck again with the next issue: starting the PyQt4 app on a pristine
> mac results in:
>
>
> Mac OS X Version 10.4.11 (Build 8S165)
> 2009-07-02 10:06:59 +0200
> 2009-07-02 10:07:03.260 SystemUIServer[120] lang is:de
> Workaround Bonjour: Unknown error: 0
> Traceback (most recent call last):
>   File "<string>", line 34, in <module>
>   File "/Users/hp/Desktop/PyQt-Devel/creport/tools/pyinstaller/iu.py",
> line 480, in importHook File
> "/Users/hp/Desktop/PyQt-Devel/creport/tools/pyinstaller/iu.py", line 498,
> in doimport File
> "/Users/hp/Desktop/PyQt-Devel/creport/tools/pyinstaller/iu.py", line 300,
> in getmod File
> "/Users/hp/Desktop/PyQt-Devel/creport/tools/pyinstaller/archive.py", line
> 468, in getmod File
> "/Users/hp/Desktop/PyQt-Devel/creport/tools/pyinstaller/iu.py", line 109,
> in getmod ImportError:
> dlopen(/Applications/CReport.app/Contents/MacOS/PyQt4.QtCore.so, 2):
> Library not loaded: QtCore.framework/Versions/4/QtCore Referenced from:
> /Applications/CReport.app/Contents/MacOS/PyQt4.QtCore.so Reason: image
> not found
>
>
> Apart from the devel path leaking into the app, it obviously cannot
> locate the QtCore library. BTW, there where issues with BUNDLE(), I
> examine later. For now, the manually created bundle with
> .app/Contents/MacOS containing everything from the one-dir run should be
> sufficient. Here the MacOS folder content:
>
> $ ls -l /Applications/CReport.app/Contents/MacOS/
> total 100352
> -rwxrwxr-x   1 root  admin  1331492 Jul  2 00:21 CReport
> -rwxrwxr-x   1 root  admin    85876 Apr 16 09:23 MacOS.so
> -rwxrwxr-x   1 root  admin   118528 Apr 16 09:23 Nav.so
> -rwxrwxr-x   1 root  admin  2078692 Jul  1 23:47 PyQt4.QtCore.so
> -rwxrwxr-x   1 root  admin  9433500 Jul  1 23:47 PyQt4.QtGui.so
> -rwxrwxr-x   1 root  admin  9367288 Apr 16 09:28 Python
> -rwxrwxr-x   1 root  admin   131676 Apr 16 09:24 _AE.so
> -rwxrwxr-x   1 root  admin   426328 Apr 16 09:24 _Ctl.so
> -rwxrwxr-x   1 root  admin   148036 Apr 16 09:24 _Dlg.so
> -rwxrwxr-x   1 root  admin    78336 Apr 16 09:25 _Evt.so
> -rwxrwxr-x   1 root  admin   260632 Apr 16 09:25 _File.so
> -rwxrwxr-x   1 root  admin   246392 Apr 16 09:26 _Menu.so
> -rwxrwxr-x   1 root  admin   458268 Apr 16 09:26 _Qd.so
> -rwxrwxr-x   1 root  admin   147044 Apr 16 09:26 _Res.so
> -rwxrwxr-x   1 root  admin   258092 Apr 16 09:27 _Win.so
> -rwxrwxr-x   1 root  admin    54644 Apr 16 09:18 _bisect.so
> -rwxrwxr-x   1 root  admin   150336 Apr 16 09:18 _collections.so
> -rwxrwxr-x   1 root  admin   653552 Apr 16 09:28 _ctypes.so
> -rwxrwxr-x   1 root  admin    59956 Apr 16 09:18 _functools.so
> -rwxrwxr-x   1 root  admin    77520 Apr 16 09:20 _hashlib.so
> -rwxrwxr-x   1 root  admin    81136 Apr 16 09:18 _heapq.so
> -rwxrwxr-x   1 root  admin    75780 Apr 16 09:19 _locale.so
> -rwxrwxr-x   1 root  admin   142620 Apr 16 09:22 _multibytecodec.so
> -rwxrwxr-x   1 root  admin   159072 Apr 16 09:23 _multiprocessing.so
> -rwxrwxr-x   1 root  admin    70516 Apr 16 09:18 _random.so
> -rwxrwxr-x   1 root  admin    96432 Apr 16 09:20 _sha256.so
> -rwxrwxr-x   1 root  admin   179272 Apr 16 09:20 _sha512.so
> -rwxrwxr-x   1 root  admin   234228 Apr 16 09:20 _socket.so
> -rwxrwxr-x   1 root  admin   189384 Apr 16 09:20 _ssl.so
> -rwxrwxr-x   1 root  admin   166232 Apr 16 09:17 _struct.so
> -rwxrwxr-x   1 root  admin    48208 Apr 16 09:17 _weakref.so
> -rwxrwxr-x   1 root  admin   178168 Apr 16 09:17 array.so
> -rwxrwxr-x   1 root  admin   116096 Apr 16 09:21 binascii.so
> -rwxrwxr-x   1 root  admin   344800 Apr 16 09:21 bz2.so
> -rwxrwxr-x   1 root  admin   359340 Apr 16 09:19 cPickle.so
> -rwxrwxr-x   1 root  admin    91936 Apr 16 09:19 cStringIO.so
> -rwxrwxr-x   1 root  admin   395388 Apr 16 09:18 datetime.so
> -rwxrwxr-x   1 root  admin    71444 Apr 16 09:19 fcntl.so
> drwxrwxr-x   4 root  admin      136 Jul  2 03:07 i18n
> -rwxrwxr-x   1 root  admin    73416 Apr 16 09:24 icglue.so
> -rwxrwxr-x   1 root  admin   211632 Apr 16 09:18 itertools.so
> -rwxrwxr-x   1 root  admin  7895472 Apr  1 07:45 libSystem.B.dylib
> -rwxrwxr-x   1 root  admin  4606384 Feb 11 04:18 libcrypto.0.9.7.dylib
> -rwxrwxr-x   1 root  admin   264016 Oct  6  2007 libgcc_s.1.dylib
> -rwxrwxr-x   1 root  admin   142400 Jan 26 09:49 libmathCommon.A.dylib
> -rwxrwxr-x   1 root  admin   373984 Jan 26 10:15 libmx.A.dylib
> -rwxrwxr-x   1 root  admin   714756 Apr 16 09:01 libncurses.5.dylib
> -rwxrwxr-x   1 root  admin   915632 Feb 11 04:18 libssl.0.9.7.dylib
> -rwxrwxr-x   1 root  admin  3035296 Sep 24  2007 libstdc++.6.dylib
> -rwxrwxr-x   1 root  admin   346144 Sep 24  2007 libz.1.dylib
> -rwxrwxr-x   1 root  admin   103616 Apr 16 09:18 math.so
> -rwxrwxr-x   1 root  admin   104328 Apr 16 09:19 mmap.so
> -rwxrwxr-x   1 root  admin   117904 Apr 16 09:18 operator.so
> -rwxrwxr-x   1 root  admin  1220768 Apr 16 09:22 pyexpat.so
> drwxrwxr-x   6 root  admin      204 Jul  2 00:20 qt4_plugins
> -rwxrwxr-x   1 root  admin   577320 Apr 16 09:19 readline.so
> -rwxrwxr-x   1 root  admin   116492 Apr 16 09:19 select.so
> -rwxrwxr-x   1 root  admin    80364 Jul  1 23:15 sip.so
> -rwxrwxr-x   1 root  admin   130364 Apr 16 09:18 strop.so
> -rwxrwxr-x   1 root  admin    69568 Apr 16 09:21 termios.so
> -rwxrwxr-x   1 root  admin    88328 Apr 16 09:18 time.so
> -rwxrwxr-x   1 root  admin  1253792 Apr 16 09:19 unicodedata.so
> -rwxrwxr-x   1 root  admin   250064 Apr 16 09:21 zlib.so
>
>
> Looks like the PyQt modules try to access QtCore.framework/Versions/4
> which seem to be missing:
>
> $ otool -L CReport.app/Contents/MacOS/PyQt4.Qt*
> CReport.app/Contents/MacOS/PyQt4.QtCore.so:
>         QtCore.framework/Versions/4/QtCore (compatibility version 4.5.0,
> current version 4.5.2) /usr/lib/libz.1.dylib (compatibility version
> 1.0.0, current version 1.2.3) /usr/lib/libSystem.B.dylib (compatibility
> version 1.0.0, current version 111.1.4)
> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Appli
>cationServices (compatibility version 1.0.0, current version 34.0.0)
>         /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
> version 7.4.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,
> current version 1.0.0) CReport.app/Contents/MacOS/PyQt4.QtGui.so:
>         QtGui.framework/Versions/4/QtGui (compatibility version 4.5.0,
> current version 4.5.2)
> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
> (compatibility version 2.0.0, current version 136.0.0)
> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
> (compatibility version 45.0.0, current version 949.46.0)
> QtCore.framework/Versions/4/QtCore (compatibility version 4.5.0, current
> version 4.5.2) /usr/lib/libz.1.dylib (compatibility version 1.0.0,
> current version 1.2.3) /usr/lib/libSystem.B.dylib (compatibility version
> 1.0.0, current version 111.1.4) /usr/lib/libstdc++.6.dylib (compatibility
> version 7.0.0, current version 7.4.0) /usr/lib/libgcc_s.1.dylib
> (compatibility version 1.0.0, current version 1.0.0)
>
>
> Shouldn't this work out of the box? I would very much like to keep the
> original Qt build, I'm using here. Needless to say, running it with
> Qt installed, works fine. (There seem to be similar issues with the
> qt4_plugins location which gets picked up from the systems Qt
> installation, rather then those incuded in the package.
>
>
> Current packages installed on the developer machine:
> xcode313_2736_developerdvd.dmg
> python-2.6.2-macosx2009-04-16.dmg
> qt-sdk-mac-opensource-2009.03.dmg
> sip-4.8.1.tar.gz
> PyQt-mac-gpl-4.5.1.tar.gz (with minor Configure.py patch for Qt 4.5.2
> compatibility) http://svn.pyinstaller.org/trunk:685
>
>
> Any ideas on what's going wrong here?

Okay, found it: http://doc.trolltech.com/4.5/deployment-mac.html

Seems to me, that there's quite a bit of way to go before this all is usable 
painlessly.

Pete

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to