I am trying to build an application from source in openSUSE Tumbleweed: QGIS, which relies heavily on Python and Qt.
I am having this persistent error:
sip5: Unable to find file “QtXml/QtXmlmod.sip”
However, this file resides here:
/usr/share/sip/PyQt5/QtXml/QtXmlmod.sip
Not finding a file that exists suggests that this is a configuration problem. I am no expert in Python sip or Qt, so I would appreciate input from other more knowledgeable people here.
Can anyone suggest how can I proceed? How do I let sip5 know where QtXmlmod.sip is?
linux64:~ # zypper se --provides /usr/share/sip/PyQt5/QtXml/QtXmlmod.sip
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
S | Name | Zusammenfassung | Typ
--+------------------+------------------------------------------------+------
i | python-qt5-utils | Common files for PyQt5 for python2 and python3 | Paket
linux64:~ #
Thanks for your answer. Of course I can install it that way too. I always compile this and other tools from source because I often use the latest or development versions.
Thank you for your answer. Perhaps I wasn’t clear enough. I have those files installed, in exactly that path. Apparently, SIP does not see them and my question is how to configure it.
It is also not clear when you get this error. During your trying to build? Or during execution of your own build version.
Please always copy/paste computer output as complete as possible (including command and output) between CODE tags in a post (you get CODE tags by clicking on the # button above the post editor). Only so can people see what you saw and see clearly the difference between story telling and computer facts…
I also assume that in this case, where you try to compile from a third party, it could be more effective to contact that third party to ask where their product assumes to find that file. Your fellow users here will most probably at the most have experience with the product as provided by openSUSE.
Yes, this is my impression too, that sip is looking in the wrong place. I am 99% sure I did update sip by pip a couple of weeks ago. My question is how do I tell sip to look in that directory too in addition to others that it may be configure to look into. If you or anyone else know how to do that I will be very thankful.
In case someone wonders: yes, I have searched the internet. I found only a few examples of this kind of problem. Most of them are caused by the lack of files and are solved by installing the corresponding dev packages. Not my case though, where the files are present. I see there is this 9 year old example in stackoverflow, but I have not yet been able to translate the proposed solution to my particular problem. Also, it possibly does not longer apply to current versions.
I realised the cause of this problem was the sip update using pip. I uninstalled this version using pip, uninstalled then the previous one that was still marked as installed in zypper and reinstalled everything. The error reported above disappeared. Thank you everyone that helped.