Christian Boos wrote: > Matthew Gillen wrote: >> ... >> >> You can get the "old" version that (correctly) links against pysqlite3 here: >> ftp://download.fedora.redhat.com/pub/fedora/linux/extras/6/i386/trac-0.10.3-1.fc6.noarch.rpm >> > > I don't know the rationale behind the naming but pysqlite3 is a rather > poor choice. > This actually seems to be pysqlite 1.1.6, which works with SQLite 3 but > not the more recents (1.1.7 would be needed for that). The pysqlite > 1.1.x releases were interim release so that the old pysqlite 1.x > bindings designed for SQLite 2.x could work with SQLite 3.x. > >> I don't know when a new one will be posted, but you can tell if it's still >> broken by checking whether it tries to install python-sqlite2 along with >> trac. >> > > It's actually better to use pysqlite2, and the latest version of that > package should be 2.3.3. It's compatible with all versions of SQLite 3. > pysqlite2 version 2.3.2 was actually shipped with Python 2.5 (available > as module sqlite3).
Hmmm. I see what you're talking about, and now I'm confused. What I do know is that the trac package that required python-sqlite2 had trouble reading my existing databases. I see your point that the "2" version should actually be compatible with sqlite3-based databases. Unfortunately, I don't know enough about the python bindings to say why things were broken. Here's the error log from apache, if that helps: -------------------------------- PythonHandler trac.web.modpython_frontend: Traceback (most recent call last): PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n result = object(req) PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 87, in handler\n gateway.run(dispatch_request) PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/web/wsgi.py", line 87, in run\n response = application(self.environ, self._start_response) PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 377, in dispatch_request\n env = _open_environment(env_path, run_once=run_once) PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 58, in _open_environment\n env_cache[env_path] = open_environment(env_path) PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/env.py", line 435, in open_environment\n if env.needs_upgrade(): PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/env.py", line 313, in needs_upgrade\n db = self.get_db_cnx() PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/env.py", line 182, in get_db_cnx\n return DatabaseManager(self).get_connection() PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 75, in get_connection\n return self._cnx_pool.get_cnx(self.timeout or None) PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/db/pool.py", line 101, in get_cnx\n cnx = self._connector.get_connection(**self._kwargs) PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 113, in get_connection\n return SQLiteConnection(path, params) PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.4/site-packages/trac/db/sqlite_backend.py", line 160, in __init__\n timeout=timeout) PythonHandler trac.web.modpython_frontend: SystemError: NULL result without error in PyObject_Call -------------------------------- > So I don't see what's wrong with the 0.10.3.1 rpm now requiring > python-sqlite2 (which seems to be pysqlite2 version 2.3.2). Well, if it could read my sqlite3 databases, I wouldn't have a problem :-) Incidentally, I tried doing a 'trac-admin <env> upgrade' to see if that would fix my db problems, but it did not. Matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
