Skip to content

Commit 8c3de05

Browse files
authored
temporary workaround: make sure python3-gi is not installed and pulling in an older PyGObject version (#37996)
1 parent 7d04796 commit 8c3de05

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
@@ -312,6 +312,14 @@ COPY --from=chip-build-cert-bins /root/connectedhomeip/integrations/mock_server
312312
# PIP requires MASON package compilation, which seems to require a JDK
313313
RUN set -x && DEBIAN_FRONTEND=noninteractive apt-get update; apt-get install -fy openjdk-8-jdk
314314

315+
# TODO: remove this dependency conflict workaround --> issue: #37975
316+
# 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),
317+
# This issue showed up when we pinned pygobject==3.50.0 in the chip-repl in https://github.com/project-chip/connectedhomeip/pull/37948
318+
# 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
319+
# Error log:
320+
# 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.
321+
RUN apt-get remove -y python3-gi
322+
315323
RUN pip install --break-system-packages --no-cache-dir \
316324
python_lib/obj/src/python_testing/matter_testing_infrastructure/chip-testing._build_wheel/chip_testing-*.whl \
317325
python_lib/controller/python/chip*.whl

0 commit comments

Comments
 (0)