CGI and odbc

Emile van Sebille emile at fenx.com
Wed Mar 1 09:44:22 EST 2000


It sounds like your path is not set properly at time
of execution.  Try setting it explicitly, e.g.:

    sys.path.insert(0,"yourpath")

HTH,

Emile van Sebille
emile at fenx.com
-------------------


----- Original Message -----
From: <melgin at my-deja.com>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Wednesday, March 01, 2000 1:10 AM
Subject: CGI and odbc


> Hi,
>
> I am trying to use odbc in a script to pull data from a database and
> then publish it to a web page. Although I am able to connect to the
> database and gather the information, when I try to call the script
from
> a web page an error occurs stating that it cannot import the dbi, odbc
> module, as if it isn't there. I've also tried using my own scripts
> within a cgi script and the same error occurs. Does anyone have any
> ideas as to what this is and what I can do about it????
>
> Many Thanks
>
> Matt Elgin
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
> --
> http://www.python.org/mailman/listinfo/python-list
>
>






More information about the Python-list mailing list