web.py & postgresql error

D

dpholmes

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
 
E

Erik Jones

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®
(e-mail address removed)
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
 
A

Adam Atlas

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.
 
D

dpholmes

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.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top