Opened 9 years ago

Closed 9 years ago

#25960 closed Uncategorized (invalid)

SyntaxError when installing Django 1.9

Reported by: Thiago C. D'Ávila 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: yes UI/UX: no

Description

When I install Django 1.9 on Linux Mint 17.2, I am getting two syntax errors:

$ sudo pip3 install Django
Downloading/unpacking Django
  Downloading Django-1.9-py2.py3-none-any.whl (6.6MB): 6.6MB downloaded
Installing collected packages: Django
*** Error compiling '/tmp/pip_build_root/Django/django/conf/app_template/apps.py'...
  File "/tmp/pip_build_root/Django/django/conf/app_template/apps.py", line 4
    class {{ camel_case_app_name }}Config(AppConfig):
          ^
SyntaxError: invalid syntax

*** Error compiling '/tmp/pip_build_root/Django/django/conf/app_template/models.py'...
  File "/tmp/pip_build_root/Django/django/conf/app_template/models.py", line 1
    {{ unicode_literals }}from django.db import models
                             ^
SyntaxError: invalid syntax

Successfully installed Django
Cleaning up...

I believe it is an easy picking.

Thanks,

Thiago

Change History (1)

comment:1 by Tim Graham, 9 years ago

Resolution: invalid
Status: newclosed
Summary: Error when installing Django 1.9 via pip3SyntaxError when installing Django 1.9
Note: See TracTickets for help on using tickets.
Back to Top