Ziph0n
Ziph0n

Reputation: 197

cx_Freeze and win32ui - ImportError: DLL load failed

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

Upvotes: 0

Views: 817

Answers (1)

EQNX
EQNX

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

Related Questions