List Info

Thread: EXPORT PATH in Leopard




EXPORT PATH in Leopard
user name
2007-12-27 22:53:08
Hi,

I am using Leopard currently and am getting started with
Django. I
have used it previously on Tiger and have been able to
install and
work with it no problem.

How do I set the path, so that when I type in python
django-admin.py
startproject mysite, I don't have to type in python
/Library/Python/
2.5/site-packages/django/bin/django-admin.py startproject
mysite.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: EXPORT PATH in Leopard
user name
2007-12-28 20:24:56
I have a bin directory in my home folder.  In that, I
created a link
for django-admin.py pointing to
/opt/django-source/django/bin/django-
admin.py.

My $HOME/bin is in my path.

On Dec 27, 11:53 pm, mOne <we...maliinteractive.com>
wrote:
> Hi,
>
> I am using Leopard currently and am getting started
with Django. I
> have used it previously on Tiger and have been able to
install and
> work with it no problem.
>
> How do I set the path, so that when I type in python
django-admin.py
> startproject mysite, I don't have to type in python
/Library/Python/
> 2.5/site-packages/django/bin/django-admin.py
startproject mysite.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: EXPORT PATH in Leopard
user name
2007-12-28 22:15:55
OK. How do I set this up on my machine. I am running Leopard
and I am
using the following as my path, but it does not seem to be
working.
How can I tell if I my path is correct.


This is the error that I keep getting:

Macintosh:~ tk$ python django-admin.py startproject
appersers
/System/Library/Frameworks/Python.framework/Versions/2.5/Res
ources/
Python.app/Contents/MacOS/Python: can't open file
'django-admin.py':
[Errno 2] No such file or directory
Macintosh:~ tk$



Please help

On Dec 28, 9:24 pm, jeffself <jeff.s...gmail.com> wrote:
> I have a bin directory in my home folder.  In that, I
created a link
> for django-admin.py pointing to
/opt/django-source/django/bin/django-
> admin.py.
>
> My $HOME/bin is in my path.
>
> On Dec 27, 11:53 pm, mOne <we...maliinteractive.com> wrote:
>
> > Hi,
>
> > I am using Leopard currently and am getting
started with Django. I
> > have used it previously on Tiger and have been
able to install and
> > work with it no problem.
>
> > How do I set the path, so that when I type in
python django-admin.py
> > startproject mysite, I don't have to type in
python /Library/Python/
> > 2.5/site-packages/django/bin/django-admin.py
startproject mysite.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: EXPORT PATH in Leopard
user name
2007-12-29 00:04:06
On Dec 28, 8:15 pm, mOne <we...maliinteractive.com>
wrote:
> OK. How do I set this up on my machine. I am running
Leopard and I am
> using the following as my path, but it does not seem to
be working.
> How can I tell if I my path is correct.
>
> This is the error that I keep getting:
>
> Macintosh:~ tk$ python django-admin.py startproject
appersers
>
/System/Library/Frameworks/Python.framework/Versions/2.5/Res
ources/
> Python.app/Contents/MacOS/Python: can't open file
'django-admin.py':
> [Errno 2] No such file or directory
> Macintosh:~ tk$
>
> Please help

That's very weird, it looks like it doesn't know how to find
the
python executable. If you type:
which python
at the prompt, you should get /usr/bin/python, and that
should be a
symlink pointing to:
/Library/Frameworks/Python.framework/Versions/2.5/bin/python

which in turn should be a symlink pointing to python2.5 in
the same
directory. Is all that the case? And what happens when you
run the
python interpreter in Terminal?

Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: EXPORT PATH in Leopard
user name
2007-12-30 22:48:41
Hey Eric,

When I type in which python I get /usr/bin/python. That
seems to work.
When I type in Macintosh:~ tk$ python django-admin.py
startproject tkt
I get the same error. I have tried to export the path anme
to no
avail. See error below:

/System/Library/Frameworks/Python.framework/Versions/2.5/Res
ources/
Python.app/Contents/MacOS/Python: can't open file
'django-admin.py':
[Errno 2] No such file or directory



This is the path I am using :

Macintosh:~ tk$ export
PATH=$PATH:/Library/Frameworks/Python.framework/
Versions/2.5/lib/python2.5/site-packages/django/bin


Is that correct. It worked on my Mac with Tiger installed no
problem.



On Dec 29, 1:04 am, Eric Abrahamsen <gir...gmail.com> wrote:
> On Dec 28, 8:15 pm, mOne <we...maliinteractive.com> wrote:
>
> > OK. How do I set this up on my machine. I am
running Leopard and I am
> > using the following as my path, but it does not
seem to be working.
> > How can I tell if I my path is correct.
>
> > This is the error that I keep getting:
>
> > Macintosh:~ tk$ python django-admin.py
startproject appersers
> >
/System/Library/Frameworks/Python.framework/Versions/2.5/Res
ources/
> > Python.app/Contents/MacOS/Python: can't open file
'django-admin.py':
> > [Errno 2] No such file or directory
> > Macintosh:~ tk$
>
> > Please help
>
> That's very weird, it looks like it doesn't know how to
find the
> python executable. If you type:
> which python
> at the prompt, you should get /usr/bin/python, and that
should be a
> symlink pointing to:
>
/Library/Frameworks/Python.framework/Versions/2.5/bin/python

> which in turn should be a symlink pointing to python2.5
in the same
> directory. Is all that the case? And what happens when
you run the
> python interpreter in Terminal?
>
> Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: EXPORT PATH in Leopard
user name
2007-12-30 23:13:44
I see the problem. I have three paths, two are pointing to
the wrong
directory. Does anyone know how to remove a path?

On Dec 30, 11:48 pm, mOne <we...maliinteractive.com>
wrote:
> Hey Eric,
>
> When I type in which python I get /usr/bin/python. That
seems to work.
> When I type in Macintosh:~ tk$ python django-admin.py
startproject tkt
> I get the same error. I have tried to export the path
anme to no
> avail. See error below:
>
>
/System/Library/Frameworks/Python.framework/Versions/2.5/Res
ources/
> Python.app/Contents/MacOS/Python: can't open file
'django-admin.py':
> [Errno 2] No such file or directory
>
> This is the path I am using :
>
> Macintosh:~ tk$ export
PATH=$PATH:/Library/Frameworks/Python.framework/
> Versions/2.5/lib/python2.5/site-packages/django/bin
>
> Is that correct. It worked on my Mac with Tiger
installed no problem.
>
> On Dec 29, 1:04 am, Eric Abrahamsen <gir...gmail.com> wrote:
>
> > On Dec 28, 8:15 pm, mOne <we...maliinteractive.com> wrote:
>
> > > OK. How do I set this up on my machine. I am
running Leopard and I am
> > > using the following as my path, but it does
not seem to be working.
> > > How can I tell if I my path is correct.
>
> > > This is the error that I keep getting:
>
> > > Macintosh:~ tk$ python django-admin.py
startproject appersers
> > >
/System/Library/Frameworks/Python.framework/Versions/2.5/Res
ources/
> > > Python.app/Contents/MacOS/Python: can't open
file 'django-admin.py':
> > > [Errno 2] No such file or directory
> > > Macintosh:~ tk$
>
> > > Please help
>
> > That's very weird, it looks like it doesn't know
how to find the
> > python executable. If you type:
> > which python
> > at the prompt, you should get /usr/bin/python, and
that should be a
> > symlink pointing to:
> >
/Library/Frameworks/Python.framework/Versions/2.5/bin/python

> > which in turn should be a symlink pointing to
python2.5 in the same
> > directory. Is all that the case? And what happens
when you run the
> > python interpreter in Terminal?
>
> > Eric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )