[PyQt] PyQt4 and PyQt5 together on Linux?
Raphael Kubo da Costa
rakuco at FreeBSD.org
Wed Mar 18 20:13:27 GMT 2015
Scott Kitterman <debian at kitterman.com> writes:
> On Wednesday, March 04, 2015 05:58:18 PM Sibylle Koczian wrote:
>> Hello,
>>
>> 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
> PyQt5 packages.
OP probably meant "14.10" instead of "10.14".
More information about the PyQt
mailing list