Skip to content

Commit f17f191

Browse files
committed
install PySide6 Essentials only; Dockerfile revised
1 parent ff41e74 commit f17f191

File tree

3 files changed

+29
-51
lines changed

3 files changed

+29
-51
lines changed

Dockerfile

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,32 @@ ENV PYTHONDONTWRITEBYTECODE=1
1212
ENV PYTHONUNBUFFERED=1
1313

1414
###############################################################################
15-
# https://doc.qt.io/qt-5/linux-requirements.html
16-
# export QT_DEBUG_PLUGINS=1
17-
RUN apt update && apt install -y libxrender1 libxcb-render0 libxcb-render-util0 \
18-
libxcb-shape0 libxcb-randr0 libxcb-xfixes0 libxcb-sync1 libxcb-shm0 \
19-
libxcb-icccm4 libxcb-keysyms1 libxcb-image0 libxkbcommon0 \
20-
libxkbcommon-x11-0 libfontconfig1 libfreetype6 libxext6 libx11-6 libxcb1 \
21-
libx11-xcb1 libsm6 libice6 libglibd-2.0-0
22-
# Additional requirements
23-
RUN apt install -y libgl1 libxcb-xinerama0 libdbus-1-3
24-
# Qt6 QtGui requires libEGL.so.1, libxcb-cursor0 for Qt xcb platform plugin
25-
RUN apt install -y libegl1 libxcb-cursor0
26-
# qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
27-
RUN apt install -y libwayland-egl1 libwayland-cursor0
15+
# Requirements: https://doc.qt.io/qt-5/linux-requirements.html | https://doc.qt.io/qt-6/linux-requirements.html
16+
# Additional libraries for Qt5: libxcb-xinerama0 libxcursor1
17+
# Check module load: ldd $(python -c "from PySide6 import QtWidgets as m; print(m.__file__)")
18+
# Check Qt plugins load: QT_DEBUG_PLUGINS=1
19+
# Check all libs: find /usr/local/lib/python3.12/site-packages/PySide6 -type f -executable ! -name "*.py" ! -path "*/scripts/*" | xargs -I {} sh -c 'echo {}; ldd "{}" | grep "not found"'
20+
# Force Wayland or XCB: QT_QPA_PLATFORM=wayland | wayland-egl | xcb
21+
RUN apt update && apt install -y \
22+
libgl1 \
23+
libxkbcommon0 \
24+
libegl1 \
25+
libfontconfig1 \
26+
libglib2.0-0 \
27+
libdbus-1-3 \
28+
libxcb-cursor0 \
29+
libxkbcommon-x11-0 \
30+
libxcb-icccm4 \
31+
libxcb-keysyms1 \
32+
libxcb-shape0 \
33+
libwayland-cursor0 \
34+
libatomic1 \
35+
libwayland-egl1 \
36+
libxrender1 \
37+
libice6 \
38+
libsm6 \
39+
&& rm -rf /var/lib/apt/lists/*
40+
2841
###############################################################################
2942

3043
WORKDIR /app

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build-backend = "hatchling.build"
1818

1919
[dependency-groups]
2020
dev = [
21-
"pyside6>=6.8.2.1",
21+
"pyside6-essentials>=6.8.2.1",
2222
]
2323

2424
[tool.ruff]

uv.lock

Lines changed: 2 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)