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

List:       pykde
Subject:    Re: Importing PyQt5* fails on Mac
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2023-10-31 10:40:55
Message-ID: b9f7f7eb920c0eb323d2399cfebe5377 () riverbankcomputing ! com
[Download RAW message or body]

On 31/10/2023 08:05, ullix wrote:
> This one-liner fails on Mac (macbook air M1, OS Big Sur 11.6):
> 
> fromPyQt5.QtWidgetsimport*
> 
> with this output on Py3.10 and same on Py3.11:
> 
> python3.10 test4mac.py Exception:
> 
> dlopen(/opt/homebrew/lib/python3.10/site-packages/PyQt5/QtWidgets.abi3.so,
> 2): Symbol not found: __ZTVNSt3__13pmr25monotonic_buffer_resourceE
> Referenced from:
> 
> /opt/homebrew/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore
>  Expected in: /usr/lib/libc++.1.dylib in
> 
> /opt/homebrew/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore
>  python3.11 test4mac.py Exception:
> 
> dlopen(/Users/alkaddy/Library/Python/3.11/lib/python/site-packages/PyQt5/QtWidgets.abi3.so,
>  2): Symbol not found: __ZTVNSt3__13pmr25monotonic_buffer_resourceE
> Referenced from:
> 
> /Users/alkady/Library/Python/3.11/lib/python/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore
>  Expected in: /usr/lib/libc++.1.dylib in
> 
> /Users/alesandro/Library/Python/3.11/lib/python/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore
>  
> 
> The tiny test program is attached.
> The PyQt stuff had been installed with:
> 
> > python3 -m pip uninstall PyQt5 PyQt5-sip|
> 
> Any guidance? Thanks.
> ullix

It's possibly an issue with your version of macOS. The Qt wheels are 
built with Xcode 15 on Ventura.

Phil


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

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