Yup that was it

Thanks
Riley

On Mar 24, 7:12 am, Paulo Almeida <igcbioinformat...@gmail.com> wrote:
> Ok, that makes more sense. You probably can't import django from anywhere
> else because the django folder cannot be read. Try going to
> /Library/Python/2.6/site-packages and type 'ls -l' to see the permissions. I
> presume you don't have e(x)ecute permission in the django folder. These
> commands might do the trick:
>
> cd /Library/Python/2.6/site-packages
> sudo chmod 0755 django
>
> Now you should be able to cd into django and maybe import it from anywhere.
>
> I'm not sure the chmod command has the same syntax in OS X, but what you
> need to do is have execute permission in all the directories of the django
> folder and read permission in all the files within (if it's a symlink those
> permissions are set in the target folder, but it seems those are alright).
>
> - Paulo
>
> On Wed, Mar 24, 2010 at 1:18 AM, Riley <riley.sie...@gmail.com> wrote:
> > No when I run the shell in the directory where django lives I can
> > import.  I untared django into a sub-directory of the desktop and
> > installed it there because I'm just starting and I feel like when I
> > figure it out I'm going to want to start from scratch.
>
> > Ya it is really weird, it just silently fails and leaves me in the
> > current directory even with sudo
>
> > On Mar 23, 7:53 pm, Paulo Almeida <igcbioinformat...@gmail.com> wrote:
> > > Just to clarify: if you run a python shell in
> > > /Library/Python/2.6/site-packages you can import django, but if you run
> > > anywhere else you can't?
>
> > > It seems weird that you can't cd into django's directory.
>
> > > - Paulo
>
> > > On Tue, Mar 23, 2010 at 9:13 PM, Riley <riley.sie...@gmail.com> wrote:
> > > > Hey all,
>
> > > > I've done some extensive searching around this site, but no one's
> > > > advice seems to apply/fix the problem :(
>
> > > > Basically, I have python 2.6 and 2.5 installed on my mac (snow
> > > > leopard).  I installed django from a tarball, using 'sudo python
> > > > setup.py install'.  I'm pretty sure that this uses python2.6 b/c when
> > > > I run the command python -V it tells me 2.6.1.
>
> > > > I can 'import django' from a python shell inside the directory where
> > > > django is installed, but not anywhere else.  When I print sys.path, I
> > > > see that /Library/Python/2.6/site-packages is listed as part of the
> > > > path, and when I go to that directory to check I see both a
> > > > Django**.egg file and a django directory.  (Interestingly enough,
> > > > however, I am unable to 'cd' into this directory, even with sudo).
>
> > > > It seems as though the error is simply in python's path, but I can't
> > > > find it anywhere.
>
> > > > Thanks in advance,
> > > > Riley
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Django users" group.
> > > > To post to this group, send email to django-us...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> > <django-users%2bunsubscr...@googlegroups.com<django-users%252bunsubscr...@googlegroups.com>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/django-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to