[Trac] 0.8.4 trac-admin: failed to create environment. 'module'object has no attribute 'connect'

Frazier, Stephen frazier at ugs.com
Mon Jun 20 15:01:45 CDT 2005


You need to install pysqlite 1.1.6. The manipulation of the sys.path was
probably so it would not pick up the pysqlite2 install before 1.1.6. It
would be best to remove the 2.x installation entirely so you won't need
to do that.

-----Original Message-----
From: trac-bounces at lists.edgewall.com
[mailto:trac-bounces at lists.edgewall.com] On Behalf Of Chris Shenton
Sent: Monday, June 20, 2005 3:51 PM
To: trac at lists.edgewall.com
Subject: [Trac] 0.8.4 trac-admin: failed to create environment.
'module'object has no attribute 'connect'

I'm using the following revs:

  trac-0.8.4
  subversion-1.2.0
  psqlite-2.0.3
  python-2.3.5
  sqlite-3.2.2
  swig-1.3.25

In /usr/local/lib/python2.3/site-packages I had to symlink
sqlite -> pysqlite2 to get it to find the import.

But the trac-admin command fails:

  root at osiris<627> trac-admin /data1/trac3 initenv

  Project Name [My Project]> KrashMe

  Path to repository [/var/svn/test]> /data1/svn/enterprise

  Templates directory [/usr/local/share/trac/templates]> 

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


I found someone else who appeared to have the same problem, which he
said was fixed with some sys.path manipulation but didn't say what
that was.

  http://projects.edgewall.com/trac/ticket/1589
  
He said the backing down the version of pysqlite from 2.0.2 to 1.1.6
did not help.

Any thoughts?  Thanks.
_______________________________________________
Trac mailing list
Trac at lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac




More information about the Trac mailing list