Page 1 of 1

WMI problem on a machine

Published: August 26, 2024 - 3:27 PM
by jacky35
Good morning,
I have a WMI problem on a machine.

I was wondering if you had any tips?
or if I had to reinstall the machine directly...

Jacky
--
Here is the style of the error message:
---

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\lib\site-packages\wmi.py", line 1209, in __getattr__
    return self._cached_classes(attribute)
  File "C:\Program Files (x86)\wapt\lib\site-packages\wmi.py", line 1220, in _cached_classes
    self._classes_map[class_name] = _wmi_class(self, self._namespace.Get(class_name))
  File "<COMObject winmgmts:>", line 2, in Get
  File "C:\Program Files (x86)\wapt\lib\site-packages\win32com\client\dynamic.py", line 314, in _ApplyTypes_
    result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags, retType, argTypes) + args)
pywintypes.com_error: (-2147352567, 'Une exception s’est produite.', (0, 'SWbemServicesEx', 'Non trouvé ', None, 0, -2147217406), None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4083, in install_wapt
    exitstatus = setup.install()
  File "C:\windows\TEMP\wapt7oinj2vg\setup.py", line 67, in install
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 324, in set_service_start_mode
    for svc in c.Win32_Service(Name=service_name):
  File "C:\Program Files (x86)\wapt\lib\site-packages\wmi.py", line 1211, in __getattr__
    return getattr(self._namespace, attribute)
  File "C:\Program Files (x86)\wapt\lib\site-packages\win32com\client\dynamic.py", line 554, in __getattr__
    raise AttributeError("%s.%s" % (self._username_, attr))
AttributeError: winmgmts:.Win32_Service

AttributeError: winmgmts:.Win32_Service

Re: WMI problem on a machine

Published: August 29, 2024 - 09:21
by dcardon
Hi Jacky,

sometimes the WMI layer malfunctions. It then needs to be reset. We have an internal procedure for this, but I wonder if there isn't a wapt package lying around somewhere. I'll check with Simon and Bertrand and get back to you.

See you soon,

Denis

Re: WMI problem on a machine

Published: August 30, 2024 - 3:24 PM
by jacky35
Thank you very much,
Jacky