On Jun 28, 11:55 am, Eric Anderson <[EMAIL PROTECTED]> wrote: > Not sure if this is the right place to post a installation question so > please tell me where to post if this is the wrong place. > > I am trying to install the latest stable version of Trac on my shared > hosting environment (Site5 to be specific). My basic steps were: > > 1. Download Trac > 2. Run the install with the --prefix option to install in a directory > I can manage > 3. Download ClearSilver > 4. Install with the --prefix option to install where I desire > 5. Create a Trac environment for my project > > ... > > 3. Added the following to start of trac.cgi so the environment > variables are set right: > > ###################### > import os > os.environ['LD_LIBRARY_PATH'] = "/home/pix/lib/clearsilver/lib" > os.environ['PYTHONPATH'] = "/home/pix/apps/trac/lib/python2.4/site- > packages:/home/pix/lib/clearsilver/lib:/usr/lib/python2.3/site- > packages"
Don't set PYTHONPATH like that as it is too late by then. Instead use: import sys sys.path.insert(0, "/home/pix/lib/clearsilver/lib") That you are inserting site-packages directories for two different Python versions looks very bad. 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 -~----------~----~----~----~------~----~------~--~---
