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. 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 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. Thanks!! Dave H -- David Henderson, Ph.D. Director of Community REvolution Computing 1100 Dexter Avenue North, Suite 250 206-577-4778 x3203 [EMAIL PROTECTED] http://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 -~----------~----~----~----~------~----~------~--~---
