Opened 9 years ago
Closed 9 years ago
#25992 closed Bug (invalid)
SyntaxError: invalid syntax on CentOS 6.7
Reported by: | Ángel Guzmán Maeso | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I am getting the following trace installing via easy_install (Python 3.5) under CentOS 6.7
# easy_install-3.5 Django==1.9 Searching for Django==1.9 Reading https://pypi.python.org/simple/Django/ Best match: Django 1.9 Downloading https://pypi.python.org/packages/source/D/Django/Django-1.9.tar.gz#md5=110389cf89196334182295165852e082 Processing Django-1.9.tar.gz Writing /tmp/easy_install-uexgnc91/Django-1.9/setup.cfg Running Django-1.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-uexgnc91/Django-1.9/egg-dist-tmp-f7wggfuf no previously-included directories found matching 'django/contrib/admin/bin' warning: no previously-included files matching '__pycache__' found under directory '*' File "build/bdist.linux-x86_64/egg/django/conf/app_template/apps.py", line 4 class {{ camel_case_app_name }}Config(AppConfig): ^ SyntaxError: invalid syntax File "build/bdist.linux-x86_64/egg/django/conf/app_template/models.py", line 1 {{ unicode_literals }}from django.db import models ^ SyntaxError: invalid syntax creating /usr/lib/python3.5/site-packages/Django-1.9-py3.5.egg Extracting Django-1.9-py3.5.egg to /usr/lib/python3.5/site-packages File "/usr/lib/python3.5/site-packages/Django-1.9-py3.5.egg/django/conf/app_template/apps.py", line 4 class {{ camel_case_app_name }}Config(AppConfig): ^ SyntaxError: invalid syntax File "/usr/lib/python3.5/site-packages/Django-1.9-py3.5.egg/django/conf/app_template/models.py", line 1 {{ unicode_literals }}from django.db import models ^ SyntaxError: invalid syntax Adding Django 1.9 to easy-install.pth file Installing django-admin.py script to /usr/bin Installing django-admin script to /usr/bin Installed /usr/lib/python3.5/site-packages/Django-1.9-py3.5.egg Processing dependencies for Django==1.9 Finished processing dependencies for Django==1.9
Note:
See TracTickets
for help on using tickets.
Please see https://docs.djangoproject.com/en/1.9/releases/1.9/#syntaxerror-when-installing-django-setuptools-5-5-x