Skip to content
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

Breaks with Python toolchains (Bazel 0.27) #157

Closed
brandjon opened this issue May 31, 2019 · 0 comments · Fixed by #158
Closed

Breaks with Python toolchains (Bazel 0.27) #157

brandjon opened this issue May 31, 2019 · 0 comments · Fixed by #158
Assignees

Comments

@brandjon
Copy link
Member

Bazel 0.27 flips --incompatible_use_python_toolchains, which breaks this repo. Note that this pipeline was already failing due to a different error.

This flag causes Bazel to use the version of Python requested at analysis time, rather than whatever the system python command happens to be. You likely need to add python_version = "PY2" to your Python targets, and/or enable --force_host_python=PY2 in your bazelrc (if any of these are used in the host configuration).

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 a pull request may close this issue.

2 participants