Python, CGI and Sqlite3

Majdi Sawalha maj_sawalha at
Tue Apr 13 19:41:33 CEST 2010

Dear list members,

I am writing CGI program that reads a text feild and uses with select statement to retrieve data from a database file using sqlite3. the program behaived very strange as it does not recognizes the 

import sqlite3

statement? and it gives the following error
ImportError: No module named sqlite3,

i tried it on python shell and all statements are work well.
i tried it also by prining the output to a text file instead using cgi web folder, and it worked.

Looking forward to hearing from you.

best regards,

Majdi Sawalha

Faculty of Engineering
School of Computing
University of Leeds
Leeds, LS2 9JT

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list