question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DLL load failed while importing QtWebEngineWidgets:

See original GitHub issue

Hi! I have created an environment in conda, installed thy phy in there, but I still cannot open the template gui. I always get the following error. Uninstalling and reinstalling of the QtWebEngineWidgets doesn’t help. Could you help me to solve the problem? Thanks!

(phy2) C:\Users\dmitry.kobylkov\MATLAB\Projects\KilosortPLX\Outputs-chick46_160622_1.7.pl213-Sep-2022>phy template-gui params.py --debug
Traceback (most recent call last):
  File "C:\Users\dmitry.kobylkov\.conda\envs\phy2\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\dmitry.kobylkov\.conda\envs\phy2\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\dmitry.kobylkov\.conda\envs\phy2\Scripts\phy.exe\__main__.py", line 4, in <module>
  File "C:\Users\dmitry.kobylkov\.conda\envs\phy2\lib\site-packages\phy\apps\__init__.py", line 22, in <module>
    from phy.gui.qt import QtDialogLogger
  File "C:\Users\dmitry.kobylkov\.conda\envs\phy2\lib\site-packages\phy\gui\__init__.py", line 6, in <module>
    from .qt import (
  File "C:\Users\dmitry.kobylkov\.conda\envs\phy2\lib\site-packages\phy\gui\qt.py", line 41, in <module>
    from PyQt5.QtWebEngineWidgets import (QWebEngineView,  # noqa
ImportError: DLL load failed while importing QtWebEngineWidgets: The specified module could not be found.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
rhaymancommented, Sep 24, 2022

A colleague had the same problem which we were able to fix:

pip uninstall PyQt5 pip uninstall PyQt5-sip pip uninstall PyQtWebEngine

pip install --upgrade pyqtwebengine==5.12 pip install --upgrade pyqt5==5.12.3

(the specific versions listed above were the lowest ones pypi was offering at the time)

You may need to manually remove the PyQt folders in Lib\site-packages and repeat the above steps but we didn’t need to.

0reactions
tkskdm2commented, Dec 9, 2022

It worked beautifully, thanks hwehry!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

DLL load failed while importing QtWebEngineWidgets ...
I don't use Spyder, but I ran into this issue and managed to solve it somehow. I had installed PyQtWebEngine like this: pip...
Read more >
Solved - Error when importing PyQt5.QtWebEngineWidgets
QtWebEngineWidgets as web ImportError: DLL load failed while importing QtWebEngineWidgets: The specified module could not be found.
Read more >
Hippo - ImportError: DLL load failed while importing ... - Higgs
ImportError : DLL load failed while importing QtWebEngineWidgets: when running spyder for python. Detection score: 1. Current body; Last body; Edit summary.
Read more >
DLL load failed: The specified procedure could not be ...
When using tensorflow, the ImportError: DLL load failed error, there are many reasons, up from the google.protobuf.pyext import _message error, ...
Read more >
ImportError: QtWebEngineWidgets must be imported or Qt. ...
I want to load a simple HTML code in my plugin. But when I want to use QtWebEngineWidgets in Pyqt, Qgis shows the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found