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

Bazel error with python version on Sequoia #106

Open
nemith opened this issue Dec 23, 2024 · 0 comments
Open

Bazel error with python version on Sequoia #106

nemith opened this issue Dec 23, 2024 · 0 comments

Comments

@nemith
Copy link

nemith commented Dec 23, 2024

azel build //...
INFO: Repository fuzzing_py_deps instantiated at:
  /Users/bbennett/src/grpc-httpjson-transcoding/WORKSPACE:53:19: in <toplevel>
  /private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_fuzzing/fuzzing/init.bzl:21:16: in rules_fuzzing_init
  /private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip.bzl:98:19: in pip_install
Repository rule pip_repository defined at:
  /private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/pip_repository.bzl:369:33: in <toplevel>
ERROR: An error occurred during the fetch of repository 'fuzzing_py_deps':
   Traceback (most recent call last):
        File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/pip_repository.bzl", line 241, 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 "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/extract_wheels/extract_wheels.py", line 15, in <module>
    from python.pip_install.extract_wheels import (
    ...<5 lines>...
    )
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/extract_wheels/bazel.py", line 9, in <module>
    from python.pip_install.extract_wheels import annotation, namespace_pkgs, wheel
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/extract_wheels/wheel.py", line 6, in <module>
    import pkg_resources
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/pypi__setuptools/pkg_resources/__init__.py", line 2178, in <module>
    register_finder(pkgutil.ImpImporter, find_on_path)
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
)
ERROR: /Users/bbennett/src/grpc-httpjson-transcoding/WORKSPACE:53:19: fetching pip_repository rule //external:fuzzing_py_deps: Traceback (most recent call last):
        File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/pip_repository.bzl", line 241, 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 "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/extract_wheels/extract_wheels.py", line 15, in <module>
    from python.pip_install.extract_wheels import (
    ...<5 lines>...
    )
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/extract_wheels/bazel.py", line 9, in <module>
    from python.pip_install.extract_wheels import annotation, namespace_pkgs, wheel
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/extract_wheels/wheel.py", line 6, in <module>
    import pkg_resources
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/pypi__setuptools/pkg_resources/__init__.py", line 2178, in <module>
    register_finder(pkgutil.ImpImporter, find_on_path)
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
)
INFO: Repository go_sdk instantiated at:
  /Users/bbennett/src/grpc-httpjson-transcoding/WORKSPACE:88:16: in <toplevel>
  /private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/io_bazel_rules_docker/cc/image.bzl:41:13: in repositories
  /private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/io_bazel_rules_docker/repositories/go_repositories.bzl:40:27: in go_deps
  /private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/io_bazel_rules_go/go/private/sdk.bzl:260:28: in go_register_toolchains
  /private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/io_bazel_rules_go/go/private/sdk.bzl:92:21: in go_download_sdk
Repository rule _go_download_sdk defined at:
  /private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/io_bazel_rules_go/go/private/sdk.bzl:79:35: in <toplevel>
ERROR: /Users/bbennett/src/grpc-httpjson-transcoding/test/BUILD:35:13: //test:http_template_fuzz_test_corpus depends on @rules_fuzzing//fuzzing/tools:make_corpus_dir in repository @rules_fuzzing which failed to fetch. no such package '@fuzzing_py_deps//': rules_python failed:  (Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/extract_wheels/extract_wheels.py", line 15, in <module>
    from python.pip_install.extract_wheels import (
    ...<5 lines>...
    )
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/extract_wheels/bazel.py", line 9, in <module>
    from python.pip_install.extract_wheels import annotation, namespace_pkgs, wheel
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/rules_python/python/pip_install/extract_wheels/wheel.py", line 6, in <module>
    import pkg_resources
  File "/private/var/tmp/_bazel_bbennett/530db890694a6e99542ae87db002b01b/external/pypi__setuptools/pkg_resources/__init__.py", line 2178, in <module>
    register_finder(pkgutil.ImpImporter, find_on_path)
                    ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
)
ERROR: Analysis of target '//test:http_template_fuzz_test' failed; build aborted: 
INFO: Elapsed time: 1.138s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
    currently loading: @rules_fuzzing//fuzzing/tools
    Fetching repository @local_config_cc_toolchains; Running xcode-locator
    Fetching https://dl.google.com/go/go1.15.2.darwin-amd64.tar.gz; 4.2 MiB (4,382,688B)
    ```
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

No branches or pull requests

1 participant