PySide6 6.11.1: qtquickshapesdesignhelpersplugin.dll not found
-
Add the following code into your main.py file immediately after creating the engine:
import os from pathlib import Path from PySide6.QtCore import QCoreApplication app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine() pyside_qml_path = Path(sys.site_packages) if 'site_packages' in globals() else Path(sys.executable).parent / "Lib" / "site-packages" / "PySide6" / "qml" qml_import_path = Path(__file__).parent / ".venv" / "Lib" / "site-packages" / "PySide6" / "qml" if qml_import_path.exists(): engine.addImportPath(str(qml_import_path)) engine.load("Main.qml") if not engine.rootObjects(): sys.exit(-1) sys.exit(app.exec())@Nils-Sjoberg I get the same error as before.
Other modules such as QtQuick, QtQuick.Layouts, QtQuick.Controls and even QtQuick.Shapes are imported without errors.
-
Try installing the full PySide6 package instead of the essentials:
-
Try installing the full PySide6 package instead of the essentials:
@Nils-Sjoberg Same error as before.
PS C:\Users\favierl\Documents\temp_test_qtquick_shapes_design_helpers> uv tree Resolved 5 packages in 2ms temp-test-qtquick-shapes-design-helpers v0.1.0 └── pyside6 v6.11.1 ├── pyside6-addons v6.11.1 │ ├── pyside6-essentials v6.11.1 │ │ └── shiboken6 v6.11.1 │ └── shiboken6 v6.11.1 ├── pyside6-essentials v6.11.1 (*) └── shiboken6 v6.11.1 (*) Package tree already displayed PS C:\Users\favierl\Documents\temp_test_qtquick_shapes_design_helpers> uv run .\main.py QQmlApplicationEngine failed to load component file:///C:/Users/favierl/Documents/temp_test_qtquick_shapes_design_helpers/Main.qml:5:1: Impossible de charger la bibliothÞque C:\Users\favierl\Documents\temp_test_qtquick_shapes_design_helpers\.venv\Lib\site-packages\PySide6\qml\QtQuick\Shapes\DesignHelpers\qtquickshapesdesignhelpersplugin.dllá: Le module spÚcifiÚ est introuvable. -
Hi and welcome to devnet,
Some maybe silly questions:
- The error states that the dll is missing, but you say it's there. Is it located where the message states it is missing ?
- Can you check whether all the dependencies of this dll are findable ?
-
Hi and welcome to devnet,
Some maybe silly questions:
- The error states that the dll is missing, but you say it's there. Is it located where the message states it is missing ?
- Can you check whether all the dependencies of this dll are findable ?
Hello @SGaist,
The error states that the dll is missing, but you say it's there. Is it located where the message states it is missing ?
From my first message, the dll is located at:
C:\Users\favierl\Documents\temp_test_qtquick_shapes_design_helpers\.venv\Lib\site-packages\PySide6\qml\QtQuick\Shapes\DesignHelpers\qtquickshapesdesignhelpersplugin.dllWhile the message states that it is missing at:
C:\Users\favierl\Documents\temp_test_qtquick_shapes_design_helpers\.venv\Lib\site-packages\PySide6\qml\QtQuick\Shapes\DesignHelpers\qtquickshapesdesignhelpersplugin.dllSo this is the same path.
Can you check whether all the dependencies of this dll are findable ?
I don't know how to do that. However I checked if I could use the QtQuick.Shapes.DesignHelpers via a C++ application, not PySide6, and i can!
Interestingly, replacing the DesignHelpers folder from the .venv with the one used when compiling C++ has no effect.Does this module work on your machines with PySide6?
I even tried on a Linux computer and I still get the same error. I hope I'm doing something wrong. -
When PySide6 loads a QML plugin, the plugin DLL attempts to load additional Qt DLLs located in the main PySide6 directory (or PySide6/Qt/bin). If these paths are not registered in Python's DLL loading mechanism, the tractor will fail to load.
-
Hello @SGaist,
The error states that the dll is missing, but you say it's there. Is it located where the message states it is missing ?
From my first message, the dll is located at:
C:\Users\favierl\Documents\temp_test_qtquick_shapes_design_helpers\.venv\Lib\site-packages\PySide6\qml\QtQuick\Shapes\DesignHelpers\qtquickshapesdesignhelpersplugin.dllWhile the message states that it is missing at:
C:\Users\favierl\Documents\temp_test_qtquick_shapes_design_helpers\.venv\Lib\site-packages\PySide6\qml\QtQuick\Shapes\DesignHelpers\qtquickshapesdesignhelpersplugin.dllSo this is the same path.
Can you check whether all the dependencies of this dll are findable ?
I don't know how to do that. However I checked if I could use the QtQuick.Shapes.DesignHelpers via a C++ application, not PySide6, and i can!
Interestingly, replacing the DesignHelpers folder from the .venv with the one used when compiling C++ has no effect.Does this module work on your machines with PySide6?
I even tried on a Linux computer and I still get the same error. I hope I'm doing something wrong.@fafafa You can use a tool such as Dependencies to check what your executable/dll needs.
It also fails on macOS because of a missing framework so I am thinking that this is a packaging issue.
You can also start you script using
QT_DEBUG_PLUGINS=1 python main.pyto have more information about what is happening. -
@fafafa You can use a tool such as Dependencies to check what your executable/dll needs.
It also fails on macOS because of a missing framework so I am thinking that this is a packaging issue.
You can also start you script using
QT_DEBUG_PLUGINS=1 python main.pyto have more information about what is happening.@SGaist Using Dependencies, we see that
qtquickshapesdesignhelpersplugin.dlldepends on:Qt6Qml.dllQt6Core.dllQt6QuickShapesDesignHelpers.dll
But
Qt6QuickShapesDesignHelpers.dlldoesn't exist in the PySide6 package.
However it does exist in the C++ version which is why it was working in that case.I reported the bug at https://qt-project.atlassian.net/browse/PYSIDE-3417
Thank you for your help. -
Thanks !
Can you also update your two example files over there ? This will allow to more quickly set things up to test for the person taking the ticket on.
-
F fafafa has marked this topic as solved on