Modelesq Modelesq - 1 year ago 164
Python Question

Import error cannot import name execute_manager in windows environment

I'll get you up to speed. I'm trying to setup a windows dev environment. I've successfully installed python, django, and virtualenv + virtualenwrapper(windows-cmd installer)

workon env
Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
(1,6,1, 'final',0)
>>> quit()

But when I run:
python runserver
from my cloned repository I get this error:

Traceback (most recent call last)"
File "", line 2, in (module)
from import execute_manager
ImportError: cannot import name execute_manager

Both python and django are added to my system variable PATH:


I've also tried this with bash and powershell and I still get the same error.

Is this a virtualenv related issue? Django dependence issue? Yikes. How do I fix this problem? Help me Stackoverflow-kenobi your my only hope.

Answer Source

execute_manager deprecated in Django 1.4 as part of the project layout refactor and was removed in 1.6 per the deprecation timeline:

To fix this error you should either install a compatible version of Django for the project or update the to new style which does not use execute_manager: Most likely if your is not compatible with 1.6 then neither is the rest of the project. You should find the appropriate Django version for the project.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download