Hi,
I already opened a debian bugreport for it, but I'm still wondering why the following issue appears:
File "/usr/lib/python3/dist-packages/django/db/backends/mysql/base.py", line 30, in <module> 'Did you install mysqlclient or MySQL-python?' % e django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'. Did you install mysqlclient or MySQL-python?
python3-pymysql, which is a dependency of mailman3-web and provides mySQLdb, is installed.
(Maybe it's time to migrate to postgres.)
Kind regards Bjoern
Hello, when you look a bit further up in the logs, you might see another error with mysql - error creating the mainman database (something like 'index too long'. This error can be found in some other applications as well and has to do something with the mysql backend setup. This can be fixed manually for other apps, but the necessary steps are hard to be implemented in the scripts. I only recollect my memories here - cannot look up in my notes currently. Yes, a switch to postgres will help you if this fits into your architecture. Jörg
- Januar 2019 12:01, "Bjoern Franke" <bjo@nord-west.org> schrieb:
Hi,
I already opened a debian bugreport for it, but I'm still wondering why the following issue appears:
File "/usr/lib/python3/dist-packages/django/db/backends/mysql/base.py", line 30, in <module> 'Did you install mysqlclient or MySQL-python?' % e django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'. Did you install mysqlclient or MySQL-python?
python3-pymysql, which is a dependency of mailman3-web and provides mySQLdb, is installed.
(Maybe it's time to migrate to postgres.)
Kind regards Bjoern
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org
Hi,
thanks for your replay. I remember such an error "index too long", but this error does not appear here, and the database is already created.
Migration to postgresql was planned already, but there were some issues with the django data.
Regards Bjoern
On 1/24/19 3:00 AM, Bjoern Franke wrote:
Hi,
I already opened a debian bugreport for it, but I'm still wondering why the following issue appears:
File "/usr/lib/python3/dist-packages/django/db/backends/mysql/base.py", line 30, in <module> 'Did you install mysqlclient or MySQL-python?' % e django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'. Did you install mysqlclient or MySQL-python?
python3-pymysql, which is a dependency of mailman3-web and provides mySQLdb, is installed.
You need both pymysql and mysqlclient. The former is used by Mailman core and the latter by Django.
These can be installed with pip via
pip3 install pymysql pip3 install mysqlclient
or apt via
apt install python3-pymysql python3-mysqldb
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Bjoern Franke
-
js@jslz.de
-
Mark Sapiro