DBUtil with modepython

2007-08-01 Thread cpmishra
Hi all
   I have used DBUtil in mysql databse. when we run to program in
dos command ,successfully run but when we run in apache server
(locally)with modepython then given error.Pls give me suggation

error:
No module named DBUtils.PooledDB



cp mishra

-- 
http://mail.python.org/mailman/listinfo/python-list


No module named DBUtils.PooledDB

2007-08-01 Thread cpmishra
Hi all
   I have used DBUtil with python2.4. when we run to program in
dos command ,successfully run but when we run in apache server
(locally)with modepython then given error.Pls  help me

error:
No module named DBUtils.PooledDB

cp mishra

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: No module named DBUtils.PooledDB

2007-08-02 Thread cpmishra



-- Forwarded message --
From: cpmishra <[EMAIL PROTECTED]>
Date: Aug 2, 11:37 am
Subject: No module named DBUtils.PooledDB
To: comp.lang.python


Hi all
   I have used DBUtil with python2.4. when we run to program in
dos command ,successfully run but when we run in apache server
(locally)with modepython then given error.Pls  help me

program:
#import pgdb # import used DB-API 2 module
from DBUtils.PooledDB import PooledDB
import MySQLdb
#from mod_python import util
class Connection:

def getConnection(self):
pool = PooledDB(MySQLdb, 20,
db='ratingtool',host="localhost",port=3306, user="xwiki",
passwd="xwiki")
conn = pool.connection()
return conn



error:
No module named DBUtils.PooledDB

cp mishra

-- 
http://mail.python.org/mailman/listinfo/python-list