No module named DBUtils.PooledDB

C

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
 
C

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top