aureliabulldog
aureliabulldog

Reputation: 31

ImportError with "Import PyQt5.QtSql "

I am attempting to

from PyQt5.QtSql import QSqlDatabase, QSqlQuery

and am receiving this error:

from PyQt5.QtSql import QSqlDatabase, QSqlQuery ImportError: No module named 'PyQt5.QtSql'

I haven't yet ran into an import problem with other PyQt5 modules. Is the QtSql module installed separately?

thanks,

Upvotes: 3

Views: 3419

Answers (1)

FrEaKmAn
FrEaKmAn

Reputation: 1845

There is a similar problem described at https://github.com/ghostop14/sparrow-wifi/issues/1

Solution described there is to run command

apt-get install python3-pyqt5.qtsql

Upvotes: 5

Related Questions