Importing WMI module into Python CGI script fails
MK
MK at foo.com
Sun Jul 20 09:07:48 EDT 2003
I'm working with IIS on W2K server. I'm trying to
use module "wmi" in a CGI script but with no success.
The following works:
import cgitb; cgitb.enable()
cgi.test()
... but the following isn't working:
import cgitb; cgitb.enable()
import wmi ## fails here, with msg "wmi undefined"
cgi.test()
Any ideas? I can import all the other modules (e.g. sys)
except "wmi". Also, when I run the same script in IDLE
(cgi stuff removed), it works. Sys.path has all the needed
directories, including script's directory, and WMI's
directory.
More information about the Python-list
mailing list