-
Notifications
You must be signed in to change notification settings - Fork 61
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
Build breakage with upcoming Bazel change for Python toolchains #9
Comments
With the upcoming change in Bazel 0.27 in how the Python runtime is obtained (test with --incompatible_use_python_toolchains), the host configuration by default will use Python 3. This causes the build to fail because pip_import/pip_install for some reason still download the Python-2-compatible version of PyYAML. See #9. Change-Id: I7bb5408263278114160fe0308490c5803914e03c GitOrigin-RevId: 5ac81e3
Thanks for making us aware of this. We have temporarily fixed it with The problem seems to be that |
This will have to be fixed in I'm reopening this because this project is still failing in our downstream CI. Looking at one of the failures, I see here that the |
Er, I'm not reopening this because I forgot I'm posting in a repo I don't have commit rights to. Leaving that to you. =) |
Thanks for the pointer, will look into why the previous commit didn't fix it! |
Confirmed fixed in most recent CI run. Thanks! |
This project fails to build when
--incompatible_use_python_toolchains
is enabled. It looks like you have a Python 2 target used as a tool in the host configuration, but the host configuration by default uses Python 3. We don't support multiple Python versions in the host configuration, but you can choose which version is used build-wide by setting--host_force_python=PY2
. See the migration bug and bazelbuild/bazel#6443 for details.The text was updated successfully, but these errors were encountered: