Comment 2 for bug 1889851

Revision history for this message
Olivier Subilia (osubillia) wrote :

Sorry. I've just understood the difference between source package and installed package name (I should use apt show more often...)

Completely minimal example:

#!/usr/bin/python3
# -*- coding: utf-8 -*-

import sys
from PyQt5.QtWidgets import QApplication
from PyQt5.QtSql import QSqlDatabase

app = QApplication(sys.argv)
db = QSqlDatabase.addDatabase("QMYSQL")

with libmysqlclient21=8.0.19-0ubuntu5:
(OK)
with libmysqlclient21=8.0.21-0ubuntu0.20.04.3:
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3