469,645 Members | 1,527 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

No module named DBUtils.PooledDB

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

Aug 2 '07 #1
1 5274

---------- Forwarded message ----------
From: cpmishra <cpmishra...@gmail.com>
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

Aug 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Carsten Gehling | last post: by
10 posts views Thread by Ben Finney | last post: by
1 post views Thread by alain MONTMORY | last post: by
4 posts views Thread by noagbodjivictor | last post: by
2 posts views Thread by Juha S. | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.