Oke
Oke

Reputation: 113

ImportError: DLL load failed while importing QtGui: The specified module could not be found

I get this error when I try to run labelimg on windows

Traceback (most recent call last): File "C:\Users\okeon\AppData\Roaming\Python\Python39\site-packages\labelImg\labelImg.py", line 18, in from PyQt5.QtGui import * ImportError: DLL load failed while importing QtGui: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\okeon\anaconda3\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\okeon\anaconda3\lib\runpy.py", line 87, in run_code exec(code, run_globals) File "C:\Users\okeon\AppData\Roaming\Python\Python39\Scripts\labelImg.exe_main.py", line 4, in File "C:\Users\okeon\AppData\Roaming\Python\Python39\site-packages\labelImg\labelImg.py", line 29, in from PyQt4.QtGui import * ModuleNotFoundError: No module named 'PyQt4'

Tried installing modules and imports based on errors, but nothing is working. Anyone with experience on this?

Upvotes: 0

Views: 257

Answers (1)

Oke
Oke

Reputation: 113

A walk around I discovered was to install labelimg and pyqt5 as packages in anaconda and launch labelimg from there. It worked for me

Upvotes: 0

Related Questions