Pyside gives "module "QtQuick" version 2.0 is not installed"

  • Hi when i try to run my Python code:
    import sys
    from PySide.QtCore import *
    from PySide.QtGui import *
    from PySide.QtDeclarative import *

    class MainWindow(QDeclarativeView):

    def __init__(self, parent=None):
        super(MainWindow, self).__init__(parent)
        self.setWindowTitle("Main Window")
        # Renders 'view.qml'
        # QML resizes to main window


    with the qml file
    import QtQuick 2.0
    import QtQuick.Controls 1.1
    import QtQuick.Layouts 1.1

    I get a "module "QtQuick" version 2.0 is not installed" or if i change to QtQuick1.0 I get
    "module "QtQuick.Controls" is not installed" I am pretty sure the pathes are not defined well. I am using Ubuntu 12.04 with Qt5.2 installed in /opt/Qt...

    If somebody had an idea I would be very happy

    thank you,


Log in to reply