Re: web.py & postgresql error

2007-10-23 Thread dpholmes
On Oct 23, 10:15 am, Adam Atlas <[EMAIL PROTECTED]> wrote:
> On Oct 22, 9:06 pm, [EMAIL PROTECTED] 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. 
> 
>
> Future web.py questions should probably be directed to the web.py
> group , though.

Thanks for the help, installing PyGreSQL was the key, I was unaware
that PostGreSQL was not all I needed.  Thanks again.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: web.py & postgresql error

2007-10-23 Thread Adam Atlas
On Oct 22, 9:06 pm, [EMAIL PROTECTED] 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. 

Future web.py questions should probably be directed to the web.py
group , though.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: web.py & postgresql error

2007-10-22 Thread Erik Jones
On Oct 22, 2007, at 8:06 PM, [EMAIL PROTECTED] 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®
[EMAIL PROTECTED]
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


-- 
http://mail.python.org/mailman/listinfo/python-list


web.py & postgresql error

2007-10-22 Thread 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

-- 
http://mail.python.org/mailman/listinfo/python-list