1

I'm receiving the following when trying to runserver after provisioning a VM using Puppet:

File "/usr/local/lib/python2.7/dist packages/django/db/backends/mysql/base.py", line 17, in <module> raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: /usr/local/lib/python2.7/dist-packages/_mysql.so: undefined symbol: mysql_kill

I found this discussion, but the suggestion there didn't help. I'd really appreciate any assistance! pip freeze reveals that I have MySQL-python==1.2.5 installed. I also have libmysqlclient-dev installed via apt-get. Installing python-mysqldb via apt-get doesn't seem to have any effect on this problem.

TheCatParty
  • 1,449
  • 12
  • 19
  • Did you try the solution in the comment section of your link? – Shang Wang Sep 21 '15 at 21:38
  • 2
    try `apt-get remove python-mysqldb` and `pip install --upgrade MySQL-python` If that does not work, we'd probably need more info on your provisioning (also ubuntu version) to be able to replicate – Frederic Henri Sep 22 '15 at 08:31

1 Answers1

1

Frederic Henri's response is correct. I had a mistake in my Puppet provisioning that resulted in mysql-python not being updated, but also without throwing an error during that step.

TheCatParty
  • 1,449
  • 12
  • 19