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

  • 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?

  • 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.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.