google / private-join-and-compute

Apache License 2.0
792 stars 138 forks source link

Build failed #41

Closed ruidazeng closed 1 year ago

ruidazeng commented 1 year ago

When I run bazel build //private_join_and_compute:all with bazerl version = 6.3.2, the following issue occurs:

INFO: Repository pip_deps instantiated at:
  /home/ruidazeng/private-join-and-compute/WORKSPACE:41:10: in <toplevel>
  /home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/rules_python/python/pip.bzl:211:19: in pip_parse
Repository rule pip_repository defined at:
  /home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/rules_python/python/pip_install/pip_repository.bzl:295:33: in <toplevel>
ERROR: An error occurred during the fetch of repository 'pip_deps':
   Traceback (most recent call last):
        File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/rules_python/python/pip_install/pip_repository.bzl", line 179, column 13, in _pip_repository_impl
                fail("rules_python failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: rules_python failed:  (Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/rules_python/python/pip_install/parse_requirements_to_bzl/__init__.py", line 9, in <module>
    from pip._internal.network.session import PipSession
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/network/session.py", line 29, in <module>
    from pip._internal.metadata import get_default_environment
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/metadata/__init__.py", line 3, in <module>
    from .base import BaseDistribution, BaseEnvironment, FilesystemWheel, MemoryWheel, Wheel
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/metadata/base.py", line 27, in <module>
    from pip._internal.locations import site_packages, user_site
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/locations/__init__.py", line 14, in <module>
    from . import _distutils, _sysconfig
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/locations/_distutils.py", line 9, in <module>
    from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils.cmd'
)
ERROR: /home/ruidazeng/private-join-and-compute/WORKSPACE:41:10: fetching pip_repository rule //external:pip_deps: Traceback (most recent call last):
        File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/rules_python/python/pip_install/pip_repository.bzl", line 179, column 13, in _pip_repository_impl
                fail("rules_python failed: %s (%s)" % (result.stdout, result.stderr))
Error in fail: rules_python failed:  (Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/rules_python/python/pip_install/parse_requirements_to_bzl/__init__.py", line 9, in <module>
    from pip._internal.network.session import PipSession
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/network/session.py", line 29, in <module>
    from pip._internal.metadata import get_default_environment
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/metadata/__init__.py", line 3, in <module>
    from .base import BaseDistribution, BaseEnvironment, FilesystemWheel, MemoryWheel, Wheel
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/metadata/base.py", line 27, in <module>
    from pip._internal.locations import site_packages, user_site
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/locations/__init__.py", line 14, in <module>
    from . import _distutils, _sysconfig
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/locations/_distutils.py", line 9, in <module>
    from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils.cmd'
)
ERROR: Error computing the main repository mapping: no such package '@pip_deps//': rules_python failed:  (Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/rules_python/python/pip_install/parse_requirements_to_bzl/__init__.py", line 9, in <module>
    from pip._internal.network.session import PipSession
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/network/session.py", line 29, in <module>
    from pip._internal.metadata import get_default_environment
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/metadata/__init__.py", line 3, in <module>
    from .base import BaseDistribution, BaseEnvironment, FilesystemWheel, MemoryWheel, Wheel
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/metadata/base.py", line 27, in <module>
    from pip._internal.locations import site_packages, user_site
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/locations/__init__.py", line 14, in <module>
    from . import _distutils, _sysconfig
  File "/home/ruidazeng/.cache/bazel/_bazel_ruidazeng/2053e599c9a1f51135f60eacae02d6b0/external/pypi__pip/pip/_internal/locations/_distutils.py", line 9, in <module>
    from distutils.cmd import Command as DistutilsCommand
ModuleNotFoundError: No module named 'distutils.cmd'
)
Loading: