Skip to content

Fix Python version compatibility for TensorFlow dependency constraints#167

Open
Shahila-Shifani wants to merge 1 commit into
google:copybara_pushfrom
Shahila-Shifani:fix-dependabot-python-upgrade
Open

Fix Python version compatibility for TensorFlow dependency constraints#167
Shahila-Shifani wants to merge 1 commit into
google:copybara_pushfrom
Shahila-Shifani:fix-dependabot-python-upgrade

Conversation

@Shahila-Shifani
Copy link
Copy Markdown

Summary

Updated Python version constraints to ensure compatibility with TensorFlow 2.15.1 and dependent packages.

Changes

  • Adjusted Python range from >=3.10,<3.12 to >=3.11,<3.13
  • Regenerated Poetry lock file using Python 3.11 environment

Reason

Attempted upgrade to Python 3.13, but dependency resolution failed due to tensorflow and tensorflow-io-gcs-filesystem not supporting Python 3.13.

This change ensures the project remains installable while staying aligned with supported Python versions.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 14, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Shahila-Shifani
Copy link
Copy Markdown
Author

Shahila-Shifani commented May 15, 2026

Hi Michael Rossetti ( @s2t2 ),

I’ve updated the PR to fix Python version compatibility for TensorFlow 2.15.1 (now constrained to Python <3.13).
It has been tested locally with Python 3.11 and poetry lock runs successfully.

Could you please review and approve the workflow when convenient?
Fixes #147

@s2t2
Copy link
Copy Markdown
Collaborator

s2t2 commented May 15, 2026

Thank you.

It looks like we may need to update the GitHub actions workflows as well to test against the newer versions.

We may also need to relax the python version check a bit to ensure we can test against a few recent Python versions.

https://github.com/google/sbsim/actions/runs/25878379547/job/76248048149?pr=167


Notice:  A new release of pip is available: 23.0.1 -> 26.1.1
Notice:  To update, run: pip install --upgrade pip

Current Python version (3.10.15) is not allowed by the project (>=3.11,<3.13).
Please change python executable via the "env use" command.
Error: Process completed with exit code 1.

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.

2 participants