Results 1 to 4 of 4

Thread: sip-build crashes, what is going on?

  1. #1

    Default sip-build crashes, what is going on?

    I am trying to diagnose a problem with sip-build. Whenever it is invoked, it crashes with the following message:

    # sip-build --version
    Traceback (most recent call last):
      File "/bin/sip-build", line 33, in <module>
        sys.exit(load_entry_point('sip==6.1.1', 'console_scripts', 'sip-build')())
      File "/bin/sip-build", line 25, in importlib_load_entry_point
        return next(matches).load()
    If I choose to uninstall sip6 and try with sip5 instead but the result is the same. I did some internet searches and it seems that this problem may be caused by multiple versions of python living together in an installation.

    Has anyone had this problem before? Suggestions on how to overcome it? I am using openSUSE Tumbleweed.

    Thanks in advance!

  2. #2
    Join Date
    Oct 2014

    Default Re: sip-build crashes, what is going on?

    Can you share the /bin/sip-build script? Try:

    susepaste -n VariableStar -f python -e 151200 /bin/sip-build

    And share the link.

  3. #3

    Default Re: sip-build crashes, what is going on?

    Thank you for your answer, marel. Here comes the link

    It apparently returns this code (sorry, not familiar with susepaste).

    # EASY-INSTALL-ENTRY-SCRIPT: 'sip==6.1.1','console_scripts','sip-build'
    import re
    import sys
    # for compatibility with easy_install; see #2198
    __requires__ = 'sip==6.1.1'
        from importlib.metadata import distribution
    except ImportError:
            from importlib_metadata import distribution
        except ImportError:
            from pkg_resources import load_entry_point
    def importlib_load_entry_point(spec, group, name):
        dist_name, _, _ = spec.partition('==')
        matches = (
            for entry_point in distribution(dist_name).entry_points
            if == group and == name
        return next(matches).load()
    globals().setdefault('load_entry_point', importlib_load_entry_point)
    if __name__ == '__main__':
        sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
        sys.exit(load_entry_point('sip==6.1.1', 'console_scripts', 'sip-build')())

  4. #4

    Default Re: sip-build crashes, what is going on?

    I just realized that sip4, that was also installed, was the culprit. I just uninstalled it and things go fine:

    > sip-build --version
    Thank you for your interest anyway, marel!

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