[Django] #25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1

28 views
Skip to first unread message

Django

unread,
Oct 21, 2015, 8:56:28 AM10/21/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------+--------------------
Reporter: BlackHacker | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.9a1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
When I am trying to install django 1.9a1 or 1.9b1 using pip on python
version 2.7.6. I am getting syntax error though installation is not
getting effected because of this.

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

and

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

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

Django

unread,
Oct 21, 2015, 9:11:55 AM10/21/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------+--------------------------------------

Reporter: BlackHacker | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.9a1
Severity: Normal | Resolution:
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 timgraham):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Old description:

> When I am trying to install django 1.9a1 or 1.9b1 using pip on python
> version 2.7.6. I am getting syntax error though installation is not
> getting effected because of this.
>
> 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
>
> and
>
> 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

New description:

When I am trying to install django 1.9a1 or 1.9b1 using pip on python
version 2.7.6. I am getting syntax error though installation is not
getting effected because of this.
{{{
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

and

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
}}}

--

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

Django

unread,
Oct 21, 2015, 9:14:06 AM10/21/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------+--------------------------------------

Reporter: BlackHacker | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.9a1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by timgraham):

What version of pip? I have no trouble with Python 2.7.6 and pip 7.1.2.

--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:2>

Django

unread,
Oct 21, 2015, 10:46:09 AM10/21/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------+--------------------------------------
Reporter: BlackHacker | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.9a1
Severity: Normal | Resolution: worksforme
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 timgraham):

* status: new => closed
* resolution: => worksforme


--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:3>

Django

unread,
Oct 21, 2015, 2:38:03 PM10/21/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------+------------------------------------

Reporter: BlackHacker | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.9a1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* status: closed => new
* resolution: worksforme =>
* component: Uncategorized => Documentation
* stage: Unreviewed => Accepted


Comment:

I also encountered this error when using pip 1.5.6 (default version in
Debian stable). I guess we should at least document that (suggesting `pip
install --upgrade pip`?), as people do use stable software :-)

--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:4>

Django

unread,
Oct 21, 2015, 3:17:50 PM10/21/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------+------------------------------------

Reporter: BlackHacker | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.9a1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/5461 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:5>

Django

unread,
Oct 22, 2015, 9:14:40 AM10/22/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------------+-------------------------------------

Reporter: BlackHacker | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.9a1
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:6>

Django

unread,
Oct 22, 2015, 10:09:04 AM10/22/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------------+-------------------------------------
Reporter: BlackHacker | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: 1.9a1
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed

* resolution: => fixed


Comment:

In [changeset:"ee66d8dd7df8326c453fd04c2bdeb5225df934be" ee66d8d]:
{{{
#!CommitTicketReference repository=""
revision="ee66d8dd7df8326c453fd04c2bdeb5225df934be"
Fixed #25584 -- Documented a pip error when installing Django 1.9.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:7>

Django

unread,
Oct 22, 2015, 10:09:16 AM10/22/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------------+-------------------------------------
Reporter: BlackHacker | Owner: nobody

Type: Bug | Status: closed
Component: Documentation | Version: 1.9a1
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"02f3084f4ee1ec4319439b99bd4cde9e27201778" 02f3084f]:
{{{
#!CommitTicketReference repository=""
revision="02f3084f4ee1ec4319439b99bd4cde9e27201778"
[1.9.x] Fixed #25584 -- Documented a pip error when installing Django 1.9.

Backport of ee66d8dd7df8326c453fd04c2bdeb5225df934be from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:8>

Django

unread,
Dec 5, 2015, 4:25:10 PM12/5/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------------+-------------------------------------
Reporter: BlackHacker | Owner: nobody

Type: Bug | Status: closed
Component: Documentation | Version: 1.9a1
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by timgraham):

As noted in a [https://groups.google.com/d/topic/django-
developers/nPShxGatRuE/discussion django-developers thread], setuptools
5.5.x is actually to blame for the warning. I'll update the note added in
the above commits.

--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:9>

Django

unread,
Dec 5, 2015, 4:33:08 PM12/5/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------------+-------------------------------------
Reporter: BlackHacker | Owner: nobody

Type: Bug | Status: closed
Component: Documentation | Version: 1.9a1
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"f5af68ba68c1041d785e5582529134d54895e7c6" f5af68ba]:
{{{
#!CommitTicketReference repository=""
revision="f5af68ba68c1041d785e5582529134d54895e7c6"
Refs #25584 -- Corrected note about source of SyntaxErrors when installing
Django 1.9.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:10>

Django

unread,
Dec 5, 2015, 4:33:19 PM12/5/15
to django-...@googlegroups.com
#25584: Getting Invalid syntax error while installing Django 1.9a1 and 1.9b1
-------------------------------------+-------------------------------------
Reporter: BlackHacker | Owner: nobody

Type: Bug | Status: closed
Component: Documentation | Version: 1.9a1
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"6aaf6728b55c4a68e1e020a33090010fa71c52ca" 6aaf672]:
{{{
#!CommitTicketReference repository=""
revision="6aaf6728b55c4a68e1e020a33090010fa71c52ca"
[1.9.x] Refs #25584 -- Corrected note about source of SyntaxErrors when
installing Django 1.9.

Backport of f5af68ba68c1041d785e5582529134d54895e7c6 from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:11>

Reply all
Reply to author
Forward
0 new messages