Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Monday, July 4th, 2005

Subject:python cgi on win 98
Time:11:27 pm.
Hi all, I was hoping you people could help me with this:

I have a windows 98 system with apache server installed on it. I configured apache to run .py files as cgi. Now Iam able to compile the python files that do not include any module from my cgi-bin directory, but when I import any module(like import cgi) in the scripts, the server shows an error.The error log entry when importing cgi is this-
File "C:\\PYTHON24\\lib\\cgi.py", line 38, in ?\r
import os\r
ImportError: No module named os\r

All the modules that are not being found work fine in normal python scripts run from the interpreter.

Any help would be greatly appreciated, thanks in advance....
Comments: Read 2 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image