[PyKDE] SIP/PyQt v3.2rc4 on OS X
Ludger Humbert
humbert at hagen.de
Mon Apr 29 07:51:00 BST 2002
Barron Snyder wrote:
> Well, I went ahead and ran "make install" on PyQt with the following
> results:
>
...
> ImportError: Inappropriate file type for dynamic loading
----------->
> make[3]: *** [install-data-hook] Error 1
> make[2]: *** [install-data-am] Error 2
> make[1]: *** [install-am] Error 2
> make: *** [install-recursive] Error 1
>
>
> I tried to run one of the examples but no go...
>
> [localhost:/Applications/PyQt-3.2rc4] barron% cd examples
> [localhost:/Applications/PyQt-3.2rc4/examples] barron% python
> addressbook.py
> Traceback (most recent call last):
> File "addressbook.py", line 7, in ?
> from qt import *
> File "/sw/lib/python2.2/site-packages/qt.py", line 46, in ?
> import libsip
> ImportError: Inappropriate file type for dynamic loading
----------->
The problem remains -- I you look at
...python-2.2/site-packages/
you'll find some libs
With
file ...
you can detect the type of a file
If you look at
libsip*
you'll find, that there is *no* bundle file.
So, you have to fiddle with
the generated "libtool" -- file as
Dimitri
described in
http://mats.gmd.de/pipermail/pykde/2002-April/002594.html
in B)
The main element for producing bundle libs:
for sip and for PyQt on the Mac OS X:
Look for
\\"x ... \\
and change it to
\"x ... \
After this, you have to
make ; make install
I the meantime, I rejected rc4 and did it all with rc2 on the Mac
and .. it works -- not perfect, e.g.
QToolButton() does not work.
Ludger
More information about the PyQt
mailing list