Search code examples
pythonpywinauto

how to fix "import win32api # noqa: E402 ImportError: DLL load failed while importing win32api: %1 is not a valid"


import win32api from pywinauto import application

app = application.Application app.start("Notepad.exe")


Solution

  • This is can be due to different bit versions of applications you are using here

    refer:https://www.youtube.com/watch?v=fGuHMVAruAE

    so better to check the bit versions