Cannot load Python bindings for SQLite

316 views
Skip to first unread message

alexus

unread,
Jul 27, 2010, 5:07:25 PM7/27/10
to trac-...@googlegroups.com
i did following steps to install setuptools + trac

85 wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg#md5=bd639f9b0eac4c42497034dec2ec0c2b
86 sh setuptools-0.6c11-py2.4.egg
87 easy_install Trac

now i'm trying to create new env and i'm running into problem, can
someone help me?

[root@pvrep01 dc]# trac-admin . initenv
Creating a new Trac environment at /var/www/html/trac/dc

Trac will first ask a few questions about your environment
in order to initialize and prepare the project database.

Please enter the name of your project.
This name will be used in page titles and descriptions.

Project Name [My Project]>

Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).

Database connection string [sqlite:db/trac.db]>

Creating and Initializing Project
Initenv for '/var/www/html/trac/dc' failed.
Failed to create environment.
Cannot load Python bindings for SQLite
Traceback (most recent call last):
File "build/bdist.linux-i686/egg/trac/admin/console.py", line 413,
in do_initenv
File "build/bdist.linux-i686/egg/trac/env.py", line 221, in __init__
File "build/bdist.linux-i686/egg/trac/env.py", line 409, in create
File "build/bdist.linux-i686/egg/trac/db/api.py", line 145, in init_db
File "build/bdist.linux-i686/egg/trac/db/api.py", line 195, in get_connector
TracError: Cannot load Python bindings for SQLite
Initenv for '/var/www/html/trac/dc' failed.
1
Traceback (most recent call last):
File "build/bdist.linux-i686/egg/trac/admin/console.py", line 418,
in do_initenv
SystemExit: 1
[root@pvrep01 dc]#

[root@pvrep01 dc]# rpm -q sqlite
sqlite-3.3.6-5
[root@pvrep01 dc]# rpm -q python-sqlite
python-sqlite-1.1.7-1.2.1
[root@pvrep01 dc]#


any ideas?
thanks!
--
http://alexus.org/

Mike Hanby

unread,
Jul 28, 2010, 10:17:50 AM7/28/10
to trac-...@googlegroups.com
From the TracInstall wiki page for 0.12:

SQLite 2.x is no longer supported. For SQLite 3.x, the pysqlite 1.1.x bindings are also no longer supported, use pysqlite 2.x.

It looks like your python-sqlite bindings are not new enough.

Project Name [My Project]>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

alexus

unread,
Jul 29, 2010, 3:59:05 PM7/29/10
to trac-...@googlegroups.com
i just installed it with rpm

--
http://alexus.org/

Reply all
Reply to author
Forward
0 new messages