473,398 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 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 3197
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). ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.