rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

bazel_tools/tools/python/py3wrapper.sh is missing when trying to set up gazelle extension on MacOS arm64

Open kyle-hiller-nh opened this issue 3 years ago • 0 comments

🐞 bug report

Affected Rule

gazelle_binary

Is this a regression?

First time setup

Description

There is a failure to find the py3wrapper.sh after setting up the python gazelle extension. When looking at the outputs produced by build of the gazelle rule, there doesn't appear to be a bazel_tools directory, which is where the gazelle extension appears to look for py3wrapper.sh

🔬 Minimal Reproduction

the provided setup for the basic, single language gazelle binary for python produces this error

🔥 Exception or Error

gazelle: failed to wait for std_modules: exit status 1
Traceback (most recent call last):
File "/private/var/tmp/[username]/69979cb607dfc04066c2b1bad1bd5713/execroot/[projectdir]/bazel-out/darwin_arm64-fastbuild/bin/gazelle2.runfiles/rules_python/gazelle/parse", line 392, in Main() File "/private/var/tmp/bazel[username]/69979cb607dfc04066c2b1bad1bd5713/execroot/[projectdir]/bazel-out/darwin_arm64-fastbuild/bin/gazelle2.runfiles/rules_python/gazelle/parse", line 382, in Main os.execv(args[0], args) FileNotFoundError: [Errno 2] No such file or directory: '/private/var/tmp/bazel[username]/69979cb607dfc04066c2b1bad1bd5713/execroot/[projectdir]/bazel-out/darwin_arm64-fastbuild/bin/gazelle2.runfiles/bazel_tools/tools/python/py3wrapper.sh'

🌍 Your Environment

Operating System:

MacOS 12.0.1

Output of bazel version:

  
Bazelisk version: development
Build label: 5.2.0
Build target: bazel-out/darwin_arm64-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 7 16:11:09 2022 (1654618269)
Build timestamp: 1654618269
Build timestamp as int: 1654618269
  

Rules_python version:

  
0.9.0
  

Anything else relevant?

kyle-hiller-nh avatar Jun 21 '22 19:06 kyle-hiller-nh