Skip to content

Commit cd8f1e4

Browse files
committed
temporary workaround: make sure python3-gi is not installed and pulling in an older PyGObject version
1 parent dea605e commit cd8f1e4

File tree

1 file changed

+8
-0
lines changed
  • integrations/docker/images/chip-cert-bins

1 file changed

+8
-0
lines changed

integrations/docker/images/chip-cert-bins/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,14 @@ RUN pip install --break-system-packages -r /tmp/requirements.txt && rm /tmp/requ
332332
# PIP requires MASON package compilation, which seems to require a JDK
333333
RUN set -x && DEBIAN_FRONTEND=noninteractive apt-get update; apt-get install -fy openjdk-8-jdk
334334

335+
# TODO: remove this dependency conflict workaround --> issue: #37975
336+
# python3-gi is being installed as a dependency by 'openjdk-8-jdk'. python3-gi is not wanted since it installs PyGObject 3.48.2 (which we are not using),
337+
# This issue showed up when we pinned pygobject==3.50.0 in the chip-repl in https://github.com/project-chip/connectedhomeip/pull/37948
338+
# having pygobject ==3.50.0 being installed through pip creates a conflict, and pip can not unintstall the PyGObject (python3-gi's version) because the system APT installed it
339+
# Error log:
340+
# ERROR: Cannot uninstall 'PyGObject'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
341+
RUN apt-get remove -y python3-gi
342+
335343
RUN pip install --break-system-packages --no-cache-dir \
336344
python_lib/python/obj/src/python_testing/matter_testing_infrastructure/chip-testing._build_wheel/chip_testing-*.whl \
337345
python_lib/controller/python/chip*.whl

0 commit comments

Comments
 (0)