Error When Importing QtWebEngineWidgets in PyQt6 v6.3.0

Joshua Willman joshua.willman at gmail.com
Tue Apr 26 20:42:40 BST 2022


Hello,

I recently installed PyQt6 6.3.0 and then PyQt6-WebEngine from PyPI (I had
no issues previously in PyQt6 v6.2.x). After importing
PyQt6.QtWebEngineWidgets, I get the following error saying QtPrintSupport
can't be found:

>>> import PyQt6.QtWebEngineWidgets

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

ImportError:
dlopen(/Users/__/Library/Python/3.8/lib/python/site-packages/PyQt6/
QtWebEngineWidgets.abi3.so, 0x0002): Library not loaded:
@rpath/QtPrintSupport.framework/Versions/A/QtPrintSupport

  Referenced from:
/Users/__/Library/Python/3.8/lib/python/site-packages/PyQt6/
QtWebEngineWidgets.abi3.so

  Reason: tried:
'/Users/__/Library/Python/3.8/lib/python/site-packages/PyQt6/Qt6/lib/QtPrintSupport.framework/Versions/A/QtPrintSupport'
(no such file),
'/Users/__/Library/Python/3.8/lib/python/site-packages/PyQt6/Qt6/lib/QtPrintSupport.framework/Versions/A/QtPrintSupport'
(no such file),
'/Library/Frameworks/QtPrintSupport.framework/Versions/A/QtPrintSupport'
(no such file),
'/System/Library/Frameworks/QtPrintSupport.framework/Versions/A/QtPrintSupport'
(no such file)


If I try to import QtPrintSupport first (because I have it installed on my
computer) and then QtWebEngineWidgets, I get the following error:


>>> import PyQt6.QtPrintSupport

>>> import PyQt6.QtWebEngineWidgets

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

ImportError:
dlopen(/Users/__/Library/Python/3.8/lib/python/site-packages/PyQt6/
QtWebEngineWidgets.abi3.so, 0x0002): Library not loaded:
@rpath/QtQuick.framework/Versions/A/QtQuick

  Referenced from:
/Users/__/Library/Python/3.8/lib/python/site-packages/PyQt6/
QtWebEngineWidgets.abi3.so

  Reason: tried:
'/Users/__/Library/Python/3.8/lib/python/site-packages/PyQt6/Qt6/lib/QtQuick.framework/Versions/A/QtQuick'
(no such file),
'/Users/__/Library/Python/3.8/lib/python/site-packages/PyQt6/Qt6/lib/QtQuick.framework/Versions/A/QtQuick'
(no such file), '/Library/Frameworks/QtQuick.framework/Versions/A/QtQuick'
(no such file),
'/System/Library/Frameworks/QtQuick.framework/Versions/A/QtQuick' (no such
file)


This issue then repeats itself, where I import that package, followed by a
different package that can't be imported. Any ideas what would cause this
issue?


Thank you so much for your help!


Best,

Joshua Willman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220426/a2a832eb/attachment-0001.htm>


More information about the PyQt mailing list