-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[#37279] Document Ubuntu 24.04 Python version requirements #37297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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:
|
| For more information, see: | ||
| Python installation tips in [Developer Wiki](https://cwiki.apache.org/confluence/display/BEAM/Python+Tips#PythonTips-InstallingPythoninterpreters). | ||
| See Python installation tips in [Developer Wiki](https://cwiki.apache.org/confluence/display/BEAM/Python+Tips#PythonTips-InstallingPythoninterpreters). | ||
| - Ubuntu 24.04 includes Python 3.12 by default but lacks `python3.10`, `python3.11`, and `python3.13` commands. Builds can fail with errors like `python3.10: command not found` or `Cannot run program "python3.10": No such file or directory`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to specifically call out Ubuntu 24.04? I think the existing text is pretty clear here
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