Skip to content Skip to sidebar Skip to footer

Getting Error While Running A Script Which Uses Pywinauto

Whenever I import pywinauto I am getting below error ' Traceback (most recent call last): File 'D:\Python\Python38\lib\ctypes_init_.py', line 123, in WINFUNCTYPE return _win_functy

Solution 1:

This is Python bug in Python 2.7.6 and 3.8.1. Please do clean install of Python 3.7.7+ or 3.8.2+.

Full history of the issue is here: https://github.com/pywinauto/pywinauto/issues/868

This is a missing feature in libffi for passing union by value. libffi is used by ctypes for resolving calling convention at runtime. Python Core developers decided to prohibit this option due to missing feature. But it was wrong decision that broke a lot of users on Windows. So the wrong patch was reverted in Python 3.7.7 / 3.8.2.


Post a Comment for "Getting Error While Running A Script Which Uses Pywinauto"