[PyQt] Missing libQt5Xml when running pylupdate
Denis Rouzaud
denis.rouzaud at gmail.com
Tue Dec 31 07:09:37 GMT 2019
Hi again Phil,
I have been posting on stack overflow [0], and thanks to a reply, I can
give more precise input:
If you run ldd /usr/local/lib/python3.7/site-packages/PyQt5/
pylupdate.abi3.so, you see that it is badly linked to the system libraries:
Step 8/9 : RUN ldd /usr/local/lib/python3.7/site-packages/PyQt5/
pylupdate.abi3.so
---> Running in 28ca0678edc2
/usr/local/lib/python3.7/site-packages/PyQt5/pylupdate.abi3.so:
/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/pylupdate.abi3.so)
linux-vdso.so.1 (0x00007ffe8b3fa000)
libQt5Xml.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Xml.so.5
(0x00007f2bc9a3a000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
(0x00007f2bc953f000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f2bc951e000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x00007f2bc939a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2bc9217000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2bc91fd000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2bc903a000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2bc8e1c000)
libicui18n.so.63 => /usr/lib/x86_64-linux-gnu/libicui18n.so.63
(0x00007f2bc8b41000)
libicuuc.so.63 => /usr/lib/x86_64-linux-gnu/libicuuc.so.63
(0x00007f2bc8972000)
libpcre2-16.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-16.so.0
(0x00007f2bc88f7000)
libdouble-conversion.so.1 =>
/usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f2bc88e0000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2bc88d9000)
libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
(0x00007f2bc87ba000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2bc9ce7000)
libicudata.so.63 => /usr/lib/x86_64-linux-gnu/libicudata.so.63
(0x00007f2bc6dca000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f2bc6d56000)
For comparison, while if you ldd
/usr/local/lib/python3.7/site-packages/PyQt5/QtCore.abi3.so
<http://qtcore.abi3.so/>, it is correctly pointing to the libraries in
site-packages.
Does it help to fix this issue?
Cheers,
Denis
[0] https://stackoverflow.com/q/59487249/1548052
Le lun. 30 déc. 2019 à 13:20, Denis Rouzaud <denis.rouzaud at gmail.com> a
écrit :
> Hi Phil,
>
> Have you tried it with Docker?
>
> I mean it's done on clean installation, and it's not working as expected.
> I guess you don't have any issue since you have the system lib installed
> and not only using the pip package.
>
> Cheers,
> Denis
>
> Le lun. 30 déc. 2019 à 13:13, Phil Thompson <phil at riverbankcomputing.com>
> a écrit :
>
>> On 30/12/2019 10:05, Denis Rouzaud wrote:
>> > Adding RUN apt update && apt install -y libqt5xml5 fixes the issue.
>> > But this is not an acceptable solution, since the pip package should
>> > work
>> > on its own.
>> >
>> > Any idea?
>>
>> It's obviously not finding the library bundled in the wheel. As I said,
>> I can't reproduce it and nobody else has reported a problem.
>>
>> Phil
>>
>>
>> > Le dim. 29 déc. 2019 à 14:44, Denis Rouzaud <denis.rouzaud at gmail.com> a
>> > écrit :
>> >
>> >> Hi Phil,
>> >>
>> >> Here is a minimal example with a docker file
>> >>
>> >> FROM python:3.7
>> >> RUN pip install PyQt5
>> >> RUN echo $(ls
>> >> /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/libQt5Xml.so.5)
>> >> RUN ldd
>> >> /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/libQt5Xml.so.5
>> >> RUN python -c "from PyQt5.pylupdate_main import main"
>> >>
>> >>
>> >> Le dim. 29 déc. 2019 à 11:51, Phil Thompson
>> >> <phil at riverbankcomputing.com>
>> >> a écrit :
>> >>
>> >>> I can't reproduce this.
>> >>>
>> >>> Phil
>> >>>
>> >>>
>> >>> On 26/12/2019 10:37, Denis Rouzaud wrote:
>> >>> > Apprently, libQt5Xml.so.5 is well included in the wheel.
>> >>> > The issue is that it is not found during runtime.
>> >>> > I could fix this by
>> >>> > doing:
>> >>> >
>> >>>
>> LD_LIBRARY_PATH=/usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/:$LD_LIBRARY_PATH
>> >>> > python
>> >>> > -c "from PyQt5.pylupdate_main import main"
>> >>> >
>> >>> > What is the correct way to solve this?
>> >>> >
>> >>> > Cheers,
>> >>> > Denis
>> >>> >
>> >>> > Le sam. 21 déc. 2019 à 23:12, Denis Rouzaud <
>> denis.rouzaud at gmail.com> a
>> >>> > écrit :
>> >>> >
>> >>> >> I am running pylupdate on Travis by installing PyQt5 from pip.
>> >>> >> Since recently, I am getting this error.
>> >>> >> Any idea?
>> >>> >> Cheers,
>> >>> >> Denis
>> >>> >>
>> >>> >> File "/home/travis/virtualenv/python3.7.1/bin/pylupdate5", line
>> 6,
>> >>> >> in <module>
>> >>> >> 263 from PyQt5.pylupdate_main import main
>> >>> >> 264 File
>> >>> >>
>> >>>
>> "/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/PyQt5/pylupdate_main.py",
>> >>>
>> >>> >> line 24, in <module>
>> >>> >> 265 from .pylupdate import *
>> >>> >> 266ImportError: libQt5Xml.so.5: cannot open shared object file: No
>> >>> >> such file or directory
>> >>> >> 267
>> >>> >> 268
>> >>> >>
>> >>> >> $
>> >>> >>
>> >>> >>
>> >>> >>
>> >>> >
>> >>> > _______________________________________________
>> >>> > PyQt mailing list PyQt at riverbankcomputing.com
>> >>> > https://www.riverbankcomputing.com/mailman/listinfo/pyqt
>> >>>
>> >>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20191231/d74f2cd5/attachment-0001.html>
More information about the PyQt
mailing list