11

After installing transifex and ./manage.py the following error shows up:

Error: No modules named six.

Python Six is installed in the virtualenv (from https://pypi.python.org/pypi/six) Django Version is 1.4

Any help would be great! thx & best regards Michael

Charles
  • 50,943
  • 13
  • 104
  • 142
Michael Brueckler
  • 123
  • 1
  • 1
  • 4

3 Answers3

13

django.utils.six is added in Django 1.4.2, see

https://docs.djangoproject.com/en/1.5/topics/python3/#philosophy

bmihelac
  • 6,233
  • 34
  • 45
  • hi, thanks but this isn't working. just found, that transifex is only working with django 1.3.1. so i installed django 1.3.1, but the same error. also "import six" in the python shell has no effect... – Michael Brueckler Apr 19 '13 at 17:35
  • can you post traceback, ie ``./manage.py validate --traceback`` – bmihelac Apr 19 '13 at 19:21
  • hi. same error, it just says: /usr/local/lib/python2.7/dist-packages/transifex-1.2.1-py2.7.egg/transifex# ./manage.py validate --traceback Error: cannot import name six – Michael Brueckler Apr 22 '13 at 06:46
  • File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/local/lib/python2.7/dist-packages/South-0.7.6-py2.7.egg/south/management/commands/__init__.py", line 10, in import django.template.loaders.app_directories File "/usr/lib/python2.7/dist-packages/django/template/loaders/app_directories.py", line 23, in raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0])) django.core.exceptions.ImproperlyConfigured: ImportError django_filters: cannot import name six – Michael Brueckler Apr 24 '13 at 13:04
  • 1
    Traceback shows that ``django_filters`` raises exception. Django-filters requires Django 1.4.5+, maybe you can try to install some older version – bmihelac Apr 24 '13 at 18:35
  • 1
    sir, you are the man of the week ;). with an olde version of django-filters (0.5.1) it is working!. thank you – Michael Brueckler Apr 25 '13 at 07:29
  • Glad it helped. Traceback can help you to identify where the problem arises. – bmihelac Apr 25 '13 at 08:43
1

I've just had the same problem. Seems like the dependencies in the transifex package are not listed correctly (it depends on Django == 1.3.1 and django-filter >= 0.1, but django-filter 0.6 depends on Django >= 1.4.5).

I solved by installing an older version of django-filter (0.5.4), NOT by using the package provided in pypi (seems that on pypi there are only 0.6 and 0.1 versions), but directly by downloading the release 0.5.4 from here:

https://github.com/alex/django-filter/releases

and then installing with the usual:

python setup.py install

Augusto Destrero
  • 4,095
  • 1
  • 23
  • 25
  • For the record: these are all transifex dependencies I've to manually install (after uninstalling the versions automatically installed by pip) because those installed automatically where not correct: django-filter==0.5.4 django-haystack==1.2 django-piston==0.2.2 – Augusto Destrero Jul 08 '13 at 10:42
-4

This should solve your problem:

$ easy_install six
Vsbrt
  • 1