Repository navigation
Closed
Labels
Description
Version which works correctly
git_repository(
name = "io_bazel_rules_python",
remote = "https://github.com/bazelbuild/rules_python.git",
commit = "8f3daa17c1e5050cf0382f7fe60c1cd7c7067f3c",
)
Broken version (latest master)
git_repository(
name = "io_bazel_rules_python",
remote = "https://github.com/bazelbuild/rules_python.git",
commit = "3e167dcfb17356c68588715ed324c5e9b76f391d",
)
CentOS 7 and python 2.7 failure
ERROR: error loading package '': Encountered error while reading extension file 'requirements.bzl': no such package '@requirements_xunitmerge//': pip_import failed: (Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/jenkins/.cache/bazel/_bazel_jenkins/cff2319697c0ff2c301458e924e0bef7/external/io_bazel_rules_python/tools/piptool.par/__main__.py", line 16, in <module>
File "/home/jenkins/.cache/bazel/_bazel_jenkins/cff2319697c0ff2c301458e924e0bef7/external/io_bazel_rules_python/tools/piptool.par/subpar/runtime/support.py", line 228, in setup
File "/home/jenkins/.cache/bazel/_bazel_jenkins/cff2319697c0ff2c301458e924e0bef7/external/io_bazel_rules_python/tools/piptool.par/subpar/runtime/support.py", line 209, in _setup_pkg_resources
TypeError: add() got an unexpected keyword argument 'replace'
)
INFO: Elapsed time: 4.130s
FAILED: Build did NOT complete successfully
WORKSPACE file
git_repository(
name = "io_bazel_rules_python",
remote = "https://github.com/bazelbuild/rules_python.git",
commit = "3e167dcfb17356c68588715ed324c5e9b76f391d",
)
load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")
pip_repositories()
pip_import(name = "requirements_xunitmerge", requirements = "//py:requirements.xunitmerge.txt")
load("@requirements_xunitmerge//:requirements.bzl", pip_install_xunitmerge="pip_install")
pip_install_xunitmerge()
py/requirements/xunitmerge.txt
xunitmerge
Activity
mattmoor commentedon Nov 27, 2017
@duggelz This looks like an issue with the
google/subparhook.duggelz commentedon Nov 29, 2017
If you could determine what version of setuptools is installed, it would help debugging. Something like
python2.7 -c 'import setuptools; print(setuptools.__version__)'excavador commentedon Nov 29, 2017
duggelz commentedon Nov 29, 2017
excavador commentedon Nov 30, 2017
Thank you for explanation.
We definitely need some solution of #42