[Stackless] Compiling stackless with PyQt4?

Caleb J. Howard caleb at howlor.com
Mon Mar 26 09:49:15 CEST 2007


Does anyone have a simple step-by-step description of the (a) way to configure 
stackless python (I have v2.4 or v2.5) to work with PyQt4?

I'm new to stackless, but have been using PyQt4 with cPython.  I'd love to 
exequte this example code from:
	http://code.google.com/p/stacklessexamples/wiki/StacklessGUI
called:
	ProdConPyQt.py

When I try to link my
	/usr/stackless_python/lib/python2.5/site-packages/
dir into my stackless source tree, or install dir, I get the following error:

===================

> /usr/stackless_python/bin/python ProdConPyQt.py
ProdConPyQt.py:20: RuntimeWarning: Python C API version mismatch for module 
PyQt4.QtGui: This Python has API version 1013, module PyQt4.QtGui has version 
1012.
  from PyQt4 import QtGui, QtCore
ProdConPyQt.py:20: RuntimeWarning: Python C API version mismatch for module 
sip: This Python has API version 1013, module sip has version 1012.
  from PyQt4 import QtGui, QtCore
Traceback (most recent call last):
  File "ProdConPyQt.py", line 20, in <module>
    from PyQt4 import QtGui, QtCore
ImportError: /usr/stackless_python/lib/python2.5/site-packages/PyQt4/QtCore.so: 
undefined symbol: PyUnicodeUCS4_GetDefaultEncoding

=========================


I appreciate all encouragement and experienced advice.

Thanks!


-caleb

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
        caleb at howlor.com (home) - choward at imageworks.com (work)
                   http://howlor.com/CalebMain.html
                    "Live slow - Die old." -ronda
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list