[Django] #25360: Django1.8 install error when using setuptools setup

9 views
Skip to first unread message

Django

unread,
Sep 6, 2015, 12:02:07 PM9/6/15
to django-...@googlegroups.com
#25360: Django1.8 install error when using setuptools setup
-------------------------------+---------------------
Reporter: hsiao | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Keywords: install
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------
I wrote this in ''setup.py'':

{{{
#!div style="font-size: 80%"
{{{
from setuptools import setup

setup(
......
zip_safe=False,
install_requires=['django==1.8.4'],
)
}}}
}}}

When I ran command ''$ python setup.py install'',
I got this error:
{{{
#!div style="font-size: 80%"
{{{
Searching for django
Reading https://pypi.python.org/simple/django/
Best match: Django 1.8.4
Downloading
https://pypi.python.org/packages/source/D/Django/Django-1.8.4.tar.gz
#md5=8eb569a5b9d984d9f3366fda67fb0bb8
Processing Django-1.8.4.tar.gz
error: [Errno 22] invalid mode ('wb') or filename:
'c:\\users\\user\\appdata\\local\\temp\\easy_install-
sqik__\\Django-1.8.4\\tests\\staticfiles_tests\\apps\\test\\static\\test\\\xe2\x8a\x97.txt'
}}}
}}}

Same error occurs when I use easy_install to install django 1.8.

( I ran the script on windows7 )

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

Django

unread,
Sep 7, 2015, 9:16:07 AM9/7/15
to django-...@googlegroups.com
#25360: Django1.8 install error when using setuptools setup
-------------------------------+--------------------------------------

Reporter: hsiao | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Resolution:

Keywords: install | 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


Comment:

Are you on Python 2 or 3? (If 2, could you try 3?) I guess this could be
poor support for Unicode filenames on setuptools, but I'm not too sure.
It's unclear to me that it's a bug in Django that we can do something
about. I think the Django ecosystem mostly uses pip these days.

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

Django

unread,
Sep 8, 2015, 3:56:57 AM9/8/15
to django-...@googlegroups.com
#25360: Django1.8 install error when using setuptools setup
-------------------------------+--------------------------------------

Reporter: hsiao | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Resolution:

Keywords: install | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by kezabelle):

The principle problem appears similar to that in #24761 in that
`staticfiles_tests` includes files which are not safe across varying file
systems/file formats/locales.

Using `setup.py` as an entrypoint to bootstrap a project seems like an OK
way of doing things to me, even if the convention for many is to have
`requirements.txt` or whatever for `pip` to use. That said, many re-usable
packages will have an `install_requires` which includes a Django line, and
the ecosystem hasn't crumbled amid a myriad of errors, so I'm inclined to
suggest that the environment details are pertinent to diagnose if anything
could be done.

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

Django

unread,
Sep 8, 2015, 3:59:02 AM9/8/15
to django-...@googlegroups.com
#25360: Django1.8 install error when using setuptools setup
-------------------------------+--------------------------------------

Reporter: hsiao | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Resolution:

Keywords: install | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* cc: django@… (added)


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

Django

unread,
Sep 8, 2015, 9:05:18 AM9/8/15
to django-...@googlegroups.com
#25360: Django1.8 install error when using setuptools setup
-------------------------------+--------------------------------------
Reporter: hsiao | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.8
Severity: Normal | Resolution: needsinfo

Keywords: install | 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: => needsinfo


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

Reply all
Reply to author
Forward
0 new messages