Traceback (most recent call last):
File "/absl_app_smoke_binary.runfiles/sub+/_absl_app_smoke_binary_stage2_bootstrap.py", line 499, in
main()
File "/absl_app_smoke_binary.runfiles/sub+/_absl_app_smoke_binary_stage2_bootstrap.py", line 493, in main
_run_py_path(main_filename, args=sys.argv[1:])
File "/absl_app_smoke_binary.runfiles/sub+/_absl_app_smoke_binary_stage2_bootstrap.py", line 287, in _run_py_path
runpy.run_path(main_filename, run_name="__main__")
File "", line 291, in run_path
File "", line 98, in _run_module_code
File "", line 88, in _run_code
File "/absl_app_smoke_binary.runfiles/sub+/absl_app_smoke_binary.py", line 1, in
from absl import app
ModuleNotFoundError: No module named 'absl'
🐞 bug report
Affected Rule
py_binaryIs this a regression?
Yes, this worked in 1.6.3 and broke in 1.7.0. I bisected this to b8e32c4 as the first failing commit.
Description
Loading a native binary module (like
abseil-py) for apy_binarydefined in another module fails to find the module.🔬 Minimal Reproduction
https://github.com/mering/reproduction_rules_python_1_7
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version:Rules_python version:
Anything else relevant?