On Tue, June 12, 2007 20:14, Emmanuel Blot wrote: > >> Unsupported file format? The weird thing is, this server runs two >> different trac sites - the other is fine. > > This may come from a mismatch between the SQLite library you're using > and the SQLite database format. > > If you can read it w/ sqlite3, this means the DB is using v3, but the > Python bindings might still be using the previous version (v2) which > has a different and incompatible internal DB format. > > Search trac.edgewall.org for this message, you'll find some hints, as > well as in the MailingList archive. > RHEL4 is known to be a PITA when it comes about SQLite versions...
OK, I got it working, posting here for posterity. It still makes no sense that 1 out of 2 trac environments was confused while the other was fine. I went with http://trac.edgewall.org/wiki/PySqlite#DetermineactualSQLiteandPySqliteversion this and saw I had 1.1.7, which if you scroll up says it is OK. But, just to see if that was the problem, I went and got a new unofficial version ( http://download.fedora.redhat.com/pub/fedora/linux/extras/development/SRPMS/python-sqlite2-2.3.3-1.fc7.src.rpm ) and rebuilt it and installed it. Now I have two versions installed - the other RPM was python-sqlite (no '2'). Anyway, that got rid of the error "from pysqlite2 import dbapi2 as sqlite" as the wiki page noted. But still no luck (and the other environment was humming along fine). I ended up having to disable PHP's sqlite support in /etc/php.d/pdo_sqlite.ini which now gives me one line in httpd's error_log but I'll live with it. Thanks for the pointers! - Aaron -- Sent using a web interface, so I am sending this instead of working. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
