2

I am not able to run python manage.py shell, I am getting the following exception:

[root@dd dase]# python manage.py shell
Error: cannot import name six

But six is installed on the server:

[root@dd dase]# python
Python 2.6.6 (r266:84292, Jun 18 2012, 14:18:47) 
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import six
>>> six.__version__
'1.9.0'

Django Version:

[root@dd dase]# django-admin --version
1.2.7

Nothing in traceback:

[root@dd dase]# python manage.py shell --traceback
Error: cannot import name six
Joseph
  • 128
  • 1
  • 5

1 Answers1

0

Could be a package you have installed that's trying to use django.utils.six which became available in 1.4.2 (No module named six). Definitely upgrade your django version as given above.

Community
  • 1
  • 1
Ben Hare
  • 4,365
  • 5
  • 27
  • 44