Looks like you're reasonably good to go - the default install location
changed from when I originally wrote the instructions (and I'm nowhere near
my Mac during the day - unfortunately).
Let me know if you run into any more trouble running it, and I'll see what I
can do to help.
-joe
On 2/24/07,
I've got /opt/local/bin in my ~/.bash_profile as per your instructions
(so far as I can tell):
PYTHONBIN=/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
bin
export PATH=/opt/local/bin:/opt/local/sbin:$PYTHONBIN:$PATH
benjamin-chaits-powerbook-g4-15:~ benjaminchait$ /usr/local/bin/py
Having "/opt/local/bin" in PATH environment variable before anything else
will accomplish #1.
#2 makes me think we don't have everything resolved for you yet.
If you invoke /usr/local/bin/python -V, I'm going to guess you're getting
Python 2.3 - which is not what you want when you run setup.py to
That did it, it's working great!
Two final questions:
1. How do I create a symbolic link so that typing "python" into the
Terminal will pull "/usr/local/bin/python"?
2. I was forced to do a /usr/local/bin/python setup.py install of
Django rather than install via SVN--should I bother setting up
The django that's currently installed is installed with the python 2.3, so
you'll need to redo that installation process (download, run sudo
python.setup install) again. After that, as long as the /opt... set is
earlier on the path, you won't have any trouble.
Do check to make sure that "/opt/loca
Okay, so here's my most recent Terminal output:
benjamin-chaits-powerbook-g4-15:~ benjaminchait$ /usr/local/bin/python
-V
Python 2.4.3
That's what we were looking for earlier ... the question now is how do
I either (a) move my Python install into the proper location or (b)
adjust settings approp
And the mystery becomes more intriguing ... a missing Python 2.4
install?
benjamin-chaits-powerbook-g4-15:~ benjaminchait$ ls -l /opt/local/bin
total 256
-r-xr-xr-x 1 root admin 48092 Feb 22 17:48 daemondo
-r-xr-xr-x 1 root admin 65403 Feb 22 17:48 port
lrwxr-xr-x 1 root admin 19 F
That's generally where I'd expected Python to land.
If you invoke "ls -l /opt/local/bin", what's the result?
On 2/23/07, Benjamin Chait <[EMAIL PROTECTED]> wrote:
>
>
> Hmm, that gave an error:
>
> benjamin-chaits-powerbook-g4-15:~ benjaminchait$ /opt/local/bin/python
> -V
> -bash: /opt/local/bin
Hmm, that gave an error:
benjamin-chaits-powerbook-g4-15:~ benjaminchait$ /opt/local/bin/python
-V
-bash: /opt/local/bin/python: No such file or directory
On Feb 23, 2:03 pm, "Joseph Heck" <[EMAIL PROTECTED]> wrote:
> If you enter the command "/opt/loca/bin/python -V" do you get Python
> 2.4.som
If you enter the command "/opt/loca/bin/python -V" do you get Python
2.4.something?
What's the result of "echo $PATH"? (it may be a path ordering issue)
On 2/23/07, Benjamin Chait <[EMAIL PROTECTED]> wrote:
>
>
> >From Terminal:
>
> benjamin-chaits-powerbook-g4-15:~ benjaminchait$ port installe
>From Terminal:
benjamin-chaits-powerbook-g4-15:~ benjaminchait$ port installed
The following ports are currently installed:
apr @1.2.8_0 (active)
apr-util @1.2.8_1 (active)
db44 @4.4.20_1+darwin_8 (active)
expat @2.0.0_1 (active)
gettext @0.16.1_0 (active)
libiconv @1.11_4+darwin_8 (
Let's find out what happened with the python install. Obviously, it's time
to redo those instructions a bit to make it easier to work out what went
wrong. :-)
What's the result of the command "port installed"? I'm hoping to see
python24 listed there, but I'm suspicious that it didn't get installed
I did add those lines, but it does look like that's what's causing a
problem.
>From your instructions
###
You'll want to add the following environment variables. Open or create
the file .bash_profile in your home directory and add the following
lines at the end of that file:
PYTHONBIN=/opt
Well, I wrote those instructions... :-)
>From the traceback, you don't seem to be using the Python 2.4 from
DarwinPorts/MacPorts (assuming you installed that). That is generally
because your PATH hasn't been updated on the command line.
You want to make sure you get the lines:
PYTHONBIN=/opt/loc
I followed the instructions at
http://www.rhonabwy.com/wp/2006/07/20/installing-django-on-macos-x-development-version/
on installing locally, and that all worked out.
However, when I get to the syncdb command in the first tutorial, it
gives an error.
Additionally, running the "python manage.py r
15 matches
Mail list logo