Results 1 to 10 of 10

Thread: sip5: Unable to find file "QtXml/QtXmlmod.sip"

  1. #1

    Default sip5: Unable to find file "QtXml/QtXmlmod.sip"

    Hi everyone

    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?

    Thanks in advance!

  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    5,014

    Default AW: sip5: Unable to find file "QtXml/QtXmlmod.sip"

    See here:
    https://build.opensuse.org/package/s...3AFactory/qgis

    But you can install it easy:
    Code:
    zypper in qgis

  3. #3
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    5,014

    Default AW: sip5: Unable to find file "QtXml/QtXmlmod.sip"

    You can search for the package by:
    Code:
    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:~ #

  4. #4

    Default Re: AW: sip5: Unable to find file "QtXml/QtXmlmod.sip"

    Quote Originally Posted by Sauerland View Post
    See here:
    https://build.opensuse.org/package/s...3AFactory/qgis

    But you can install it easy:
    Code:
    zypper in qgis
    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.

  5. #5

    Default Re: AW: sip5: Unable to find file "QtXml/QtXmlmod.sip"

    Quote Originally Posted by Sauerland View Post
    You can search for the package by:
    Code:
    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:~ #
    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.

  6. #6
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    5,014

    Default AW: sip5: Unable to find file "QtXml/QtXmlmod.sip"

    maybe your sip is searching in a wrong place?
    Have yxou updated sip by pip?
    Last edited by Sauerland; 24-Oct-2020 at 03:08.

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    27,356

    Default Re: sip5: Unable to find file "QtXml/QtXmlmod.sip"

    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.
    Henk van Velden

  8. #8

    Default Re: AW: sip5: Unable to find file "QtXml/QtXmlmod.sip"

    Quote Originally Posted by Sauerland View Post
    maybe your sip is searching in a wrong place?
    Have yxou updated sip by pip?
    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.

  9. #9

    Default Re: sip5: Unable to find file "QtXml/QtXmlmod.sip"

    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.

  10. #10

    Default [SOLVED] Re: sip5: Unable to find file "QtXml/QtXmlmod.sip"

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •