[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Error When Importing QtWebEngineWidgets in PyQt6 v6.3.0
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2022-04-27 13:34:26
Message-ID: 9ddee51aef181ee8a809c101f3c96cba () riverbankcomputing ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic