0

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:

error

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

Ziph0n
  • 197
  • 1
  • 1
  • 7

1 Answers1

1

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

EQNX
  • 131
  • 10