By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,985 Members | 1,574 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,985 IT Pros & Developers. It's quick & easy.

DBUtil with modepython

P: n/a
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

Aug 2 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
cpmishra wrote:
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
It seems likely that the web environment doesn't include the directory
containing the DBUtils (DBUtil?) in the PYTHONPATH variable.

Try running this script as a CGI:

print "Content-Type: text/plain\n"
import os
for val in os.environ.items():
print "%s=%s" % val

and see what PYTHONPATH looks like.

regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------

Aug 2 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.