Error When Importing QtWebEngineWidgets in PyQt6 v6.3.0
Phil Thompson
phil at riverbankcomputing.com
Wed Apr 27 14:34:26 BST 2022
On 26/04/2022 20:42, Joshua Willman wrote:
> 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?
Sorry, I can't reproduce the problem.
Phil
More information about the PyQt
mailing list