>>> app.start(r"C:\Program Files\Microsoft Assessment and Planning Toolkit\bin\MapToolkit.exe") Traceback (most recent call last): File "C:\Users\ABCD\AppData\Local\Continuum\anaconda3\lib\site-packages\pywinauto\application.py", line 1047, in start start_info) # STARTUPINFO structure. pywintypes.error: (740, 'CreateProcess', 'The requested operation requires elevation.') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\ABCD\AppData\Local\Continuum\anaconda3\lib\site-packages\pywinauto\application.py", line 1052, in start raise AppStartError(message) pywinauto.application.AppStartError: Could not create the process "C:\Program Files\Microsoft Assessment and Planning Toolkit\bin\MapToolkit.exe" Error returned by CreateProcess: (740, 'CreateProcess', 'The requested operation requires elevation.') >>>
>>> app.start("C:/Program Files/Microsoft Assessment and Planning Toolkit/bin/MapToolkit.exe") Traceback (most recent call last): File "C:\Users\km041320\AppData\Local\Continuum\anaconda3\lib\site-packages\pywinauto\application.py", line 1047, in start start_info) # STARTUPINFO structure. pywintypes.error: (740, 'CreateProcess', 'The requested operation requires elevation.') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\km041320\AppData\Local\Continuum\anaconda3\lib\site-packages\pywinauto\application.py", line 1052, in start raise AppStartError(message) pywinauto.application.AppStartError: Could not create the process "C:/Program Files/Microsoft Assessment and Planning Toolkit/bin/MapToolkit.exe" Error returned by CreateProcess: (740, 'CreateProcess', 'The requested operation requires elevation.')
worked after opening cmd as admin
Thanks