Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Deploying PyQt5 QtQuick application with pyinstaller: 'module "QtQuick" is not installed'

    Installation and Deployment
    1
    2
    1656
    Loading More Posts
    • 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.
    • T
      tyrathect last edited by

      I've tried to deploy one of the PyQt5 examples, the one in C:\Python34\Lib\site-packages\PyQt5\examples\quick\models\stringlistmodel.

      I ran pyinstaller in that directory, and it generated the build and dist folders. When I try to run the executable in the dist folder, I get the following error:

      qrc:view.qml:41:1: module "QtQuick" is not installed

      How can I solve this?

      1 Reply Last reply Reply Quote 0
      • T
        tyrathect last edited by

        I figured it out. I had to copy the file C:\Python34\Lib\site-packages\PyQt5\qml\QtQuick.2\qmldir to C:\Python34\Lib\site-packages\PyQt5\examples\quick\models\stringlistmod el\dist\stringlistmodel\qml\QtQuick.2. I think pyinstaller should've copied that file as well, but it didn't.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post