Skip to contentSkip to conversation

Dockerfile: Include python3-tk for FATtools

PATCH In review Tom Rini 2 participants 3 messages Nov 13, 2025 – Nov 26, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH v2 1/1 Dockerfile: Include python3-tk for FATtools

In some cases our tests for exFAT don't run because we fail to be able to create the underlying image. This is in turn because while creation of the image succeeds, it seems that some way of how we invoke FATtools wants to import tkinter, that fails and so the test stops there. Having tkinter available (and then presumably a fallback to non-GUI because it's not available) leads to the tests running as expected.

---
Changes in v2:
- Alphabetize, per Marek

Cc Marek Vasut <[email protected]>
---
 tools/docker/Dockerfile | 1 +
 1 file changed, 1 insertion(+)
tools/docker/Dockerfile +1 -0
index d2384219c06a..91edd22918b4 100644
@@ -126,6 +126,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
 	python3-pip \
 	python3-pyelftools \
 	python3-sphinx \
+	python3-tk \
 	python3-tomli \
 	python3-venv \
 	rpm2cpio \
Signature · 1 line
2.43.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 7 lines · Tom Rini

In some cases our tests for exFAT don't run because we fail to be able to create the underlying image. This is in turn because while creation of the image succeeds, it seems that some way of how we invoke FATtools wants to import tkinter, that fails and so the test stops there. Having tkinter available (and then presumably a fallback to non-GUI because it's not available) leads to the tests running as expected.

Quoted 5 lines

---
Changes in v2:
- Alphabetize, per Marek

Thanks

author
#2 lore raw
In reply to Tom Rini
Quoted 8 lines · Tom Rini

In some cases our tests for exFAT don't run because we fail to be able to create the underlying image. This is in turn because while creation of the image succeeds, it seems that some way of how we invoke FATtools wants to import tkinter, that fails and so the test stops there. Having tkinter available (and then presumably a fallback to non-GUI because it's not available) leads to the tests running as expected.

[...]

Applied to u-boot/master, thanks!

[1/1] Dockerfile: Include python3-tk for FATtools

      commit: bc4a1e56bfcdd70a5307c91c94dafcf6bb27da93
Signature · 1 line
Tom