472,958 Members | 2,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 3182
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bill J. | last post by:
I have to update a PostgreSQL linked server through MSSQL2K. I first configured the connection with ODBC as follows and I can do queries with no problem: EXEC sp_droplinkedsrvlogin @rmtsrvname...
0
by: Bill J. | last post by:
I have to update a PostgreSQL linked server through MSSQL2K. I first configured the connection with ODBC as follows and I can do queries with no problem: EXEC sp_droplinkedsrvlogin @rmtsrvname...
3
by: Molly Gibson | last post by:
Hi all, I have recently installed Apache/1.3.28 + mod_auth_pgsql-0.9.12 (http://www.giuseppetanzilli.it/mod_auth_pgsql/) The only way I have been able to get it to successfully authenticate...
4
by: Birahim FALL | last post by:
Hi, I was an oracle dev/admin and I'm quite new to postgresql. Postgresql is great, but something bothers me. It seems that there's no concept of PACKAGE in PL/pgSQL as in Oracle PL/SQL. Is is...
1
by: Ericson Smith | last post by:
Hi, We're thinking of moving to a 64 bit platform for our database. Does anyone have any stories of migration from 32 bit to 64 bits? * How did it impact performance? * Were there any gochas?...
1
by: Kevin Bartz | last post by:
-----Original Message----- From: Kevin Bartz Sent: Friday, August 06, 2004 8:41 PM To: 'mike@thegodshalls.com' Subject: RE: Out of swap space & memory Well, all I'm doing right now is using...
2
by: Mike Morris | last post by:
Hi, I've setup a postgres server (7.4) and confirmed that SSL is enabled - I can successfully connect via tcp socket over SSL using the psql client. From PHP4, how can I get the pg_connect...
3
by: Lada 'Ray' Lostak | last post by:
Hello ppl, Imagine some online system, based on PgSql. There are 'many' parts which depends on each other. I will give small example, but instead of simple table imagine changing tenths various...
6
by: John Wells | last post by:
Guys, My boss has been keeping himself busy reading MySQL marketing pubs, and came at me with a few questions this morning regarding PostgreSQL features (we're currently moving to PostgreSQL). ...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.