Importing WMI module into Python CGI script fails

MK MK at
Sun Jul 20 15:07:48 CEST 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()

... but the following isn't working:

    import cgitb; cgitb.enable()
    import wmi ## fails here, with msg "wmi undefined"

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

More information about the Python-list mailing list