[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: Importing PyQt5* fails on Mac
From: Grzegorz Bokota <g.bokota () mimuw ! edu ! pl>
Date: 2023-11-02 19:16:29
Message-ID: CAKFG=VDsMRCjai48xt_tmfPgSdSpBMYdSFFg_Wn0GVMB5nH7sA () mail ! gmail ! com
[Download RAW message or body]
Googling provides information that when code is build using XCode 14 with
c++17 mode, it will not work with macOS Ventura arm64 (lack of symbols in
libc++) . Did PyQt5 require c++17, or could it be compiled with an older
version?
Regards,
Grzegorz Bokota
czw., 2 lis 2023 o 19:34 Grzegorz Bokota <g.bokota@mimuw.edu.pl> napisa=C5=
=82(a):
> Dear Phil,
> I just tested PyQt5 wheels on macos 13.2.1 and got:
>
> In [2]: from PyQt5.QtWidgets import QApplication, QLabel
> ...:
> -------------------------------------------------------------------------=
--
> ImportError Traceback (most recent call las=
t)
> Cell In[2], line 1
> ----> 1 from PyQt5.QtWidgets import QApplication, QLabel
>
> ImportError:
> dlopen(/Users/sobolp/micromamba/envs/napari-419/lib/python3.11/site-packa=
ges/PyQt5/
> QtWidgets.abi3.so, 0x0002): Symbol not found:
> __ZTVNSt3__13pmr25monotonic_buffer_resourceE
> Referenced from: <8239A761-D3BE-396C-A445-F703655273B5>
> /Users/sobolp/micromamba/envs/napari-419/lib/python3.11/site-packages/PyQ=
t5/Qt5/lib/QtWidgets.framework/Versions/5/QtWidgets
> Expected in: <3EE92404-8FC3-374B-A598-D5C9A8CD64B5>
> /usr/lib/libc++.1.dylib
>
> The wheels are tagged as 11.0 compatible. Also, wheels on from riverbank
> pypi (https://www.riverbankcomputing.com/pypi/) are working without any
> problem on this machine. could you chek what may have men changed and
> rebuilt the wheels?
>
> Regards,
> Grzegorz Bokota
>
>
>
>
> wt., 31 pa=C5=BA 2023 o 11:41 Phil Thompson <phil@riverbankcomputing.com>
> napisa=C5=82(a):
>
>> 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.framewor=
k/Versions/5/QtCore
>> > Expected in: /usr/lib/libc++.1.dylib in
>> >
>> >
>> /opt/homebrew/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtCore.framewor=
k/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
>>
>
[Attachment #3 (text/html)]
<div dir="ltr"><div>Googling provides information that when code is build using XCode \
14 with c++17 mode, it will not work with macOS Ventura arm64 (lack of symbols in \
libc++) . Did PyQt5 require c++17, or could it be compiled with an older \
version?</div><div><br></div><div>Regards,</div><div>Grzegorz \
Bokota<br></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">czw., 2 lis 2023 o 19:34 Grzegorz Bokota <<a \
href="mailto:g.bokota@mimuw.edu.pl">g.bokota@mimuw.edu.pl</a>> \
napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div \
dir="ltr"><div>Dear Phil,</div><div>I just tested PyQt5 wheels on macos 13.2.1 and \
got:<br><br><span style="font-family:monospace">In [2]: from PyQt5.QtWidgets import \
QApplication, QLabel<br> \
...:<br>---------------------------------------------------------------------------<br>ImportError \
Traceback (most recent call last)<br>Cell In[2], line 1<br>----> 1 from \
PyQt5.QtWidgets import QApplication, QLabel<br><br>ImportError: \
dlopen(/Users/sobolp/micromamba/envs/napari-419/lib/python3.11/site-packages/PyQt5/<a \
href="http://QtWidgets.abi3.so" target="_blank">QtWidgets.abi3.so</a>, 0x0002): \
Symbol not found: __ZTVNSt3__13pmr25monotonic_buffer_resourceE<br> Referenced from: \
<8239A761-D3BE-396C-A445-F703655273B5> \
/Users/sobolp/micromamba/envs/napari-419/lib/python3.11/site-packages/PyQt5/Qt5/lib/QtWidgets.framework/Versions/5/QtWidgets<br> \
Expected in: <3EE92404-8FC3-374B-A598-D5C9A8CD64B5> \
/usr/lib/libc++.1.dylib</span><br></div><div><br></div><div>The wheels are tagged as \
11.0 compatible. Also, wheels on from riverbank pypi (<a \
href="https://www.riverbankcomputing.com/pypi/" \
target="_blank">https://www.riverbankcomputing.com/pypi/</a>) are working without any \
problem on this machine. could you chek what may have men changed and rebuilt the \
wheels? <br></div><div><br></div><div>Regards,</div><div>Grzegorz Bokota \
<br></div><div><br><br> <br></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">wt., 31 paź 2023 o 11:41 Phil Thompson <<a \
href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>> napisał(a):<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">On 31/10/2023 08:05, ullix wrote:<br> > This \
one-liner fails on Mac (macbook air M1, OS Big Sur 11.6):<br> > <br>
> fromPyQt5.QtWidgetsimport*<br>
> <br>
> with this output on Py3.10 and same on Py3.11:<br>
> <br>
> python3.10 test4mac.py Exception:<br>
> <br>
> dlopen(/opt/homebrew/lib/python3.10/site-packages/PyQt5/<a \
href="http://QtWidgets.abi3.so" rel="noreferrer" \
target="_blank">QtWidgets.abi3.so</a>,<br> > 2): Symbol not found: \
__ZTVNSt3__13pmr25monotonic_buffer_resourceE<br> > Referenced from:<br>
> <br>
> /opt/homebrew/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore<br>
> Expected in: /usr/lib/libc++.1.dylib in<br>
> <br>
> /opt/homebrew/lib/python3.10/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore<br>
> python3.11 test4mac.py Exception:<br>
> <br>
> dlopen(/Users/alkaddy/Library/Python/3.11/lib/python/site-packages/PyQt5/<a \
href="http://QtWidgets.abi3.so" rel="noreferrer" \
target="_blank">QtWidgets.abi3.so</a>,<br> > 2): Symbol not found: \
__ZTVNSt3__13pmr25monotonic_buffer_resourceE<br> > Referenced from:<br>
> <br>
> /Users/alkady/Library/Python/3.11/lib/python/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore<br>
> Expected in: /usr/lib/libc++.1.dylib in<br>
> <br>
> /Users/alesandro/Library/Python/3.11/lib/python/site-packages/PyQt5/Qt5/lib/QtCore.framework/Versions/5/QtCore<br>
> <br>
> <br>
> The tiny test program is attached.<br>
> The PyQt stuff had been installed with:<br>
> <br>
> |python3 -m pip uninstall PyQt5 PyQt5-sip|<br>
> <br>
> Any guidance? Thanks.<br>
> ullix<br>
<br>
It's possibly an issue with your version of macOS. The Qt wheels are <br>
built with Xcode 15 on Ventura.<br>
<br>
Phil<br>
</blockquote></div>
</blockquote></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic