Hey everybody, I'm trying to install Trac without root permissions on a linux server and I'm running into a python problem. I've never done any python programming before, so I could use a push here:
Failed to create environment. global name 'sqlite' is not defined. I've googled it, read the twelve posts about it in this group, and googled for "installing trac without root" and that has helped a lot and gotten me this far. From what I gather my problem is that when I run: ./trac-admin /home/ab/opt/trac/env initenv python can't find the pysqlite that I have installed in /home/ab/opt/ pysqlite-2.3.3. (/home/ab/opt/pysqlite-2.3.3/pysqlite2 contains the dbapi2.py file that all the posts say is important.) I have tried setting the PYTHONPATH and LD_LIBRARY_PATH environment variables to various things (/homе/ab/opt/pysqlite-2.3.3, /homе/ab/opt/ pysqlite-2.3.3/pysqlite2, etc), but to no avail. I also tried editing the trac-admin python script and adding in import lines pointing to my pysqlite libs so that it looks like: import ѕys ѕys.pаth.append('/homе/ab/opt/pysqlite-2.3.3') ѕys.pаth.append('/homе/ab/opt/pysqlite-2.3.3/pysqlite2') import pysqlite2 That didn't work either. It gives me an error from dbapi2.py barfing on: from pysqlite2._sqlite import * ImportError: No module named pysqlite2._sqlite But sqlite is installed in /home/ab/opt/sqlite. Maybe it can't find sqlite? When I do "/sbin/ldconfig -v | grep sqlite" it doesn't find it. So my question is how do I tell Python to look in /home/ab/opt/ pysqlite-2.3.3 so that it can find the sqlite module that it's complaining about? Do I need to set the PYTHONPATH or LD_LIBRARY_PATH vars to something? Should that work? Or am I missing something else? Thanks a bunch, -AB --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---