Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-253

Installing PySide with pip fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.2.3, 1.2.x
    • 1.2.2
    • PySide
    • None
    • Linux Mint Petra. 64-bit. Should also happen on Ubuntu. Python 3.3.

    Description

      When installing PySide using pip (Linux Mint) the installation almost finishes, but finally I get a runtime error:
      RuntimeError: Can't find '/usr/bin/pyside_postinstall.py'

      As a result, no Qt modules can be imported (rpath problems?).

      The reason is that the installation is done into /usr/local, and not into /usr. When I run the same postinstall script from /usr/local/bin manually ("sudo python3 /usr/local/bin/pyside_postinstall.py -install"), it works, fixes the rpaths, and PySide starts functioning.

      The attached files are, respectively:
      pyside.log – an installation log (the bug has been reproduced on another computer running the same OS version);
      failure.log – an import error that happens when running pyside-uic (or any other app that imports PySide modules) immediately after installation;
      how_to_repair_installation.log – a command that repairs everything.

      Attachments

        1. failure.log
          0.8 kB
        2. how_to_repair_installation.log
          2 kB
        3. pyside.log
          1.26 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rlacko Roman Lacko
            ellioh Elijah Merkin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes