468,250 Members | 1,604 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

web.py & postgresql error

hi everyone, i'm very new to python and to this forum. i'm actually
just trying to work through the tutorial on webpy.org. so far, so
good, but as i tried to incorporate a postgresql database into the
demo web app i'm receiving this error print out:

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py",
line 624, in communicate
req.respond()
File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py",
line 357, in respond
response = self.wsgi_app(self.environ, self.start_response)
File "/usr/lib/python2.5/site-packages/web/httpserver.py", line 200,
in __call__
return self.app(environ, xstart_response)
File "/usr/lib/python2.5/site-packages/web/http.py", line 255, in
__call__
return self.func(e, o)
File "/usr/lib/python2.5/site-packages/web/webapi.py", line 302, in
wsgifunc
_load(env)
File "/usr/lib/python2.5/site-packages/web/webapi.py", line 258, in
_load
load()
File "/usr/lib/python2.5/site-packages/web/webapi.py", line 253, in
load
db.connect(**config.db_parameters)
File "/usr/lib/python2.5/site-packages/web/db.py", line 265, in
connect
import pgdb as db
ImportError: No module named pgdb

any thoughts would be greatly appreciated.
thanks,
doug

Oct 23 '07 #1
3 3026
On Oct 22, 2007, at 8:06 PM, dp******@gmail.com wrote:
hi everyone, i'm very new to python and to this forum. i'm actually
just trying to work through the tutorial on webpy.org. so far, so
good, but as i tried to incorporate a postgresql database into the
demo web app i'm receiving this error print out:

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py",
line 624, in communicate
req.respond()
File "/usr/lib/python2.5/site-packages/web/wsgiserver/__init__.py",
line 357, in respond
response = self.wsgi_app(self.environ, self.start_response)
File "/usr/lib/python2.5/site-packages/web/httpserver.py", line 200,
in __call__
return self.app(environ, xstart_response)
File "/usr/lib/python2.5/site-packages/web/http.py", line 255, in
__call__
return self.func(e, o)
File "/usr/lib/python2.5/site-packages/web/webapi.py", line 302, in
wsgifunc
_load(env)
File "/usr/lib/python2.5/site-packages/web/webapi.py", line 258, in
_load
load()
File "/usr/lib/python2.5/site-packages/web/webapi.py", line 253, in
load
db.connect(**config.db_parameters)
File "/usr/lib/python2.5/site-packages/web/db.py", line 265, in
connect
import pgdb as db
ImportError: No module named pgdb

any thoughts would be greatly appreciated.
thanks,
doug
Apparently you don't have pgdb installed or it's path isn't in your
PYTHONPATH environment variable.

Erik Jones

Software Developer | Emmaź
er**@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com
Oct 23 '07 #2
On Oct 22, 9:06 pm, dphol...@gmail.com wrote:
hi everyone, i'm very new to python and to this forum. i'm actually
just trying to work through the tutorial on webpy.org. so far, so
good, but as i tried to incorporate a postgresql database into the
demo web app i'm receiving this error print out:

[...]
ImportError: No module named pgdb

any thoughts would be greatly appreciated.
thanks,
doug
It looks like you just haven't installed PyGreSQL yet. <http://
www.pygresql.org/>

Future web.py questions should probably be directed to the web.py
group <http://groups.google.com/group/webpy/>, though.

Oct 23 '07 #3
On Oct 23, 10:15 am, Adam Atlas <a...@atlas.stwrote:
On Oct 22, 9:06 pm, dphol...@gmail.com wrote:
hi everyone, i'm very new to python and to this forum. i'm actually
just trying to work through the tutorial on webpy.org. so far, so
good, but as i tried to incorporate a postgresql database into the
demo web app i'm receiving this error print out:
[...]
ImportError: No module named pgdb
any thoughts would be greatly appreciated.
thanks,
doug

It looks like you just haven't installed PyGreSQL yet. <http://www.pygresql.org/>

Future web.py questions should probably be directed to the web.py
group <http://groups.google.com/group/webpy/>, though.
Thanks for the help, installing PyGreSQL was the key, I was unaware
that PostGreSQL was not all I needed. Thanks again.

Oct 24 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bill J. | last post: by
3 posts views Thread by Molly Gibson | last post: by
4 posts views Thread by Birahim FALL | last post: by
1 post views Thread by Ericson Smith | last post: by
1 post views Thread by Kevin Bartz | last post: by
3 posts views Thread by Lada 'Ray' Lostak | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.