[Django] #26143: SyntaxError for import statement {{ unicode_literals }}from django.apps import AppConfig

7 views
Skip to first unread message

Django

unread,
Jan 26, 2016, 4:42:50 PM1/26/16
to django-...@googlegroups.com
#26143: SyntaxError for import statement {{ unicode_literals }}from django.apps
import AppConfig
-------------------------------+--------------------
Reporter: heseba | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
There are some strange error messages when running setup.py which seem to
be syntax errors in the files below. The application is successfully
running, however.

{{{
*** Error compiling '/tmp/pip-build-
5hj2p7vr/django/django/conf/app_template/apps.py'...
File "/tmp/pip-build-5hj2p7vr/django/django/conf/app_template/apps.py",
line 1
{{ unicode_literals }}from django.apps import AppConfig
^
SyntaxError: invalid syntax

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


...

Successfully installed myflights django django-bootstrap3 django-
bootstrap3-datetimepicker
Cleaning up...

}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26143>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 26, 2016, 4:57:02 PM1/26/16
to django-...@googlegroups.com
#26143: SyntaxError for import statement {{ unicode_literals }}from django.apps
import AppConfig
-------------------------------+--------------------------------------
Reporter: heseba | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.9
Severity: Normal | Resolution: duplicate
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by knbk):

* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0


Comment:

Duplicate of #25584.

--
Ticket URL: <https://code.djangoproject.com/ticket/26143#comment:1>

Reply all
Reply to author
Forward
0 new messages