[PyQt] PyQt4 and PyQt5 together on Linux?
debian at kitterman.com
Thu Mar 5 04:30:06 GMT 2015
On Wednesday, March 04, 2015 05:58:18 PM Sibylle Koczian wrote:
> because I can't use PyQt5 for database applications I installed PyQt4 on
> Ubuntu 10.14 in addition to the existing PyQt5 installation. I've used
> the package manager for both, no visible problems installing. I did
> install the PyQt$-SQL package.
> But: if I try to connect to a PostgreSQL database I get the message that
> the driver QPSQL isn't available. The list of available drivers only
> contains QSQLITE, QSQLITE3, QMYSQL.
> With PyQt5 I can access PostgreSQL databases from that same (virtual)
> machine, but as I wrote on February 11 adding new data to a qtableview
> doesn't work as expected.
> What is wrong and what should I do?
For PyQt4, the Ubuntu package name for the SQL module is python-qt4-sql. For
PyQt5 it's python-pyqt5.qtsql. Not sure how you installed PyQt5 using the
package manager though since 12.04 is the oldest supported Ubuntu release with
More information about the PyQt