-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
6.9.3
-
None
-
Docker Windows container winamd64/python:3.13.5-windowsservercore
[I am not sure the docker compatibility is part of your job, but I take my chance]
I have a python PySide6 program that I want to compile and test on a container. The program runs on Windows, so I have a Windows container:
FROM winamd64/python:3.13.5-windowsservercore # .. install choco, git bash, vcredist2017, visualstudio2022buildtools, visualstudio2022-workload-vctools, python3 --version 3.13.7
Then I build (with `setuptools`) and run my program within the container.
Everything was fine until a colleague added an import:
from PySide6.QtWebEngineWidgets import QWebEngineView ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -> ImportError: DLL load failed while importing QtWebEngineWidgets: The specified module could not be found
The import works fine on our Windows 11 machines, but not on the docker container.
What I tried so far:
- I compared with Meld my `.venv/313/Lib/site-packages/PySide6` and `shiboken6` on my machine and on the container, they are identical.
- I tried to use `dlltracer`, which showed me that 7 packages "Loaded" but absent from "Failed" (MSVCP140.dll, Shiboken.pyd, VCRUNTIME140_1.dll, _bz2.pyd, _lzma.pyd, kernel.appcore.dll, shiboken6.abi3.dll), but they are all in the container
- `EXPORT_QTA_PLAFORM=offscreen` helped me for the unit tests that could not start, but not helpful here
- I tried to use `FROM mcr.microsoft.com/windows:20H2`, but without success
Can my docker container import QtWebEngineWidgets, or is not designed for such imports? Are there any compatibility issues between pyd/dll files and the docker container system? How to debug this?
For information, I managed to see that Qt6WebEngineCore.dll could not be imported by python on the container (with ctype.WINDLL()). But strangely enough, all of its children dependencies found by ` dumpbin` could!
Thank you very much for any help!