[Tutor] python by cgi
flaxeater at yahoo.com
Thu Sep 30 16:05:28 CEST 2004
Could you give us your error message. This sounds like a problem I
make sure that the filename is not colliding with any of the packages
> hi all,
> I'm trying to access my firebird database using python and cgi.
> installed the latest apache web server (on linux), and using a
> script like;
> def main():
> print "Content-type: text/html"
> print "<TITLE> Hello, World!</TITLE>"
> if (__name__ == "__main__"):
> is working just fine.
> However, if I add an import kinterbasdb at the start, I get an
> Using the command line interpreter I don't have a problem though.
> I'm a bit confused by the sys.path a bit, it seems to vary
> on how I start python;
> in command line iterpreter, it's;
> '', '/usr/lib/python23.zip', '/usr/lib/python2.3',
> '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk',
> by cgi it's;
> '/usr/local/apache2/cgi-bin', '/usr/local/lib/python23.zip',
> '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-linux2',
> however, the difference doesn't seem to imply why kinterbasdb can't
> I tried doing
> import sys
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
More information about the Tutor