[PyQt] Missing libQt5Xml when running pylupdate

Phil Thompson phil at riverbankcomputing.com
Mon Dec 30 12:13:35 GMT 2019


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
>>> 
>>> 



More information about the PyQt mailing list