All:
I've been trying to bring up trac (svn trunk) on my SuSE Linux Enterprise
Server 9, and I'm having difficulty. Even though I've installed sqlite and
pysqlite, it cannot find 'sqlite'. When I try to create a new trac
database, it outputs the following:
---------
Traceback (most recent call last):
File "/usr/lib64/python2.3/site-packages/trac/scripts/admin.py", line
614, in do_initenv
options=options)
File "/usr/lib64/python2.3/site-packages/trac/env.py", line 124, in
__init__
self.create(options)
File "/usr/lib64/python2.3/site-packages/trac/env.py", line 228, in
create
DatabaseManager(self).init_db()
File "/usr/lib64/python2.3/site-packages/trac/db/api.py", line 65, in
init_db
connector.init_db(**args)
File "/usr/lib64/python2.3/site-packages/trac/db/sqlite_backend.py",
line 115, in init_db
cnx = sqlite.connect(path, timeout=int(params.get('timeout', 10000)))
NameError: global name 'sqlite' is not defined
Traceback (most recent call last):
File "/usr/lib64/python2.3/site-packages/trac/scripts/admin.py", line
618, in do_initenv
sys.exit(1)
SystemExit: 1
---------
Note that I am able to find pysqlite2 from python (following the pysqlite
wiki's recommendations):
$ python
>>> import pysqlite2
>>> from pysqlite2 import dbapi2 as sqlite
Does anyone have any ideas what could be going wrong for me?
Thanks in advance for any help.
David Van Maren
----------------------------------------------
NOTE:
What I've Installed:
Some of Trac's requirements are installable from RPMS, and I've done that
(per http://trac.edgewall.org/wiki/TracOnSLES9).
I've already built and installed subversion-1.3.2 and its python bindings
(swig-py). I get warnings from libtool on both of them, but I ran the 'make
check' and its whole test suite ran with no problems, and it seems to run
fine so far. I have not yet brought up any server processes for subversion,
FWIW.
Then, I've installed SQLite 3.3.6, building from source, with
--enable-threadsafe, per http://trac.edgewall.org/wiki/PySqlite.
Then, I've installed pysqlite-2.3.2 (I also tried pysqlite-2.2.2, with no
difference).
I also installed (from source) clearsilver-0.10.3, and it seems to be
installed properly.
_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac