Hello,
When I run the following at an interactive interpreter on Windows XP, I get
the expected results. But if I save it to a file and run it, it generates
the following error. (And it generates the same error either way on Windows
2000)
import wmi
c=wmi.WMI()
for item in c.win32_Physica lMedia():
print item
Traceback (most recent call last):
File "<pyshell#3 2>", line 1, in ?
for item in c.win32_Physica lMedia():
File "wmi.py", line 850, in __getattr__
return getattr (self._namespac e, attribute)
File "C:\Python24\li b\site-packages\win32c om\client\dynam ic.py", line 489,
in __getattr__
raise AttributeError, "%s.%s" % (self._username _, attr)
AttributeError:
winmgmts:{imper sonationLevel=i mpersonate,auth enticationLevel =default}//./roo
t/cimv2.win32_Phy sicalMedia
Any help is appreciated.
Louis
When I run the following at an interactive interpreter on Windows XP, I get
the expected results. But if I save it to a file and run it, it generates
the following error. (And it generates the same error either way on Windows
2000)
import wmi
c=wmi.WMI()
for item in c.win32_Physica lMedia():
print item
Traceback (most recent call last):
File "<pyshell#3 2>", line 1, in ?
for item in c.win32_Physica lMedia():
File "wmi.py", line 850, in __getattr__
return getattr (self._namespac e, attribute)
File "C:\Python24\li b\site-packages\win32c om\client\dynam ic.py", line 489,
in __getattr__
raise AttributeError, "%s.%s" % (self._username _, attr)
AttributeError:
winmgmts:{imper sonationLevel=i mpersonate,auth enticationLevel =default}//./roo
t/cimv2.win32_Phy sicalMedia
Any help is appreciated.
Louis
Comment