Opened 10 years ago

Closed 9 years ago

#4245 closed (fixed)

add documentation solving "permission denied" with start-project on OSX

Reported by: jacob@… Owned by: nobody
Component: Documentation Version:
Severity: Keywords: install project create startproject sprintsept14
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I followed these instructions to the letter, but I get "Permission Denied" when I try to run "django-admin.py startproject". Maybe it would help to add a brief section on fixing OS X permissions if the installer doesn't set them properly.

Attachments (1)

4245.diff (905 bytes) - added by James Bennett 9 years ago.
Tutorial patch explaining how to fix permissions issue

Download all attachments as: .zip

Change History (11)

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

Resolution: invalid
Status: newclosed
Summary: Permissions on OS Xdjango-admin returns "permission denied" with start-project on OSX

What OSX permissions problems? What did you need to change to get it to work? Were you running start-project in a directory that you had access to?

Please reopen this if you can give more info, thanks.

comment:2 in reply to:  1 ; Changed 9 years ago by paul@…

Keywords: install project create startproject added
Resolution: invalid
Status: closedreopened
Version: SVN0.96

I'm not the original reporter, but I've just encountered this problem.

Mac OS X 10.4.10 (Intel)
Python 2.3.5 (#1, Aug 19 2006, 21:31:42)

Steps taken:

  1. Download Django 0.96 (http://www.djangoproject.com/download/0.96/tarball/) into /Users/pauldwaite/Desktop/
  1. {{{

cd ~/Desktop
tar xzvf Django-0.96.tar.gz
cd Django-0.96
sudo python setup.py install
}}}

After this, /Library/Python/2.3/site-packages/django/ is present and correct. But /Library/Python/2.3/site-packages/django/bin/django-admin.py has the permissions -rw-r--r--, so this command:

/Library/Python/2.3/site-packages/django/bin/django-admin.py startproject mysite

Returns "Permission denied", even when the user has permissions for the directory they're in.

Adding execute permissions for django-admin.py's group (i.e. admin) fixes this problem:

sudo chmod g+x /Library/Python/2.3/site-packages/django/bin/django-admin.py

comment:3 in reply to:  2 ; Changed 9 years ago by paul@…

Sorry, I should have previewed. Step 2 above should have looked like this:

  1. Run these commands:
    cd ~/Desktop
    tar xzvf Django-0.96.tar.gz
    cd Django-0.96
    sudo python setup.py install
    

comment:4 Changed 9 years ago by jacob@…

Sorry I never followed up. I was installing the official 0.96 version on 10.4.9 (PowerPC). The installer puts django in /Library/Python/2.3/site-packages. I ended up installing the dev. version from SVN in my home directory and creating a symbolic link, which worked fine.

comment:5 in reply to:  3 Changed 9 years ago by paul@…

I deleted Django, and installed Python 2.5.1 using the Mac OS X installer provided by python.org. This also fixes the problem.

comment:6 Changed 9 years ago by Aparraddy

Cc: Jbeil added
Keywords: MESSAGE added; install project create startproject removed
Summary: django-admin returns "permission denied" with start-project on OSXdjango-admin returns &#34;permission denied&#34; with start-project on OSX

comment:7 Changed 9 years ago by Chris Beaven

Cc: Jbeil removed
Keywords: install project create startproject added; MESSAGE removed
Summary: django-admin returns &#34;permission denied&#34; with start-project on OSXadd documentation solving "permission denied" with start-project on OSX
Triage Stage: UnreviewedAccepted
Version: 0.96

I'm not sure it's necessary but I guess if it helps someone during install...

Changed 9 years ago by James Bennett

Attachment: 4245.diff added

Tutorial patch explaining how to fix permissions issue

comment:8 Changed 9 years ago by James Bennett

Has patch: set

I've attached a patch to the first part of the tutorial, since that's the place where people are most likely to trip up.

comment:9 Changed 9 years ago by James Bennett

Keywords: sprintsept14 added
Triage Stage: AcceptedReady for checkin

comment:10 Changed 9 years ago by Adrian Holovaty

Resolution: fixed
Status: reopenedclosed

(In [6224]) Fixed #4245 -- Added documentation about permission error on OS X. Thanks, jacob@… and ubernostrum and others

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