icon

Support Forum

[Frage] How to get PySide6 work in Allplan2026


Hello all,

We are at the beginning of the development of an interactor script that will be embedding complex GUIs.
For this reason we would like to design the graphical part of the script by using PySide6.

After having installed PySide6 in our Allplan2026 Python3.13 instance, we cannot manage to have have it working, it systematically ends up with an ImportError message :
ImportError: DLL load failed while importing Shiboken : The specified module was not found.

It seems the Python engine embedded in Allplan 2026 cannot load the Qt6 DLLs required by Shiboken6.

Then we tried to

- copy all the necessary DLLs in the path ...\Allplan\Allplan2026\Prg\bin\Qt and reference this in the script using
qt_path = r"...\Allplan\Allplan2026\Prg\bin\Qt"
os.add_dll_directory(qt_path) --> not working...

- copy all the necessary DLLs in the path ...\Allplan\Allplan2026\Prg\Python\DLLs --> not working...

- even copy all the necessary DLLs in the root path ...\Allplan\Allplan2026\Prg --> not working...

Did some of you succeed at running PySide6 inside Allplan PythonPartsScripts and in this case what is the procedure,
or is it simply impossible to have PySide6 running inside Allplan ?

Thanks for your help

Hi,

If you need to install a specific package, please use:

InstallPythonPackage

Best
Christophe

Hi,

That's not really our concern.

Actually, PySide6 and shiboken have been installed this way.
A GUI made with PySide6 is correctly launched inside the Allplan2026 Python environment (whose site-packages hase been appended with PySide6 and shiboken),
but as soon as launched inside Allplan2026 the "ImportError" occurs as the Qt6 DLLs required by Shiboken6 seem to be unloadable.

Best

Same issue here

ImportError: DLL load failed while importing Shiboken: Le module spécifié est introuvable.

in VSCode, ok for autocomplete

Anhänge (1)

Typ: image/png
16-mal heruntergeladen
Größe: 41,72 KiB

Have you made sure that the installed "Shiboken6" version is compatible with your Python version? Could you also share the full trace-output? A small tip: Allplan works with the reloader module. I have had some issues with third party packages, that related to the reloader, so maybe thats something you could investigate...

Same issue here with all Allplan Versions.
It would be great if there was a fix. There is a lot of potential, TKinter is ...meh...

The problem is exclusively with pyside, not with the reloader or the installation of packages in general.

Hi,

There is another example of external dialog box without tkinter

Best