On Apr 3, 5:39 pm, David Henderson <[EMAIL PROTECTED]> wrote:
> Hello Graham:
>
> > Which is still the MacPorts Python.
>
> > Change the PATH environment variable in your user shell environment so
> > that you aren't looking in MacPorts bin directory, or this directory
> > if you added it explicitly.
>
> > When you run 'which python' you want it to find:
>
> >  /usr/bin/python
>
> > That should be a symlink to 'python2.5' in the same directory which
> > should in turn be a symlink to something like:
>>
> >  ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/
> > python
>
> OK, I found that MacPorts creates a local .bash_profile that prepends  
> the MacPorts path to the system path.  Removing this file reverted  
> back to the system path.  I also had to create by hand the symlink  
> from /usr/bin/python to /usr/bin/python2.5 as both pointed to  
> the ../../System/... location.

Sorry, put the /usr/bin/python symlink back how it was. I have been
explaining all this from memory without actual access to a Leopard
system. In Python 2.3 under Tiger they had python symlink to python2.3
in same directory. Under Leopard as you have found they don't do that
and instead symlink has same target as python2.5 rather than pointing
at python2.5 itself.

> Which python now gives:
>
> MiniMac:~ dnadave$ which python
> /usr/bin/python
>
> and here are the resolved addresses of the symlinks:
>
> MiniMac:~ dnadave$ ls -lh /usr/bin/python /usr/bin/python2.5
> lrwxr-xr-x  1 root  wheel    18B Apr  2 23:14 /usr/bin/python -> /usr/
> bin/python2.5

Except put that back now so it also says:

python -> ../../System/Library/Frameworks/Python.framework/Versions/
2.5/bin/python

> lrwxr-xr-x  1 root  wheel    75B Feb  6 08:37 /usr/bin/python2.5 -
>  > ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/
> python2.5
>
> > Standard OS Python is 2.5.1 so this confirms this is MacPorts Python.
>
> Here is the startup banner for python, now:
>
> MiniMac:~ dnadave$ python
> Python 2.5.1 (r251:54863, Feb  4 2008, 21:48:13)
> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>
> > Run:
>
> >  /usr/bin/python
>
> > or just 'python' after getting rid of MacPorts Python out of PATH and
> > try it again.
>
> Here is the output of the import of libsvn, now:
>
>  >>> import libsvn
>  >>> print libsvn.__file__
> /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/
> python/libsvn/__init__.pyc
>
> > This file should never need to be created by hand, it will be created
> > for you by the tools. I would delete that easy-install.pth file and
> > start with empty directory except for README file.
>
> OK, done.
>
> > Once you have /usr/bin/python being used rather than MacPorts, then
> > install Python packages for Genshi and Trac with it per their
> > respective instructions.
>
> > Then post again output from running:
>
> >  ls /Library/Python/2.5/site-packages/
>
> MiniMac:~ dnadave$ ls /Library/Python/2.5/site-packages/
> Genshi-0.4.4-py2.5.egg  README                  easy-install.pth
> Pygments-0.9-py2.5.egg  Trac-0.11b2-py2.5.egg
>
> and now, when I start trac with:
>
> MiniMac:~ dnadave$ tracd --port 8000 /Users/dnadave/Trac/R-Devel &
>
> I can access the trac page for the project I created.  Thanks a lot  
> for the help!
>
> Is there any chance we could write up some of this as a  
> troubleshooting page that edgewall would post on their site?  I do  
> think this would be helpful for others.

Well, all I have done is get you back to how you would have been
before you installed the MacPorts Python. I see so many problems
caused by people installing MacPorts Python, that for Leopard at
least, I'd rather just see people not use it unless they have a very
good reason and understand enough about Python installations that they
understand how things work and what the implications are of installing
it.

In other words, all the documentation might say is that if using
Leopard, there is no need to install MacPorts Python. :-)

Graham

> Thanks!!
>
> Dave H
> --
> David Henderson, Ph.D.
> Director of Community
> REvolution Computing
> 1100 Dexter Avenue North, Suite 250
> 206-577-4778 x3203
> [EMAIL PROTECTED]://www.revolution-computing.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to