Opened 10 years ago

Closed 9 years ago

Last modified 7 years ago

#3245 closed defect (fixed)

setup.py error on windows when installing from a second level directory

Reported by: dall Owned by: nobody
Component: Uncategorized Version:
Severity: normal Keywords: windows installation
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

D:\django_src>setup.py install
running install
running build
running build_py
error: package directory '\django' does not exist

Change History (11)

comment:1 Changed 10 years ago by ramiro <rm0 _at_ gmx.net>

dall,

What version of Django are you trying to install?. What are the contents of the D:\django_src directory?

comment:2 Changed 10 years ago by Jacob

Resolution: invalid
Status: newclosed

We'll need a lot more information -- Windows version, Python version, etc. -- to even start to fix this. You zhould probably also try django-users before reporting this as a bug.

comment:3 Changed 10 years ago by wfifi

Component: django-admin.pyUncategorized

windows install must change setyp.py line 24

package = dirpath[len_root_dir:].lstrip('/').replace('/', '.')

to

package = dirpath[len_root_dir:].lstrip('
').replace('
', '.')

comment:4 Changed 10 years ago by Michael Radziej <mir@…>

Keywords: windows installation added
Summary: setup.py error on windowssetup.py error on windows when installing from a second level directory
Triage Stage: UnreviewedAccepted

OK, this makes sense. It seems to happen only when you install it in a second level directory. I cannot check this, but for Windows you'll probably need the same path treatment as for unix. Of course, the replacements from the preceding comment must do the replacements both for unix ('/') and for windows ('
').

comment:5 Changed 10 years ago by Simon G. <dev@…>

Resolution: invalid
Status: closedreopened

#4082 looks like a duplicate.

comment:6 Changed 10 years ago by Malcolm Tredinnick

I have a feeling this might have been fixed in [4912]. Could you check if the problem still exists with a recent subversion checkout?

comment:7 Changed 10 years ago by Simon G. <dev@…>

#4182 appears to be a duplicate.

comment:8 in reply to:  7 Changed 10 years ago by Gary Wilson <gary.wilson@…>

Replying to Simon G. <dev@simon.net.nz>:

#4182 appears to be a duplicate.

I believe you mean #4128.

comment:9 Changed 9 years ago by anonymous

I had this same problem when trying to install Django from a folder on my Desktop (Windows XP). Changing the slashes on line 24 fixed it.

comment:10 Changed 9 years ago by Malcolm Tredinnick

Resolution: fixed
Status: reopenedclosed

All the evidence here points to people using versions prior to [4912] -- such as Django 0.96.

comment:11 Changed 9 years ago by Jason <romain_hardouin@…>

Replying to wfifi:

This hack makes setup.py works fine on my winXP/Py2.5/Django-0.96.1
Thanx guy

Note: See TracTickets for help on using tickets.
Back to Top