473,473 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Need help in using mod_python


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

Mar 10 '07 #1
3 1233
yi*****@gmail.com a écrit :
>

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.
(snip)

What do you get using tracd (the standalone server) ?
Mar 11 '07 #2
On Mar 11, 1:02 pm, Bruno Desthuilliers
<bdesth.quelquech...@free.quelquepart.frwrote:
ying...@gmail.com a écrit :
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.

(snip)

What do you get using tracd (the standalone server) ?
I am using apache with mod_python.

I have done a sanity check with command prompt, it can find
'pysqlite',
But when I access Trac using Apache (via mod_python), it somehow can't
find 'pysqlite' and gives me an error.

So my question is how python command prompt loads library differently
from mod_python?

# 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'

Mar 11 '07 #3
yi*****@gmail.com a écrit :
On Mar 11, 1:02 pm, Bruno Desthuilliers
<bdesth.quelquech...@free.quelquepart.frwrote:
>>ying...@gmail.com a écrit :

>>>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.

(snip)

What do you get using tracd (the standalone server) ?


I am using apache with mod_python.
You're trying to, yes. But what *I*'m asking *you* is what you get using
tracd.
I have done a sanity check with command prompt,
using your account's env
it can find
'pysqlite',
But when I access Trac using Apache (via mod_python),
which uses a somewhat different (and very restricted) env...
it somehow can't
find 'pysqlite' and gives me an error.

So my question is how python command prompt loads library differently
from mod_python?
I know I'm a little bit dumb, but I had perfectly understood your
question (which BTW is not posted at the best place - both Trac and
mod_python have dedicated mailing-lists). Can you imagine that I have
good reasons to ask you what you get using tracd ?
(re-snip already snipped code)
Mar 11 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: digidalmation | last post by:
Hello all. I've been trying to get my linux server to run mod_python. It's a Mandrake 10 linux box, and apache/mod_python are installed from rpms. apache2-mod_python-2.0.48_3.1.3-1mdk...
0
by: Python_it | last post by:
I'm going to work with mod_python. I install mod_python 3.2.2b for python 2.4. If i test my install with mptest.py see this link:...
1
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using...
2
by: exhuma.twn | last post by:
Hi again, as soon as I try to make use of the "session" object inside a psp-template file, I get the following error: Mod_python error: "PythonHandler mod_python.publisher" Traceback (most...
92
by: Ray | last post by:
I just moved to another company that's mainly a Java/.NET shop. I was happy to find out that there's a movement from the grassroot to try to convince the boss to use a dynamic language for our...
2
by: m.banaouas | last post by:
I installed Apache 2.2.3 and mod_python 3.2.10 on WinXP plateform I configured mod_python via httpd.conf: LoadModule python_module modules/mod_python.so but my script folder configuration...
2
by: Eduardo Dobay | last post by:
Hello, I've been playing around with mod_python these days (using Publisher and PSP), and it has been working smoothly under Windows XP (using Apache 2.2). But when I installed PSE and went to use...
3
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory...
3
by: Lawrence D'Oliveiro | last post by:
In message <mailman.109.1216158151.922.python-list@python.org>, Cyril Bazin wrote: What's the error message? This should be in Apache's error_log file.
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.