in the WORKSPACE I have
`
pyenv_install(
# For an in-build runtime,
name = "in-build-python-3.9.7",
py2 = "2.7.18",
py3 = "3.9.7",
)
pyenv_install(
# For host python,
name = "host-python-3.9.7",
hermetic = False,
py2 = "2.7.18",
py3 = "3.9.6",
)
`
when I run
bazel test //my_project/...
I am getting:
ERROR: An error occurred during the fetch of repository 'in-build-python-3.9.7':
Traceback (most recent call last):
File "/private/var/tmp/_bazel_x/e415fe5bd55f40cf1f7d9331d349cada/external/dpu_rules_pyenv/pyenv/defs.bzl", line 168, column 20, in _pyenv_install_impl
_install_python(repository_ctx, py3)
File "/private/var/tmp/_bazel_x/e415fe5bd55f40cf1f7d9331d349cada/external/dpu_rules_pyenv/pyenv/defs.bzl", line 132, column 13, in _install_python
fail("pyenv failed to install version %s" % version + res.stdout + res.stderr)
Error in fail: pyenv failed to install version 3.9.7python-build: definition not found: 3.9.7
But when I do
pyenv versions
I am getting
system
3.9.5
3.9.6
- 3.9.7 (set by /Users/...)
in the WORKSPACE I have
`
pyenv_install(
# For an in-build runtime,
name = "in-build-python-3.9.7",
py2 = "2.7.18",
py3 = "3.9.7",
)
pyenv_install(
# For host python,
name = "host-python-3.9.7",
hermetic = False,
py2 = "2.7.18",
py3 = "3.9.6",
)
`
when I run
bazel test //my_project/...
I am getting:
ERROR: An error occurred during the fetch of repository 'in-build-python-3.9.7':
Traceback (most recent call last):
File "/private/var/tmp/_bazel_x/e415fe5bd55f40cf1f7d9331d349cada/external/dpu_rules_pyenv/pyenv/defs.bzl", line 168, column 20, in _pyenv_install_impl
_install_python(repository_ctx, py3)
File "/private/var/tmp/_bazel_x/e415fe5bd55f40cf1f7d9331d349cada/external/dpu_rules_pyenv/pyenv/defs.bzl", line 132, column 13, in _install_python
fail("pyenv failed to install version %s" % version + res.stdout + res.stderr)
Error in fail: pyenv failed to install version 3.9.7python-build: definition not found: 3.9.7
But when I do
pyenv versions
I am getting
system
3.9.5
3.9.6