M BUZZ CRAZE NEWS
// general

Peewee MySQL problem after upgrade to 19.10

By Sarah Rodriguez

Since the 19.10 upgrade Python peewee can't talk to MySQL anymore:

raise ImproperlyConfigured('MySQL driver not installed!')
peewee.ImproperlyConfigured: MySQL driver not installed!

But all requirements are installed: peewee, mysqlclient, pysocks

Also libmysqlclient-dev, libmysqlclient21

Update:

mysql --version
mysql Ver 15.1 Distrib 10.3.17-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

Using Mariadb, which is running fine.

mariadb.service - MariaDB 10.3.17 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since 

What's the problem here?

1 Answer

Fixed by:

pip3 install pymysql

Apparently mysqlclient is not enough anymore.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy