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.
* 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>
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>
* status: new => closed
* resolution: => worksforme
--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:3>
* 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>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/5461 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:5>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/25584#comment:6>
* 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>
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>
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>
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>
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>