gapic-generator-python icon indicating copy to clipboard operation
gapic-generator-python copied to clipboard

Unknown Python version '3.13' when running `gbazelisk build`

Open parthea opened this issue 10 months ago • 0 comments

The error Error in fail: Unknown Python version '3.13', available values are: 3.8,3.9,3.10,3.11,3.12 appears when running gbazelisk run //tests/integration:asset_update in a Python 3.13 environment. rules_python appears in the stack trace. rules_python may need to be updated to a newer version that supports 3.13:

https://github.com/googleapis/gapic-generator-python/blob/1c6e9a4f460be0dd1eafc55b2eff964651a4e2ac/WORKSPACE#L25-L34

py3133partheniou@partheniou-vm-3:~/git/gapic-generator-python$ gbazelisk run //tests/integration:asset_update
ERROR: Traceback (most recent call last):
        File "/usr/local/google/home/partheniou/git/gapic-generator-python/WORKSPACE", line 127, column 27, in <toplevel>
                python_register_toolchains(
        File "/usr/local/google/home/partheniou/.cache/bazel/_bazel_partheniou/158c73e91735c8bd1e202dd9acfefc6b/external/rules_python/python/repositories.bzl", line 537, column 34, in python_register_toolchains
                python_version = full_version(python_version)
        File "/usr/local/google/home/partheniou/.cache/bazel/_bazel_partheniou/158c73e91735c8bd1e202dd9acfefc6b/external/rules_python/python/private/full_version.bzl", line 36, column 13, in full_version
                fail(
Error in fail: Unknown Python version '3.13', available values are: 3.8,3.9,3.10,3.11,3.12
ERROR: Error computing the main repository mapping: error loading package 'external': Package 'external' contains errors
Loading: 

parthea avatar Jun 18 '25 10:06 parthea