[PyKDE] eric3 still not working with recent PyQt and sip snapshots

Andreas Pakulat apaku at gmx.de
Sat Dec 31 17:06:17 GMT 2005


On 31.12.05 14:59:39, Detlev Offenbach wrote:
> Am Samstag, 31. Dezember 2005 14:15 schrieb Andreas Pakulat:
> > On 31.12.05 11:35:27, Andreas Pakulat wrote:
> > "/home/andreas/python2.3/lib/python2.3/site-packages/eric3/QScintilla/QextS
> >cintillaCompat.py", line 103, in clearStyles QextScintilla.STYLE_DEFAULT,
> > colorGroup.text())
> > TypeError: argument 3 of QextScintillaBase.SendScintilla() has an invalid
> > type
> 
> I have checked this and I cannot see anything obviously wrong. Could you 
> please check your installation (specially the contents of your PyQt 
> installation).

Looks ok to me:

andreas at morpheus:~/python2.3/lib/python2.3/site-packages>ls -l
insgesamt 8948
drwxr-xr-x 32 andreas andreas    4096 2005-12-31 13:52 eric3
-rw-r--r--  1 andreas andreas    1747 2005-12-31 13:52 eric3config.py
-rw-r--r--  1 andreas andreas    1845 2005-12-31 13:52 eric3config.pyc
-rw-r--r--  1 andreas andreas   13607 2005-12-31 13:43 pyqtconfig.py
-rwxr-xr-x  1 andreas andreas  300456 2005-12-31 13:43 qtcanvas.so
-rwxr-xr-x  1 andreas andreas  715556 2005-12-31 13:43 qtext.so
-rwxr-xr-x  1 andreas andreas  148884 2005-12-31 13:43 qtgl.so
-rwxr-xr-x  1 andreas andreas  263004 2005-12-31 13:43 qtnetwork.so
-rwxr-xr-x  1 andreas andreas 6252884 2005-12-31 13:43 qt.so
-rwxr-xr-x  1 andreas andreas  600644 2005-12-31 13:43 qtsql.so
-rwxr-xr-x  1 andreas andreas  259548 2005-12-31 13:43 qttable.so
-rwxr-xr-x  1 andreas andreas   50640 2005-12-31 13:43 qtui.so
-rwxr-xr-x  1 andreas andreas  303560 2005-12-31 13:43 qtxml.so
-rw-r--r--  1 andreas andreas     119 2005-12-31 11:59 README
-rw-r--r--  1 andreas andreas   68202 2005-12-31 12:47 sipconfig.py
-rw-r--r--  1 andreas andreas   69175 2005-12-31 12:47 sipconfig.pyc
-rw-r--r--  1 andreas andreas    2529 2005-12-31 12:47 sipdistutils.py
-rwxr-xr-x  1 andreas andreas   58568 2005-12-31 12:47 sip.so
-rw-r--r--  1 andreas andreas     155 2005-12-31 13:52 sitecustomize.py
-rw-r--r--  1 andreas andreas     236 2005-12-31 13:52 sitecustomize.pyc

qtext.so links to $HOME/qt3.3.5/lib/libqscintilla.so.6 and
$HOME/qt3.3.5/lib/libqt-mt.so.3 which are both there (all other libs are
from /usr)

In $HOME/python2.3/share/sip/qtext I see various qextscintilla* sip
files and at least qextscintillabase.sip is identical to the one in
PyQt-x11-gpl-snapshot-20051230/sip/qtext.

If I should check anything else (PATH has $HOME/python2.3/bin and
$HOME/qt3.3.5/bin in it as first, QTDIR points to $HOME/qt3.3.5) please
let me know.

> from qt import *
> import sys
> 
> app = QApplication(sys.argv)
> pal = qApp.palette()
> act = pal.active()
> col = act.text()
> print type(pal)		# should give QPalette
> print type(act)		# should give QColorGroup
> print type(col)		# should give QColor

All ok, i.e. col is a QColor, act is a QColorGroup and pal is a
QPalette.

All I can think of right now, would be that "somehow" the wrong overload
is picked for Sendscintilla, i.e. one that has 3 parameteres but the
last one is long or char. But that's just me guessing the wild, as I
have no idea how sip works.

Andreas

-- 
Your business will assume vast proportions.




More information about the PyQt mailing list