Edgewall Software

Ticket #1589 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Failed initialization of trac enviroment

Reported by: MaxDao Owned by: daniel
Priority: normal Milestone:
Component: admin/console Version: 0.8.1
Severity: normal Keywords:
Cc:

Description

Creating and Initializing Project Failed to create environment. 'module' object has no attribute 'connect' Failed to initialize database. 1

Attachments

Change History

Changed 3 years ago by cmlenz

Are you really using 0.8.1? Do you have SQLite and PySQLite installed? What versions?

Changed 3 years ago by patria

Be sure to use PySQLite 1.1.6 instead of 2.0.2. I got the same error when I installed 2.0.2 and found that 1.1.6 is required.

Changed 3 years ago by MaxDao

i'm using sqlite 3.2.1 and both pysqlite 2.0.2 and sqlite 1.1.6, first i'v installed pysqlite 2.0.2 and found that all code of trac is depends on sqlite (not pysqlite module name), then i'v installed 1.1.6 but, error is the same,

sys info

OS: FC3

python: 2.3 from rpm sqlite 3.2.1 built from sources sqlite 1.1.6 built & installed too

any ideas ? PS sorry for my english

Changed 3 years ago by MaxDao

  • status changed from new to closed
  • resolution set to fixed

thx all, manipulations with sys.path helped, can close ticket

Changed 3 years ago by MaxDao

thx all, manipulations with sys.path helped, can close ticket

Changed 3 years ago by anonymous

I'm having the same problem -- what exact modifications worked for you?

Changed 3 years ago by cshenton

I installed sqlite-3.2.2 with pysqlite-2.0.3 and got this same error; it installed as .../python2.3/site-packages/pysqlite2 which I had to symlink as "sqlite" to get trac-admin to import it, but then it failed as above. Removing that and installing pysqlite-1.1.6 worked fine, installing as "sqlite" so no symlink nonsense was needed, and the error was cured. This occurred in trac-0.8.2 and 0.8.4.

Add/Change #1589 (Failed initialization of trac enviroment)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.