[PyKDE] Re: SIP/PyQt v3.2.2 Released

Barron Snyder barronsnyder at mac.com
Sun May 12 19:27:01 BST 2002


I downloaded the new stuff and gave it a spin on OS X. Still a few 
problems with make install (see below). I tried the basic hello program 
despite the make install errors. It didn't work but at least there was 
no "Bus error"!

The problem seems to be "ImportError: No module named libqtc"

When this does compile and install correctly, what files should I see in 
python2.2/site-packages?
 From this build, I currently have:
libqtcmodule.a
libqtcmodule.la
libsip.9.0.1.so
libsip.9.so
libsip.la
libsip.so
qt.py
qt.pyc

Here's what I get when trying to run the basic hello program with the 
verbose flag on:

[localhost:~/PythonProjects] barron% python -v hello.py
# /sw/lib/python2.2/site.pyc matches /sw/lib/python2.2/site.py
import site # precompiled from /sw/lib/python2.2/site.pyc
# /sw/lib/python2.2/os.pyc matches /sw/lib/python2.2/os.py
import os # precompiled from /sw/lib/python2.2/os.pyc
import posix # builtin
# /sw/lib/python2.2/posixpath.pyc matches /sw/lib/python2.2/posixpath.py
import posixpath # precompiled from /sw/lib/python2.2/posixpath.pyc
# /sw/lib/python2.2/stat.pyc matches /sw/lib/python2.2/stat.py
import stat # precompiled from /sw/lib/python2.2/stat.pyc
# /sw/lib/python2.2/UserDict.pyc matches /sw/lib/python2.2/UserDict.py
import UserDict # precompiled from /sw/lib/python2.2/UserDict.pyc
Python 2.2 (#1, Apr 17 2002, 16:11:12)
[GCC 2.95.2 19991024 (release)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
# /sw/lib/python2.2/site-packages/qt.pyc matches 
/sw/lib/python2.2/site-packages/qt.py
import qt # precompiled from /sw/lib/python2.2/site-packages/qt.pyc
import libsip # dynamically loaded from /sw/lib/python2.2/site-
packages/libsip.so
Traceback (most recent call last):
   File "hello.py", line 3, in ?
     from qt import *
   File "/sw/lib/python2.2/site-packages/qt.py", line 49, in ?
     import libqtc
ImportError: No module named libqtc
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] signal
# cleanup[1] site
# cleanup[1] posix
# cleanup[1] exceptions
# cleanup[1] qt
# cleanup[1] libsip
# cleanup[2] stat
# cleanup[2] posixpath
# cleanup[2] UserDict
# cleanup[2] os
# cleanup[2] os.path
# cleanup sys
# cleanup __builtin__
# cleanup ints: 3 unfreed ints in 1 out of 3 blocks
# cleanup floats
[localhost:~/PythonProjects] barron%


And here's the PyQt make install output:

[localhost:/Applications/PyQt-3.2.2] barron% sudo make install
Password:
Making install in features
./sip_helper >../sipQtFeatures.h
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in qt
c++ -E -I/sw/include/python2.2  -I/Applications/QtMacEval/include 
-DQT_THREAD_SUPPORT -I.. sipqtProxyqt.h >moc_sipqtProxyqt.h
sipqtProxyqt.h:39: undefined type, found `class'
sipqtProxyqt.h:39: illegal external declaration, missing `;' after 
`sipProxyqt'
sipqtProxyqt.h:39: undefined type, found `public'
sipqtProxyqt.h:39: illegal external declaration, missing `;' after 
`sipProxy'
sipqtProxyqt.h:41: undefined type, found `Q_OBJECT'
sipqtProxyqt.h:43: illegal external declaration, missing `;' after 
`public'
sipqtProxyqt.h:46: undefined type, found `public'
sipqtProxyqt.h:46: illegal external declaration, missing `;' after 
`slots'
sipqtProxyqt.h:48: undefined type, found `QAction'
sipqtProxyqt.h:50: syntax error, found `&'
sipqtProxyqt.h:50: illegal function definition, found `)'
sipqtProxyqt.h:51: syntax error, found `&'
sipqtProxyqt.h:51: illegal function definition, found `)'
sipqtProxyqt.h:52: syntax error, found `&'
sipqtProxyqt.h:52: illegal function definition, found `)'
sipqtProxyqt.h:54: syntax error, found `&'
sipqtProxyqt.h:54: illegal function definition, found `)'
sipqtProxyqt.h:58: undefined type, found `QIconViewItem'
sipqtProxyqt.h:58: syntax error, found `&'
sipqtProxyqt.h:58: illegal function definition, found `)'
sipqtProxyqt.h:61: undefined type, found `QDropEvent'
sipqtProxyqt.h:61: syntax error, found `&'
sipqtProxyqt.h:61: illegal function definition, found `)'
sipqtProxyqt.h:64: undefined type, found `QIconViewItem'
sipqtProxyqt.h:64: syntax error, found `&'
sipqtProxyqt.h:64: illegal function definition, found `)'
sipqtProxyqt.h:67: undefined type, found `QIconViewItem'
sipqtProxyqt.h:67: syntax error, found `&'
sipqtProxyqt.h:67: illegal function definition, found `)'
sipqtProxyqt.h:70: undefined type, found `QIconViewItem'
sipqtProxyqt.h:72: undefined type, found `QListBoxItem'
sipqtProxyqt.h:72: syntax error, found `&'
sipqtProxyqt.h:72: illegal function definition, found `)'
sipqtProxyqt.h:73: undefined type, found `QListBoxItem'
sipqtProxyqt.h:73: syntax error, found `&'
sipqtProxyqt.h:73: illegal function definition, found `)'
sipqtProxyqt.h:74: undefined type, found `QListBoxItem'
sipqtProxyqt.h:75: undefined type, found `QListViewItem'
sipqtProxyqt.h:76: undefined type, found `QListViewItem'
sipqtProxyqt.h:76: syntax error, found `&'
sipqtProxyqt.h:76: illegal function definition, found `)'
sipqtProxyqt.h:77: undefined type, found `QDropEvent'
sipqtProxyqt.h:78: undefined type, found `QListViewItem'
sipqtProxyqt.h:78: syntax error, found `&'
sipqtProxyqt.h:78: illegal function definition, found `)'
sipqtProxyqt.h:79: undefined type, found `QListViewItem'
sipqtProxyqt.h:79: syntax error, found `&'
sipqtProxyqt.h:79: illegal function definition, found `)'
sipqtProxyqt.h:80: undefined type, found `QListViewItem'
sipqtProxyqt.h:81: undefined type, found `QDockWindow'
sipqtProxyqt.h:82: syntax error, found `&'
sipqtProxyqt.h:82: illegal function definition, found `)'
sipqtProxyqt.h:83: syntax error, found `&'
sipqtProxyqt.h:83: illegal function definition, found `)'
sipqtProxyqt.h:84: undefined type, found `QTextCursor'
sipqtProxyqt.h:85: syntax error, found `::'
sipqtProxyqt.h:85: illegal function definition, found `)'
sipqtProxyqt.h:86: syntax error, found `&'
sipqtProxyqt.h:86: illegal function definition, found `)'
sipqtProxyqt.h:87: syntax error, found `&'
sipqtProxyqt.h:87: illegal function definition, found `)'
sipqtProxyqt.h:89: syntax error, found `::'
sipqtProxyqt.h:89: illegal function definition, found `)'
sipqtProxyqt.h:90: syntax error, found `::'
sipqtProxyqt.h:90: illegal function definition, found `)'
sipqtProxyqt.h:93: syntax error, found `&'
sipqtProxyqt.h:93: illegal function definition, found `)'
sipqtProxyqt.h:96: syntax error, found `&'
sipqtProxyqt.h:96: illegal function definition, found `)'
sipqtProxyqt.h:99: undefined type, found `QNetworkOperation'
sipqtProxyqt.h:102: syntax error, found `&'
sipqtProxyqt.h:102: illegal function definition, found `)'
sipqtProxyqt.h:105: syntax error, found `&'
sipqtProxyqt.h:105: illegal function definition, found `)'
sipqtProxyqt.h:108: undefined type, found `QNetworkOperation'
sipqtProxyqt.h:111: syntax error, found `&'
sipqtProxyqt.h:111: illegal function definition, found `)'
sipqtProxyqt.h:114: syntax error, found `&'
sipqtProxyqt.h:114: illegal function definition, found `)'
sipqtProxyqt.h:115: undefined type, found `QWidget'
sipqtProxyqt.h:116: undefined type, found `QObject'
cpp-precomp: warning: errors during smart preprocessing, retrying in 
basic mode
/Applications/QtMacEval/bin/moc -o sipqtProxyqt.moc moc_sipqtProxyqt.h
/bin/sh ../mkinstalldirs /sw/lib/python2.2/site-packages
  /bin/sh ../libtool --mode=install /usr/bin/install -c  libqtcmodule.la 
/sw/lib/python2.2/site-packages/libqtcmodule.la
/usr/bin/install -c .libs/libqtcmodule.lai 
/sw/lib/python2.2/site-packages/libqtcmodule.la
/usr/bin/install -c .libs/libqtcmodule.a /sw/lib/python2.2/site-
packages/libqtcmodule.a
ranlib /sw/lib/python2.2/site-packages/libqtcmodule.a
chmod 644 /sw/lib/python2.2/site-packages/libqtcmodule.a
----------------------------------------------------------------------
Libraries have been installed in:
    /sw/lib/python2.2/site-packages

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
    - add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
      during execution

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ../mkinstalldirs /sw/lib/python2.2/site-packages
  /usr/bin/install -c -m 644 qt.py /sw/lib/python2.2/site-packages/qt.py
make  install-data-hook
(cd /tmp; PYTHONPATH=/sw/lib/python2.2/site-
packages:/sw/lib/python2.2/site-packages /sw/bin/python -c "import qt")
Traceback (most recent call last):
   File "<string>", line 1, in ?
   File "/sw/lib/python2.2/site-packages/qt.py", line 49, in ?
     import libqtc
ImportError: No module named libqtc
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


On Sunday, May 12, 2002, at 05:08  AM, Phil Thompson wrote:

> v3.2.2 of SIP and PyQt are available for download at the usual place at
> http://www.riverbankcomputing.co.uk/.
>
> This is a bug fix release only and applies to all platforms.
>
> Phil




More information about the PyQt mailing list