No module named DBUtils.PooledDB

cpmishra cpmishra.20 at
Thu Aug 2 11:29:13 CEST 2007

---------- Forwarded message ----------
From: cpmishra <cpmishra... at>
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

#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",
		conn = pool.connection()
		return conn

No module named DBUtils.PooledDB

cp mishra

More information about the Python-list mailing list