> TracError: Unsupported database type "sqlite" I also meet with the same trouble with Trac-0.12-dev. But latter I found it is not SQLite but Genshi cause the trouble, at least for my case.
Trac-0.12-dev depends on Genshi>=0.6dev-r960. So I build a debian package from Genshi svn trunk, and installed it: dpkg -i python-genshi_0.6dev-r999_amd64.deb Genshi is installed in /usr/share/python-support/python-genshi/..., and make a symbol link to /usr/lib/python2.5/site-packages/genshi. Trac-0.12 works fine when run in tracd standalone, but under apache cgi, failed with TracError: Unsupported database type "sqlite". Later I found, in /usr/lib/python2.5/site-packages/, there is another Genshi 0.5 eggs which I installed before using easy_install. Delete the Genshi 0.5 eggs in /usr/lib/python2.5/site-packages/ and remove the record in /usr/lib/python2.5/site-packages/easy- install.pth, Trac-0.12 cgi works fine. -- Jiang Xin Email: worldhello.net AT gmail DOT com Web: http://www.ossxp.com/ On Jan 2, 11:54 pm, jaxiinofea <jaxiino...@gmail.com> wrote: > I have follow the Installation Guide to install trac, create > environment and run tracd to serve my test project! > > Then I try to configuare apache to talk to trac, follow the wiki > [Installing Trac as CGI]. But i always got aerror: > > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > web/api.py", line 367, in send_error > 'text/html') > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > web/chrome.py", line 688, in render_template > data = self.populate_data(req, data) > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > web/chrome.py", line 604, in populate_data > 'EMAIL_VIEW' in req.perm) > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > perm.py", line 523, in has_permission > return self._has_permission(action, resource) > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > perm.py", line 537, in _has_permission > check_permission(action, perm.username, resource, perm) > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > perm.py", line 424, in check_permission > perm) > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > perm.py", line 282, in check_permission > get_user_permissions(username) > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > perm.py", line 357, in get_user_permissions > for perm in self.store.get_user_permissions(username): > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > perm.py", line 173, in get_user_permissions > db = self.env.get_db_cnx() > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > env.py", line 264, in get_db_cnx > return DatabaseManager(self).get_connection() > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > db/api.py", line 74, in get_connection > connector, args = self._get_connector() > File "/usr/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/ > db/api.py", line 99, in _get_connector > raise TracError('Unsupported database type "%s"' % scheme) > TracError: Unsupported database type "sqlite" > > I read wiki PySqlite and Troubleshootin. Try to determine actualSQLiteand > PySqlite version, I got:>>> import trac.db.sqlite_backend as test > >>> test._ver > (3, 5, 9) > >>> test.have_pysqlite > 2 > >>> test.sqlite.version > > '2.4.1' > > I am still have no idea about theerror. Can anyone gave me some > clue? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---