Check that you do not have two releases of Python installed. For example, tracd would use Python libraries from /opt/trac/... whereas the trac.cgi would use another path (such as /usr/lib/python ...)
On 2/17/06, Brett Neumeier <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to get trac 0.9.4 working as a CGI through Apache. > > I've gotten it all working fine through the standalone tracd, so I am > quite certain that my environment really does have a working pysqlite > (2.1.3). > > When I access trac.cgi as a CGI, I get "Oops... Trac detected an > internal error:" followed by the stack trace below. Any ideas? > > Cheers, > > bn > > > ----cut---- > Traceback (most recent call last): > File "/opt/trac/usr/share/trac/cgi-bin/trac.cgi", line 20, in ? > cgi_frontend.run() > File "/opt/trac/usr/lib/python2.4/site-packages/trac/web/cgi_frontend.py", > line 123, in run > env = get_environment(req, os.environ, threaded=False) > File "/opt/trac/usr/lib/python2.4/site-packages/trac/web/main.py", line > 335, in get_environment > return _open_environment(env_path, threaded) > File "/opt/trac/usr/lib/python2.4/site-packages/trac/web/main.py", line 44, > in _open_environment > return open_environment(env_path) > File "/opt/trac/usr/lib/python2.4/site-packages/trac/env.py", line 375, in > open_environment > if env.needs_upgrade(): > File "/opt/trac/usr/lib/python2.4/site-packages/trac/env.py", line 279, in > needs_upgrade > db = self.get_db_cnx() > File "/opt/trac/usr/lib/python2.4/site-packages/trac/env.py", line 137, in > get_db_cnx > return self.__cnx_pool.get_cnx() > File "/opt/trac/usr/lib/python2.4/site-packages/trac/db.py", line 157, in > get_cnx > cnx = self._cnx_class(**self._args) > File "/opt/trac/usr/lib/python2.4/site-packages/trac/db.py", line 256, in > __init__ > assert have_pysqlite > 0 > AssertionError > ----cut---- > > > -- > Brett Neumeier <[EMAIL PROTECTED]> > > _______________________________________________ > Trac mailing list > [email protected] > http://lists.edgewall.com/mailman/listinfo/trac > -- Manu _______________________________________________ Trac mailing list [email protected] http://lists.edgewall.com/mailman/listinfo/trac
