Reputation: 197
I'm trying to build an exe with cx_Freeze.
It worked before but since I have imported win32ui in my Python program, I get this error when running the created exe file:
I double checked, the following line is the cause:
import win32ui
Importing win32print works fine though.
I'm using Python 2.7 and PyWin32 build 220
Upvotes: 0
Views: 817
Reputation: 161
I had the same issue as described, the solution was to include the pythonwin folder in the environment path. More specifically the mfc140u.dll is required to ensure that win32ui.pyd imports correctly.
Solution inspired from the Python Mail list
Upvotes: 1