You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --noexperimental_python_import_all_repositories setting is useful in working around bazelbuild/bazel#14640 with the PYTHONPATH becoming too large if you have python targets with large numbers of dependencies.
But rules_apple does not seem to be compatible with this. Specifically, when using apple_core_ml_library with --noexperimental_python_import_all_repositories
ERROR:*****/BUILD:346:22: MlmodelGenerate ****/****.m failed: (Exit 1): xctoolrunner failed: error executing MlmodelGenerate command (from target //****:****.CoreML) bazel-out/darwin_arm64-opt-exec-ST-13d3ddad9198/bin/external/build_bazel_rules_apple/tools/xctoolrunner/xctoolrunner coremlc generate ... (remaining 2 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
Traceback (most recent call last):
File "****/../build_bazel_rules_apple/tools/xctoolrunner/xctoolrunner.py", line 43, in <module>
from tools.wrapper_common import execute
ModuleNotFoundError: No module named 'tools'
The text was updated successfully, but these errors were encountered:
This is an unfortunate entangling of rules_python dependencies with rules_apple internals, which happens to use a Python based xctoolrunner.py which should in principle have its separate hermeticPYTHONPATH.
The
--noexperimental_python_import_all_repositories
setting is useful in working around bazelbuild/bazel#14640 with the PYTHONPATH becoming too large if you have python targets with large numbers of dependencies.But
rules_apple
does not seem to be compatible with this. Specifically, when usingapple_core_ml_library
with--noexperimental_python_import_all_repositories
The text was updated successfully, but these errors were encountered: