[19.04] no module named MySQLdb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
Fix Released
|
High
|
James Page |
Bug Description
shared-
the error suggests installing mysqlclient or mysql-python but these both fail with this error:
fix is to pip install mysqlclient or mysql-python, but these both fail with:
Complete output from command python setup.py egg_info:
/bin/sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-
metadata, options = get_config()
File "/tmp/pip-
libs = mysql_config(
File "/tmp/pip-
raise EnvironmentErro
OSError: mysql_config not found
which can be resolved with:
sudo apt install libmysqlclient-dev
and then installing python3-pip to install mysqlclient allows the hook to complete successfully
unit-openstack-
unit-openstack-
unit-openstack-
Changed in charm-openstack-dashboard: | |
status: | Fix Committed → Fix Released |
openstack release version would be useful here - there where changes to the default dialect in sqlalchemy at stein so this might be related to bug 1832075