Anybody had luck with python 3.11 ? #261
Replies: 4 comments 2 replies
-
Funny enough I could only get 3.11 to work on the bzlmod branch, not 3.10 😅 |
Beta Was this translation helpful? Give feedback.
-
Woha, that is interesting! Fwiw I just tried out the |
Beta Was this translation helpful? Give feedback.
-
Ok, so it turns out that if you have ros2-humble system installed and have its My guess is the A workaround for now is to just remove |
Beta Was this translation helpful? Give feedback.
-
In principle, python3.11 should be even more safe, see https://github.com/bazelbuild/rules_python/blob/main/python/private/python_bootstrap_template.txt#L486. Another alternative is to use e.g. https://github.com/aspect-build/rules_py. This one tries to make hermetic deployments. A yet another alternative is to make your own bootstraper for py_binary/py_test, this is possible w/ Bazel 7. https://bazel.build/reference/be/python#py_runtime.bootstrap_template -- for this to work you'd need to set up your own python toolchain -- not a lot of work IMO. With your own bootstraper you could e.g. unset the pythonpath like Alex is doing. |
Beta Was this translation helpful? Give feedback.
-
Has anybody had luck with python 3.11 ?
I'm hoping to use it because it is supposed to be noticeably faster than 3.10, according to this doc.
I've been unsuccessful in my project. I've been able to reproduce the same error using one of the examples in
rules_ros2
. If I editexamples/WORKSPACE
to use 3.11 instead of 3.10, I get the following:Beta Was this translation helpful? Give feedback.
All reactions