-
Notifications
You must be signed in to change notification settings - Fork 2.3k
bazel: set default python to 3.13 and add 3.14 support #4863
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
Open
Mizux
wants to merge
1
commit into
main
Choose a base branch
from
mizux/dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Got lots of errors with the trace:
Could be related t othe use of an older version of cython... DevNoteTo reproduce cd bazel
# Build and spawn a local archlinux container with a bash (@docker #) to reproduce the issue
# `make` to see usage
make sh_amd64_archlinux_devel
root@docker % bazel --version
bazel 8.4.2
root@docker % python --version
Python 3.13.7
root@docker % bazel run @rules_python//python/bin:python --@rules_python//python/config_settings:python_version=3.13 -- --version
...
Python 3.13.6
root@docker % bazel test --config=ci //ortools/linear_solver/python:model_builder_helper_test
...
//ortools/linear_solver/python:model_builder_helper_test FAILED in 1.0s Full Trace:
side note: inside the docker, forcing python 3.12, this is working:
So it seems the toolchain 3.13 is not working as expected somehow |
same issue locally on my gLinux > git log -1
commit 6f160b1e62d9c0f99afac0f5453526e50e5c34b6 (HEAD -> mizux/dev, origin/mizux/dev)
> python3 -VV
Python 3.13.6 (main, Aug 7 2025, 10:53:54) [GCC 14.2.0]
> bazel test --config=ci //ortools/linear_solver/python:model_builder_helper_test
...
FAIL: //ortools/linear_solver/python:model_builder_helper_test (Exit 1) (see ~/.../execroot/_main/bazel-out/k8-fastbuild/testlogs/ortools/linear_solver/python/model_builder_helper_test/test.log)
INFO: From Testing //ortools/linear_solver/python:model_builder_helper_test:
==================== Test output for //ortools/linear_solver/python:model_builder_helper_test:
Traceback (most recent call last):
File "~/.../sandbox/linux-sandbox/1633/execroot/_main/bazel-out/k8-fastbuild/bin/ortools/linear_solver/python/model_builder_helper_test.runfiles/_main/ortools/linear_solver/python/model_builder_helper_test.py", line 24, in <module>
from ortools.linear_solver.python import model_builder_helper
ImportError: ~/.../sandbox/linux-sandbox/1633/execroot/_main/bazel-out/k8-fastbuild/bin/ortools/linear_solver/python/model_builder_helper_test.runfiles/_main/ortools/linear_solver/python/model_builder_helper.so: undefined symbol: _PyThreadState_UncheckedGet
================================================================================ |
c79a6db
to
93afbbe
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Try to: