Code

Opened 7 years ago

Closed 7 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 ubernostrum 7 years ago.
Tutorial patch explaining how to fix permissions issue

Download all attachments as: .zip

Change History (11)

comment:1 follow-up: Changed 7 years ago by Simon G. <dev@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed
  • Summary changed from Permissions on OS X to django-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 ; follow-up: Changed 7 years ago by paul@…

  • Keywords install project create startproject added
  • Resolution invalid deleted
  • Status changed from closed to reopened
  • Version changed from SVN to 0.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 ; follow-up: Changed 7 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 7 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 7 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 7 years ago by Aparraddy

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

comment:7 Changed 7 years ago by SmileyChris

  • Cc Jbeil removed
  • Keywords install project create startproject added; MESSAGE removed
  • Summary changed from django-admin returns &#34;permission denied&#34; with start-project on OSX to add documentation solving "permission denied" with start-project on OSX
  • Triage Stage changed from Unreviewed to Accepted
  • Version 0.96 deleted

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

Changed 7 years ago by ubernostrum

Tutorial patch explaining how to fix permissions issue

comment:8 Changed 7 years ago by ubernostrum

  • 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 7 years ago by ubernostrum

  • Keywords sprintsept14 added
  • Triage Stage changed from Accepted to Ready for checkin

comment:10 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from reopened to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.