Congratulations to our 2022 Qt Champions!

PyQt3D and Pyinstaller

  • Hello to everybody!

    I'm trying to build my application to .exe with PyInstaller, but it seems, that PyQt3D module doesn't imports PyQt3D module.
    It is impossible to build application with Qt3D with PyInstaller, or I need some extra configuration for this? I tried to add PyQt3D module in hidden-imports, but still have an error:

    Traceback (most recent call last):
      File "***\", line 1, in <module>
        from PyQt5 import QtWidgets, Qt3DCore, Qt3DExtras, Qt3DRender, QtGui, QtCore
    ModuleNotFoundError: No module named 'PyQt5.Qt3DInput'
    [13512] Failed to execute script main

    Thank you for your reply.

  • @xenonex said in PyQt3D and Pyinstaller:


    Very sorry, but it seems, that I just needed to pass --hidden-import PyQt5.Qt3DInput to PyInstaller.
    But still, I've got this:

    Qt3D.Renderer.Jobs: unsupported format encountered (stl)

    When I'm running my application in PyCharm everething is OK.
    Maybe anyone can help with this?

Log in to reply