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. Deploying PyQt5 QtQuick application with pyinstaller: 'module "QtQuick" is not installed'
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 1.8k Views
  • 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 Offline
    T Offline
    tyrathect
    wrote on last edited by
    #1

    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
    0
    • T Offline
      T Offline
      tyrathect
      wrote on last edited by
      #2

      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
      0

      • Login

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