Skip to content

Conversation

Alami-Amine
Copy link
Contributor

@Alami-Amine Alami-Amine commented Mar 18, 2025

Problem and Fix

  • connectedhomeip Dockerfile installs an older version of PyYaml using APT (as a recommended dependenancy),

  • FuzzIntrospector later attempts to reinstall a newer version of PyYaml using pip, yet fails since pip cannot uninstall a package installed by APT.

  • Fix: stop APT from installing recommended packages --no-install-recommends

Error Log

Step #6 - "compile-libfuzzer-introspector-x86_64":   Attempting uninstall: PyYAML
Step #6 - "compile-libfuzzer-introspector-x86_64":     Found existing installation: PyYAML 5.3.1
Step #6 - "compile-libfuzzer-introspector-x86_64": �[1;31merror�[0m: �[1muninstall-distutils-installed-package�[0m
Step #6 - "compile-libfuzzer-introspector-x86_64": 
Step #6 - "compile-libfuzzer-introspector-x86_64": �[31m�[0m Cannot uninstall PyYAML 5.3.1
Step #6 - "compile-libfuzzer-introspector-x86_64": �[31m╰─>�[0m It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial 

…ng installed by APT, and FuzzIntrospector attempts to reinstall a Newer version, yet Fails
Copy link

Alami-Amine has previously contributed to projects/connectedhomeip. The previous PR was #12542

@Alami-Amine
Copy link
Contributor Author

Hello @DavidKorczynski, Could you please review?

@DavidKorczynski DavidKorczynski merged commit 9cca2f7 into google:master Mar 18, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants