[#37279] Document Ubuntu 24.04 Python version requirements#37297
[#37279] Document Ubuntu 24.04 Python version requirements#37297damccorm merged 2 commits intoapache:masterfrom
Conversation
Ubuntu 24.04 defaults to Python 3.12 and lacks python3.10, python3.11, and python3.13 commands in default repositories. This causes build failures when running Python SDK test suites. Added documentation explaining: - Which Python versions are missing on Ubuntu 24.04 - Common error messages developers will encounter - Workarounds using pyenv or symlinks Fixes apache#37279 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Summary of ChangesHello @PDGGK, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the developer onboarding experience by documenting critical Python version compatibility issues specific to Ubuntu 24.04. It aims to prevent common build failures for new contributors by explaining why certain Python versions are missing and offering clear, actionable solutions, thereby streamlining the setup process for running Python SDK test suites. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Assigning reviewers: R: @Abacn added as fallback since no labels match configuration Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
|
Reminder, please take a look at this pr: @Abacn |
|
Assigning new set of reviewers because Pr has gone too long without review. If you would like to opt out of this review, comment R: @Abacn added as fallback since no labels match configuration Available commands:
|
|
Ubuntu 24.04 is now the default LTS and many new contributors are hitting this issue. The current text says "install multiple Python versions" but doesn't show the specific error messages users encounter. Adding the error examples ( That said, if you feel it's redundant, I'm happy to simplify or drop the Ubuntu-specific mention. |
|
I think its helpful to explicitly call out the error message/fix, but I don't think its an ubuntu 24.04 specific issue. So I'd recommend dropping that, and just calling out the error |
Address review feedback: the Python version error is not Ubuntu-specific, so remove the distro mention and keep the generic error message and fix. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
What changes are being proposed in this pull request?
This PR addresses issue #37279 by documenting the Python version availability issues on Ubuntu 24.04.
Ubuntu 24.04 ships with Python 3.12 by default but lacks
python3.10,python3.11, andpython3.13commands in the default repositories. This causes build failures when developers try to run Python SDK test suites that require multiple Python versions.Why are these changes needed?
New contributors using Ubuntu 24.04 frequently encounter confusing build errors like:
python3.10: command not foundCannot run program "python3.10": No such file or directoryThis documentation update helps developers:
Changes made:
pyenvto install and make multiple versions available/usr/local/bin/Testing
Fixes #37279