Error when South in INSTALLED_APPS

191 Views Asked by At

This is my 4th project using South, but the first time on Django 1.6 and there is something strange going on.

I'm able to run migrations fine, and the database is being updated. However, I'm getting unhandled exceptions when South is in the INSTALLED_APPS of my settings.py.

In the error log I'm seeing:

2013-12-09 15:42:18,123 :  File "/usr/local/lib/python3.3/dist-packages/django/core/urlresolvers.py", line 339, in urlconf_module
2013-12-09 15:42:18,124 :    return self._urlconf_module
2013-12-09 15:42:18,124 :AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module'

Then there are 2 errors that Django returns "During handling of the above exception, another exception occurred:" ImportError: No module named 'south' ImportError: importlib._bootstrap is not a frozen module

  1. When i remove South from the INSTALLED_APPS setting, I don't get the error.
  2. I've read somethings about putting South in the last line of the INSTALLED_APPS, but that doesn't change anything for me.
  3. I am able to import South in my Bash console
  4. This is on a shared server and South is installed correctly and working correctly in different projects (but those projects are django 1.3, not 1.6)

Any ideas of why I'm getting the error when south is in my INSTALLED_APPS?

2

There are 2 best solutions below

0
On BEST ANSWER

south is only installed for python2 if you run migrate with python2 it works. But django is launched with python3. (copied comment as answer, to make it acceptable ;))

0
On

kelvan's comment above explains what was happening. Python 3.3 fails to import south, but with a 2.7 console it imports correctly.