Importing WMI module into Python CGI script fails

Peter Hansen peter at engcorp.com
Sun Jul 20 09:32:55 EDT 2003


MK wrote:
> 
> 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()

Does it really just say "wmi undefined"?  If not, please
cut and paste the precise traceback which you really get.

-Peter




More information about the Python-list mailing list