[PyKDE] HP-UX 10.20 runtime error at installation of PyQt

Phil Thompson phil at river-bank.demon.co.uk
Mon Apr 22 20:59:00 BST 2002


Laurent Claustre wrote:
> 
> I've upgraded my PyQt/sip installation to 3.2rc2 nevertheless the
> problem is quite similar. Any idea?
> 
> Python 2.1.1c1 (#13, Jul 23 2001, 11:03:24)
> [GCC 2.95.2 19991024 (release)] on hp-uxB
> Type "copyright", "credits" or "license" for more information.
> >>> import qt
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File
> "/segfs/bliss/depot/pythonesrf_5.0/hpux102/lib/python2.1/site-packages/qt.py",
> line 935, in ?
>     libqtc.sipRegisterClasses()
> RuntimeError: Attempt to create a Python instance for a NULL pointer
> >>>

All I can suggest is to add printf()s in sipAddClassInstances() (in
siplib.c) to work out the instance that's failing.

Before the call to sipNewCppToSelf() print the value of ci->ci_name to
determine the class, then look up the table for that class in
registerClasses() in qtcmodule.cpp to find the instance.

The odd thing is that the relevant value is always the address of a Qt
object, which implies a linker problem.

Phil




More information about the PyQt mailing list