>On 08/08/2011 17:09, Mitch Oliver wrote: >>> Try: >>> >>> %TEMP%\gen_py\<2.x>\... >> >> That seemed to contain some dummies, but I was able to locate files >> that had content in site-packages\win32com\gen_py. After deleting the >> contents of this directory and regenerating only WMI Scripting and >> WMICntl the code works.
>Well, thanks for the update. To be honest, I've used the wmi module >on dozens of machines, and I never compile those typelibs; it's only >that someone early on said he couldn't get things to work until >he did. Who knows? Just for completeness I'll chime in that deleting all files in site-packages\win32com\gen_py on both my machines (Win 7 32bit and Server 2008 64bit) does indeed cause the script to work again. Recompiling the typelibs causes the previously noted error again. Matt Warwickshire Schools Email System This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please forward to: postmas...@we-learn.com. If the content of this email is considered to be inappropriate or offensive please report by forwarding to: reportab...@we-learn.com _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32