I am trying to set the module on Windows 10. I am running a python script to open the Notepad and with admin rights, but i received the below log. Am I missing something that needs to be done with the DLL files of the library?
Are these files already present or should be manually included in the system path?
Traceback (most recent call last):
File "automate.py", line 2, in <module>
import uiautomation as automation
File "C:\Users\anant.pande\AppData\Roaming\Python\Python35\site-packages\uiautomation.py", line 55, in <module>
_automationClient = _AutomationClient()
File "C:\Users\anant.pande\AppData\Roaming\Python\Python35\site-packages\uiautomation.py", line 45, in __init__
self.dll = ctypes.cdll.UIAutomationClientX64
File "<C:\Program Files\Anaconda3\lib\ctypes\__init__.py>", line 417, in __getattr__
dll = self._dlltype(name)
File "<C:\Program Files\Anaconda3\lib\ctypes\__init__.py>", line 347, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
Exception ignored in: <bound method _AutomationClient.__del__ of <uiautomation._AutomationClient object at 0x000002BF64E952E8>>
Traceback (most recent call last):
File "C:\Users\anant.pande\AppData\Roaming\Python\Python35\site-packages\uiautomation.py", line 52, in __del__
self.dll.ReleaseInstance()
AttributeError: '_AutomationClient' object has no attribute 'dll'