Skip to content

fix(system_python): Remove printing of not always present attribute#3781

Open
limdor wants to merge 1 commit into
bazel-contrib:mainfrom
limdor:fix_rules_python
Open

fix(system_python): Remove printing of not always present attribute#3781
limdor wants to merge 1 commit into
bazel-contrib:mainfrom
limdor:fix_rules_python

Conversation

@limdor
Copy link
Copy Markdown

@limdor limdor commented May 16, 2026

This attribute is not part of the Python public API and in Debian 10 Buster (OpenJDK 11, gcc 8.3.0) it seems to not be defined.

This reverts one of the debug logging statements added in #3667

Fixes #3774

@limdor limdor requested review from aignas and rickeylev as code owners May 16, 2026 08:44
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request fixes an AttributeError on Debian 10 by removing a print_verbose call for sys._base_executable in the Python bootstrap template. Feedback was provided to correct a typo in the CHANGELOG.md file, changing the Debian 10 codename from "Booster" to "Buster".

Comment thread CHANGELOG.md Outdated
* (pypi) Fix `importlib.metadata.files` by ensuring `RECORD` is included in
installed wheel targets, except when built from sdist
([#3024](https://github.com/bazel-contrib/rules_python/issues/3024)).
* (system_python) Fix AttributeError exception on Debian 10 Booster
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo in the Debian release name. It should be Buster instead of Booster, to match the Debian 10 codename and the description in the pull request.

Suggested change
* (system_python) Fix AttributeError exception on Debian 10 Booster
* (system_python) Fix AttributeError exception on Debian 10 Buster

This attribute is not part of the Python public API and in  Debian 10
Buster (OpenJDK 11, gcc 8.3.0) it seems to not be defined.

This reverts one of the debug logging statements added in
bazel-contrib#3667

Fixes bazel-contrib#3774
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure in very basic example after upgrading from 1.9 to 2.0 on Debian 10 Buster

1 participant