Opened 17 years ago

Closed 16 years ago

Last modified 15 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: no UI/UX: no

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 by ramiro <rm0 _at_ gmx.net>, 17 years ago

dall,

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

comment:2 by Jacob, 17 years ago

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 by wfifi, 17 years ago

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 by Michael Radziej <mir@…>, 17 years ago

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 by Simon G. <dev@…>, 17 years ago

Resolution: invalid
Status: closedreopened

#4082 looks like a duplicate.

comment:6 by Malcolm Tredinnick, 17 years ago

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 by Simon G. <dev@…>, 17 years ago

#4182 appears to be a duplicate.

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

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

#4182 appears to be a duplicate.

I believe you mean #4128.

comment:9 by anonymous, 17 years ago

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 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: reopenedclosed

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

comment:11 by Jason <romain_hardouin@…>, 16 years ago

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