Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#1589 closed defect (fixed)

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: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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

Attachments (0)

Change History (7)

comment:1 by Christopher Lenz, 20 years ago

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

comment:2 by patria, 20 years ago

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.

comment:3 by MaxDao, 20 years ago

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

comment:4 by MaxDao, 20 years ago

Resolution: fixed
Status: newclosed

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

comment:5 by MaxDao, 20 years ago

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

comment:6 by anonymous, 19 years ago

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

comment:7 by cshenton, 19 years ago

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel 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.