Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Installation problem
Qt 6.11 is out! See what's new in the release blog

Installation problem

Scheduled Pinned Locked Moved Language Bindings
3 Posts 1 Posters 3.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lewisl
    wrote on last edited by
    #1

    Running the post-install script generated a runtime error. No idea what it means. I had previously installed PySide. Did uninstall of PySide and was reinstalling. Could be the symlinks still existing in /usr/lib cause this.

    There is no clean way to uninstall. It might shock you that sometimes that is necessary. It would be nice if you supplied an uninstall script. I don't know where all the pieces land.

    Here is the runtime error:
    PySide package found in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PySide...
    Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyside_postinstall.py", line 321, in <module>
    install()
    File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyside_postinstall.py", line 31, in install
    install_posix()
    File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyside_postinstall.py", line 231, in install_posix
    rpath_cmd(pyside_path, srcpath)
    File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyside_postinstall.py", line 215, in rpath_cmd
    localize_libpaths(srcpath, pyside_libs, pyside_path)
    File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyside_postinstall.py", line 181, in localize_libpaths
    (install_name, install_name, libpath))
    File "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyside_postinstall.py", line 90, in back_tick
    raise RuntimeError(cmd + ' process returned code %d' % retcode)
    RuntimeError: install_name_tool -change libpyside-python2.7.1.2.dylib @rpath/libpyside-python2.7.1.2.dylib /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PySide/libpyside-python2.7.1.2.2.dylib process returned code 1

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lewisl
      wrote on last edited by
      #2

      Further to this. When attempting to run a simple tutorial app, I get:

      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "simple.py", line 7, in <module>
      from PySide import QtGui
      ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PySide/QtGui.so, 2): Library not loaded: libpyside-python2.7.1.2.dylib
      Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PySide/QtGui.so
      Reason: image not found

      But, this really doesn't make sense. In /Library/Frameworks/Python.framework/Versions/2.7/python2.7/site-packages/Pyside we find:

      total 56240
      -rwxr-xr-x 1 root admin 3234416 Aug 6 14:18 QtCore.so
      -rwxr-xr-x 1 root admin 529136 Aug 6 14:18 QtDeclarative.so
      -rwxr-xr-x 1 root admin 13745080 Aug 6 14:18 QtGui.so
      -rwxr-xr-x 1 root admin 497000 Aug 6 14:18 QtHelp.so
      -rwxr-xr-x 1 root admin 386800 Aug 6 14:18 QtMultimedia.so
      -rwxr-xr-x 1 root admin 1183236 Aug 6 14:18 QtNetwork.so
      -rwxr-xr-x 1 root admin 459048 Aug 6 14:18 QtOpenGL.so
      -rwxr-xr-x 1 root admin 355548 Aug 6 14:18 QtScript.so
      -rwxr-xr-x 1 root admin 69976 Aug 6 14:18 QtScriptTools.so
      -rwxr-xr-x 1 root admin 597816 Aug 6 14:18 QtSql.so
      -rwxr-xr-x 1 root admin 213780 Aug 6 14:18 QtSvg.so
      -rwxr-xr-x 1 root admin 112648 Aug 6 14:18 QtTest.so
      -rwxr-xr-x 1 root admin 957548 Aug 6 14:18 QtUiTools.so
      -rwxr-xr-x 1 root admin 733332 Aug 6 14:18 QtWebKit.so
      -rwxr-xr-x 1 root admin 582256 Aug 6 14:18 QtXml.so
      -rwxr-xr-x 1 root admin 307224 Aug 6 14:18 QtXmlPatterns.so
      -rw-r--r-- 1 root admin 1497 Aug 6 14:18 init.py
      -rw-r--r-- 1 root admin 1360 Aug 6 14:18 init.pyc
      -rw-r--r-- 1 root admin 9175 Aug 6 14:18 _utils.py
      -rw-r--r-- 1 root admin 7358 Aug 6 14:18 _utils.pyc
      drwxr-xr-x 32 root admin 1088 Aug 6 14:18 examples
      drwxr-xr-x 4 root admin 136 Aug 6 14:18 include
      -rwxr-xr-x 1 root admin 194428 Aug 6 14:18 libpyside-python2.7.1.2.2.dylib
      -rwxr-xr-x 1 root admin 194428 Aug 6 14:18 libpyside-python2.7.1.2.dylib
      -rwxr-xr-x 1 root admin 194428 Aug 6 14:18 libpyside-python2.7.dylib
      -rwxr-xr-x 1 root admin 186816 Aug 6 14:18 libshiboken-python2.7.1.2.2.dylib
      -rwxr-xr-x 1 root admin 186816 Aug 6 14:18 libshiboken-python2.7.1.2.dylib
      -rwxr-xr-x 1 root admin 186816 Aug 6 14:18 libshiboken-python2.7.dylib
      -rwxr-xr-x 1 root admin 994332 Aug 6 14:18 phonon.so
      -rwxr-xr-x 1 root admin 235232 Aug 6 14:18 pyside-lupdate
      -rwxr-xr-x 1 root admin 79196 Aug 6 14:18 pyside-rcc
      drwxr-xr-x 6 root admin 204 Aug 6 14:18 scripts
      -rwxr-xr-x 1 root admin 2267344 Aug 6 14:18 shiboken
      -rwxr-xr-x 1 root admin 21104 Aug 6 14:18 shiboken.so
      drwxr-xr-x 32 root admin 1088 Aug 6 14:18 typesystems

      So, must be some weird path thing.

      Python sys.path is:

      ['',
      '/Library/Frameworks/Python.framework/Versions/2.7/bin',
      '/Library/Frameworks/Python.framework/Versions/2.7/bin',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
      '/Library/Python/2.7/site-packages',
      '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/extensions',
      '/Users/lewislevin/.ipython']

      Seems ok. Looks like you can't run pyside_postinstall twice.

      Wish this stuff wasn't so fragile. I am sure you tend to think of QT and PySide as development tools/libraries, but for many users it is a RUNTIME for pre-existing code. So, there has to be some reasonable way to install and uninstall it.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lewisl
        wrote on last edited by
        #3

        Need to run with sudo on some machines, but not others based on privileges of target directories.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved