#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 , 19 years ago
comment:2 by , 19 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 , 19 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 , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
thx all, manipulations with sys.path helped, can close ticket
comment:7 by , 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.
Are you really using 0.8.1? Do you have SQLite and PySQLite installed? What versions?