<div dir="ltr">Hi again Phil,<div><br></div><div>I have been posting on stack overflow [0], and thanks to a reply, I can give more precise input:</div><div><br></div><div>If you run ldd /usr/local/lib/python3.7/site-packages/PyQt5/<a href="http://pylupdate.abi3.so/" target="_blank">pylupdate.abi3.so</a>, you see that it is badly linked to the system libraries:</div><div><div><br></div></div><div>





<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Step 8/9 : RUN ldd /usr/local/lib/python3.7/site-packages/PyQt5/<a href="http://pylupdate.abi3.so">pylupdate.abi3.so</a></span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>---> Running in 28ca0678edc2</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">/usr/local/lib/python3.7/site-packages/PyQt5/<a href="http://pylupdate.abi3.so">pylupdate.abi3.so</a>: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.14' not found (required by /usr/local/lib/python3.7/site-packages/PyQt5/<a href="http://pylupdate.abi3.so">pylupdate.abi3.so</a>)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>linux-vdso.so.1 (0x00007ffe8b3fa000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f2bc9a3a000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f2bc953f000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2bc951e000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2bc939a000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2bc9217000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2bc91fd000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2bc903a000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2bc8e1c000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libicui18n.so.63 => /usr/lib/x86_64-linux-gnu/libicui18n.so.63 (0x00007f2bc8b41000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libicuuc.so.63 => /usr/lib/x86_64-linux-gnu/libicuuc.so.63 (0x00007f2bc8972000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libpcre2-16.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0 (0x00007f2bc88f7000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libdouble-conversion.so.1 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f2bc88e0000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2bc88d9000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f2bc87ba000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>/lib64/ld-linux-x86-64.so.2 (0x00007f2bc9ce7000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libicudata.so.63 => /usr/lib/x86_64-linux-gnu/libicudata.so.63 (0x00007f2bc6dca000)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2bc6d56000)</span></p></div><div><br></div><div>For comparison,  while if you ldd /usr/local/lib/python3.7/site-packages/PyQt5/<a href="http://qtcore.abi3.so/" target="_blank">QtCore.abi3.so</a>, it is correctly pointing to the libraries in site-packages.</div><div><br></div><div>Does it help to fix this issue?</div><div><br></div><div>Cheers,</div><div>Denis</div><div><br></div><div>[0] <a href="https://stackoverflow.com/q/59487249/1548052" target="_blank">https://stackoverflow.com/q/59487249/1548052</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 30 déc. 2019 à 13:20, Denis Rouzaud <<a href="mailto:denis.rouzaud@gmail.com">denis.rouzaud@gmail.com</a>> a écrit :<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">Hi Phil,<div><br></div><div>Have you tried it with Docker?</div><div><br></div><div>I mean it's done on clean installation, and it's not working as expected.</div><div>I guess you don't have any issue since you have the system lib installed and not only using the pip package.</div><div><br></div><div>Cheers,</div><div>Denis</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 30 déc. 2019 à 13:13, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>> a écrit :<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 30/12/2019 10:05, Denis Rouzaud wrote:<br>
> Adding RUN apt update && apt install -y libqt5xml5 fixes the issue.<br>
> But this is not an acceptable solution, since the pip package should <br>
> work<br>
> on its own.<br>
> <br>
> Any idea?<br>
<br>
It's obviously not finding the library bundled in the wheel. As I said, <br>
I can't reproduce it and nobody else has reported a problem.<br>
<br>
Phil<br>
<br>
<br>
> Le dim. 29 déc. 2019 à 14:44, Denis Rouzaud <<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>> a<br>
> écrit :<br>
> <br>
>> Hi Phil,<br>
>> <br>
>> Here is a minimal example with a docker file<br>
>> <br>
>> FROM python:3.7<br>
>> RUN pip install PyQt5<br>
>> RUN echo $(ls <br>
>> /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/libQt5Xml.so.5)<br>
>> RUN ldd <br>
>> /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/libQt5Xml.so.5<br>
>> RUN python -c "from PyQt5.pylupdate_main import main"<br>
>> <br>
>> <br>
>> Le dim. 29 déc. 2019 à 11:51, Phil Thompson <br>
>> <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>><br>
>> a écrit :<br>
>> <br>
>>> I can't reproduce this.<br>
>>> <br>
>>> Phil<br>
>>> <br>
>>> <br>
>>> On 26/12/2019 10:37, Denis Rouzaud wrote:<br>
>>> > Apprently, libQt5Xml.so.5 is well included in the wheel.<br>
>>> > The issue is that it is not found during runtime.<br>
>>> > I could fix this by<br>
>>> > doing:<br>
>>> ><br>
>>> LD_LIBRARY_PATH=/usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/:$LD_LIBRARY_PATH<br>
>>> > python<br>
>>> > -c "from PyQt5.pylupdate_main import main"<br>
>>> ><br>
>>> > What is the correct way to solve this?<br>
>>> ><br>
>>> > Cheers,<br>
>>> > Denis<br>
>>> ><br>
>>> > Le sam. 21 déc. 2019 à 23:12, Denis Rouzaud <<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>> a<br>
>>> > écrit :<br>
>>> ><br>
>>> >> I am running pylupdate on Travis by installing PyQt5 from pip.<br>
>>> >> Since recently, I am getting this error.<br>
>>> >> Any idea?<br>
>>> >> Cheers,<br>
>>> >> Denis<br>
>>> >><br>
>>> >>   File "/home/travis/virtualenv/python3.7.1/bin/pylupdate5", line 6,<br>
>>> >> in <module><br>
>>> >> 263    from PyQt5.pylupdate_main import main<br>
>>> >> 264  File<br>
>>> >><br>
>>> "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/PyQt5/pylupdate_main.py",<br>
>>> <br>
>>> >> line 24, in <module><br>
>>> >> 265    from .pylupdate import *<br>
>>> >> 266ImportError: libQt5Xml.so.5: cannot open shared object file: No<br>
>>> >> such file or directory<br>
>>> >> 267<br>
>>> >> 268<br>
>>> >><br>
>>> >> $<br>
>>> >><br>
>>> >><br>
>>> >><br>
>>> ><br>
>>> > _______________________________________________<br>
>>> > PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
>>> > <a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
>>> <br>
>>> <br>
<br>
</blockquote></div>
</blockquote></div>