Django Install Error: " SyntaxError: future feature unicode_literals is not defined "

384 views
Skip to first unread message

Byron Price

unread,
Jan 8, 2014, 8:36:32 PM1/8/14
to django...@googlegroups.com
I am new to programming in general and I am struggling to install Django.  I downloaded the gar file, unzipped it and then attempted to do the " sudo python setup.py install " command in the terminal (I'm working on a Mac OS X 10.5.8) but was given the following message : 

Traceback (most recent call last):
  File "setup.py", line 80, in <module>
    version = __import__('django').get_version()
  File "/Users/byronprice/Downloads/Django-1.6.1/django/__init__.py", line 6, in get_version
    from django.utils.version import get_version
  File "/Users/byronprice/Downloads/Django-1.6.1/django/utils/version.py", line 1
    from __future__ import unicode_literals
SyntaxError: future feature unicode_literals is not defined

I imagine unicode_literals is part of the Python library and that perhaps in version 3.3 the name was changed to something slightly different.  Does anyone have any ideas??


Mark Moss

unread,
Jan 9, 2014, 12:39:11 AM1/9/14
to django...@googlegroups.com
What's the version of python you are using? Django 1.5 has dropped support for Python 2.5 (see here and here). Here is another similar problem with OSX.

--------------------
- Mark
Struggling with Django setup? Try the new Instant Django Hosting.

Byron Price

unread,
Jan 9, 2014, 1:04:46 PM1/9/14
to django...@googlegroups.com
I have Python 3.3.2 running and I'm trying to download Django-1.6.1 

Xavier Ordoquy

unread,
Jan 9, 2014, 2:48:14 PM1/9/14
to django...@googlegroups.com
Hi,

Given the error it looks like you weren’t using python 3.3
For the record, I’m running on osx (10.9), using python 3.3.3 I had no issue with this import.

Regards,
Xavier Ordoquy.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/34d7b3c6-b6df-45ec-a35f-1bcaed6190de%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages