Click here to Skip to main content
15,914,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I'm getting the below error when i'm converting a python .ui file to .py file:
from PyQt4 import QtCore
ImportError: DLL load failed: The specified module could not be found.

I'm using Python 3.4 64bit and PyQt4 64bit on windows 7.

Can someone please assist as i have tried a number of solutions but i'm still getting the same error

What I have tried:

Tried to follow solutions on youtube
Posted
Updated 6-Apr-18 0:41am

1 solution

You need to set your PATH variable. Or if you are running inside an IDE there should be an option to set it in settings/preferences.

Alternatively yo can copy the DLL to where your python exe is but I think that is ugly.

From:

Search Path Used by Windows to Locate a DLL | Microsoft Docs[^]
You have:
5. The directories listed in the PATH environment variable.

Note: The LIBPATH environment variable is not used.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900