On Apr 3, 3:35 pm, David Henderson <[EMAIL PROTECTED]> wrote: > Hello Graham: > > > To be quite blunt, all you have really said at this point about your > > problem that was anywhere close to useful was: > > .... > > So, for anyone here to be able to help you, you are going to have to > > be much more forthcoming with information about exactly how things are > > setup rather than just winging and expecting us to look into our > > crystal balls and work out what you have done. > > Many thanks for taking the time to provide a thoughtful response. I > agree that I haven't supplied a lot of information, but some of that > is due to not knowing what you would need. Why is there no > troubleshooting FAQ? Something like: "If you see this, check this"? > Such a page would be terribly helpful. Also, posting guide, such as > the one from the R project (they tell you to supply the result of the > R command session.info() and what OS you are running) would be most > helpful. > > I have tried running any diagnostics supplied on the edgewall install > guide pages, which appear to be quite minimal. > > > That all said, maybe come back with answers to the following > > questions. Don't skip anything with the assumption it isn't relevant. > > Will do! > > > 1. What do you get when you run: > > > which python > > MiniMac:~ dnadave$ which python > /Library/Frameworks/Python.framework/Versions/Current/bin/python
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 > > 2. Run that Python interpreter. What do you get when you enter: > > > import sys > > print sys.prefix > > MiniMac:~ dnadave$ python > Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) Standard OS Python is 2.5.1 so this confirms this is MacPorts Python. > [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import sys > >>> print sys.prefix > /Library/Frameworks/Python.framework/Versions/2.5 > > > 3. In that interpreter, what do you get if you run: > > > import libsvn > > print libsvn.__file__ > > OK, I do get an error here: > > >>> import libsvn > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named libsvn Run: /usr/bin/python or just 'python' after getting rid of MacPorts Python out of PATH and try it again. > > 5. What do you get for output when you run from shell: > > > ls /Library/Python/2.5/site-packages > > MiniMac:~ dnadave$ ls /Library/Python/2.5/site-packages/ > README easy-install.pth > > and easy-install.pth was a file I created from a suggestion by another > poster on this list. Its contents are: > > MiniMac:~ dnadave$ cat /Library/Python/2.5/site-packages/easy- > install.pth > import sys; sys.__plen = len(sys.path) > ./Genshi-0.4.4-py2.5.egg > import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; > p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = > p+len(new) 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. 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/ Graham --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
