Skip to content
Advertisement

Python3 Can’t load plugin: sqlalchemy.dialects:mysql.pymysql

I’m trying to connect to my database with sqlAlchemy and get the error Can't load plugin: sqlalchemy.dialects:mysql.pymysql. The script worked before and I didn’t change anything, tho I can’t connect to the db.

I’m importing the libraries:

JavaScript

My connection:

JavaScript

sqlAlchemy and pymysql are installed.

Using Ubuntu 20.04, python 3.8.5 and sqlalchemy Version 1.3.12. Complete traceback:

JavaScript

Advertisement

Answer

Okay, just simply removing “pymysql” and installing it again solved the problem – whatever it was. It’s that easy sometimes.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement