LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need help in setting up mod_python in apache (https://www.linuxquestions.org/questions/linux-software-2/need-help-in-setting-up-mod_python-in-apache-536379/)

yinglcs2 03-10-2007 05:31 PM

Need help in setting up mod_python in apache
 
Hi,

I am trying to setup Apache with Trac which uses mod_python. I get the
following error:

assert have_pysqlite > 0

And I have verify this via command line as well, that seem no
problem.
# python
Python 2.3.4 (#1, Feb 2 2005, 11:44:49)
[GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import trac.db.sqlite_backend
>>> trac.db.sqlite_backend._ver
(3, 3, 13)
>>> trac.db.sqlite_backend.have_pysqlite
2
>>> trac.db.sqlite_backend.sqlite.version

'2.3.3'

But when i access the Trac via Apache (with mod_python), i get the
following error:

File "/usr/lib/python2.3/site-packages/trac/db/pool.py", line 101, in
get_cnx
cnx = self._connector.get_connection(**self._kwargs)

File "/usr/lib/python2.3/site-packages/trac/db/sqlite_backend.py",
line 113, in get_connection
return SQLiteConnection(path, params)

File "/usr/lib/python2.3/site-packages/trac/db/sqlite_backend.py",
line 140, in __init__
assert have_pysqlite > 0


All times are GMT -5. The time now is 06:04 PM.