LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 03-10-2007, 06:31 PM   #1
yinglcs2
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New mod jeremy Linux - Security 12 09-22-2006 09:43 AM
Please Welcome New mod jeremy Linux - General 29 02-01-2004 03:39 PM
Welcome New Mod jeremy LQ Suggestions & Feedback 31 07-14-2003 09:05 PM
New mod jeremy Linux - Networking 1 11-12-2002 04:29 PM
Setting up Fortune-mod jester_69 Linux - General 2 07-01-2002 03:11 AM


All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration