Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. PySide installation on opensuse 11.4
Forum Updated to NodeBB v4.3 + New Features

PySide installation on opensuse 11.4

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 1 Posters 2.9k 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.
  • M Offline
    M Offline
    msifuw
    wrote on last edited by
    #1

    Hi,

    I can't get the basic test for my installation to run.

    It looks like
    @
    import PySide
    print PySide.version
    @

    And will be run like "python test.py." It tells me "ImportError: No module named PySide".

    How did I install PySide?
    Buy downloading the buildscripts from http://qt.gitorious.org/pyside/buildscripts (which is a link somewhere on pyside.org). And executing their "build_and_install" script. The script ran without giving me any obvious errors. For me it looked like a fine install.

    I also set many environment variables before executing that test.py. Like it is done in the environment.sh which came with the buildscripts.

    Just to let you know: I have installed python 2.7. The environment.sh is this:
    @
    #!/bin/sh

    export BUILD_TYPE=Release

    If you want to build a Debug release, make sure to have the

    debugging version of Python installed and uncomment this line:

    #export BUILD_TYPE=Debug

    Get the Python version as "pythonx.y", e.g. "python2.6"

    PYTHONXY=python -V 2>&1 | sed -e 's/Python 2\.\([0-9]*\).*/python2.\1/'

    export PYSIDESANDBOXPATH=$HOME/pkg/pyside-sandbox
    export PATH=$PYSIDESANDBOXPATH/bin:$PATH
    export PYTHONPATH=$PYSIDESANDBOXPATH/lib/$PYTHONXY/site-packages:$PYSIDESANDBOXPATH/lib64/$PYTHONXY/site-packages:$PYTHONPATH
    export LD_LIBRARY_PATH=$PYSIDESANDBOXPATH/lib:$LD_LIBRARY_PATH
    export PKG_CONFIG_PATH=$PYSIDESANDBOXPATH/lib/pkgconfig:$PKG_CONFIG_PATH
    export DYLD_LIBRARY_PATH=$PYSIDESANDBOXPATH/lib:$DYLD_LIBRARY_PATH

    If you want to use Qt SDK, uncomment the following line, or set the

    environment variable $QT_SDK_HOME in something like your ~/.profile

    #QT_SDK_HOME="$HOME/qtsdk-2010.05"

    if [ "$QT_SDK_HOME" != "" ]; then
    export PATH=$QT_SDK_HOME/bin:$QT_SDK_HOME/qt/bin:$PATH
    export LD_LIBRARY_PATH=$QT_SDK_HOME/lib:$LD_LIBRARY_PATH
    export QTDIR=$QT_SDK_HOME/qt:$QTDIR
    fi
    @

    Does anyone know what I missed to do or is missing?

    Btw. I was not yet able to google/search the solution by myself -.-.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      msifuw
      wrote on last edited by
      #2

      Now it works for unknown reasons? I did a reboot - so maybe I needed to start or restart some service?

      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