[PyKDE] Build PyQt4 and PyQt3 in the same python

Phil Thompson phil at riverbankcomputing.co.uk
Fri Dec 23 12:05:57 GMT 2005


On Friday 23 December 2005 11:57 am, Andreas Pakulat wrote:
> Hi,
>
> even though I now know how to execute another python for a project in
> eric3, I'd like to do the following:
>
> Build Qt 3.3.5 + Python 2.3.5 into $HOME/pyqt
> Then install sip-snapshot with that python
> Then qscintilla into $HOME/pyqt
> And then PyQt3 should go, unfortunately I get:
>
>   File "configure.py", line 56, in ?
>     if sipcfg.qt_version == 0:
>   File "/home/andreas/pyqt/lib/python2.3/site-packages/sipconfig.py", line
> 173, in __getattr__ raise AttributeError, "\"%s\" is not a valid
> configuration value or user option" % name AttributeError: "qt_version" is
> not a valid configuration value or user option
>
> When executing python configure.py (with adjusted PATH and QTDIR to
> $HOME/pyqt)
>
> No I guess sip-snapshot is not working well together with PyQt3 but it
> is needed for PyQt4, so there I have a dilemma: sip always installs in
> $HOME/pyqt/lib/python2.3/site-packages and thus I cannot have both sips
> in there at the same time, I think.
>
> Thus the question: Is it possible to install PyQt4 and PyQt3 with the
> same python? If so how?

You must use a PyQt3 snapshot.

Phil




More information about the PyQt mailing list