Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8452 closed defect (invalid)

Pysqlite bindings on RHE5

Reported by: ladhami@… Owned by:
Priority: normal Milestone:
Component: database backend Version: 0.11.3
Severity: normal Keywords: pysqlite
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Hello, There does not seem to be a way to get TRAC and python to agree on using the same sqlite version. This is a brand new RHE5 machine, with only subversion upgraded on it. TRAC creates everything using sqlite3, while the python bindings will always use pysqlite1.x with TRAC, even after pysqlite2 is installed. (I confirmed all this following the troubleshouting instructions to give the exact version: sqlite3.3.6, sqlite.version-1.1.7, sqlite._sqlite.sqlite_version()=3.3.6, and for the backend test.sqlite.version=2.2.3).

Should there not be a way of forcing either TRAC of the bindings (not sure if this is mod_python or what) to sync on the same version of pysqlite?

Thanks

Attachments (0)

Change History (1)

in reply to:  description comment:1 by anonymous, 15 years ago

Resolution: invalid
Status: newclosed

Replying to ladhami@…:

There does not seem to be a way to get TRAC and python to agree on using the same sqlite version.

Trac only uses pysqlite module to access the SQLite database, so it cannot be otherwise. However, several versions of pysqlite may be installed on the same machine.
Trac does not use sqlite nor sqlite3 command line tool.

This is a brand new RHE5 machine, with only subversion upgraded on it.

RedHat is/has been known to provide a version of the sqlite command line tool which is not compatible with the provided pysqlite Python module ;-)
You may want to search the Trac DB or the MailingList archive to find the relevant thread.

TRAC creates everything using sqlite3,

Not actually true. Trac creates everything using pysqlite bindings. It should be pysqlite2 with a recent version of Trac, that is using a SQLite DB format which is compatible with sqlite3 but not with sqlite command line tool.

while the python bindings will always use pysqlite1.x with TRAC, even after pysqlite2 is installed.

It depends on how/where the modules are installed, and the current PYTHONPATH variable, among others settings. Maybe the default Trac package that comes with Red Hat is buggy, though?

This is an InstallationIssue. You may want to post to the MailingList to find help with Red Hat

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.