472,125 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,125 software developers and data experts.

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 5815

---------- 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
reply views Thread by leo001 | last post: by

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.