Opened 18 years ago
Closed 17 years ago
#4245 closed (fixed)
add documentation solving "permission denied" with start-project on OSX
Reported by: | 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)
Change History (11)
follow-up: 2 comment:1 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Summary: | Permissions on OS X → django-admin returns "permission denied" with start-project on OSX |
follow-up: 3 comment:2 by , 17 years ago
Keywords: | install project create startproject added |
---|---|
Resolution: | invalid |
Status: | closed → reopened |
Version: | SVN → 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:
- Download Django 0.96 (http://www.djangoproject.com/download/0.96/tarball/) into /Users/pauldwaite/Desktop/
- {{{
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
follow-up: 5 comment:3 by , 17 years ago
Sorry, I should have previewed. Step 2 above should have looked like this:
- Run these commands:
cd ~/Desktop tar xzvf Django-0.96.tar.gz cd Django-0.96 sudo python setup.py install
comment:4 by , 17 years ago
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 by , 17 years ago
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 by , 17 years ago
Cc: | added |
---|---|
Keywords: | MESSAGE added; install project create startproject removed |
Summary: | django-admin returns "permission denied" with start-project on OSX → django-admin returns "permission denied" with start-project on OSX |
Everybody likes sex!
A lot of local girls need sex right <a href=http://adultfriendfinderpersonalsfreeonli.blogspot.com/>here</a>
http://adultfriendfinderpersonalsfreeonli.blogspot.com/
comment:7 by , 17 years ago
Cc: | removed |
---|---|
Keywords: | install project create startproject added; MESSAGE removed |
Summary: | django-admin returns "permission denied" with start-project on OSX → add documentation solving "permission denied" with start-project on OSX |
Triage Stage: | Unreviewed → Accepted |
Version: | 0.96 |
I'm not sure it's necessary but I guess if it helps someone during install...
by , 17 years ago
Tutorial patch explaining how to fix permissions issue
comment:8 by , 17 years ago
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 by , 17 years ago
Keywords: | sprintsept14 added |
---|---|
Triage Stage: | Accepted → Ready for checkin |
comment:10 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
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.