(base) zhanghao@thinkcentre:~/Downloads/mycode/spu$ ./build_and_packaging.sh
Start build wheel package...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
creating build/lib.linux-x86_64-cpython-38/spu
copying spu/api.py -> build/lib.linux-x86_64-cpython-38/spu
copying spu/psi.py -> build/lib.linux-x86_64-cpython-38/spu
copying spu/__init__.py -> build/lib.linux-x86_64-cpython-38/spu
copying spu/version.py -> build/lib.linux-x86_64-cpython-38/spu
creating build/lib.linux-x86_64-cpython-38/spu/utils
copying spu/utils/frontend.py -> build/lib.linux-x86_64-cpython-38/spu/utils
copying spu/utils/distributed.py -> build/lib.linux-x86_64-cpython-38/spu/utils
copying spu/utils/simulation.py -> build/lib.linux-x86_64-cpython-38/spu/utils
copying spu/utils/__init__.py -> build/lib.linux-x86_64-cpython-38/spu/utils
running build_ext
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
DEBUG: Rule 'yacl' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1676014912 +0800"
DEBUG: Repository yacl instantiated at:
/home/admin/dev/WORKSPACE:19:9: in <toplevel>
/home/admin/dev/bazel/repositories.bzl:45:10: in spu_deps
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule git_repository defined at:
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'llvm-raw' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/xla/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'tf_runtime' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/xla/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'llvm-raw' because it already exists.
Loading: 0 packages loaded
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/410c7f3b07f1d1170b13242a2cf9af4ec7edd33f.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'com_github_grpc_grpc' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'zlib' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'upb' because it already exists.
Loading: 0 packages loaded
Loading: 0 packages loaded
currently loading: spu/utils ... (2 packages)
Analyzing: 3 targets (2 packages loaded, 0 targets configured)
INFO: Repository local_execution_config_python instantiated at:
/home/admin/dev/WORKSPACE:55:15: in <toplevel>
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/xla/workspace2.bzl:43:19: in workspace
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/workspace2.bzl:610:19: in workspace
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/workspace2.bzl:61:27: in _tf_toolchains
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/tools/toolchains/remote_config/configs.bzl:6:28: in initialize_rbe_configs
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/tools/toolchains/remote_config/rbe_config.bzl:158:27: in _tensorflow_local_config
Repository rule local_python_configure defined at:
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/py/python_configure.bzl:279:41: in <toplevel>
ERROR: An error occurred during the fetch of repository 'local_execution_config_python':
Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/py/python_configure.bzl", line 216, column 39, in _create_local_python_repository
numpy_include = _get_numpy_include(repository_ctx, python_bin) + "/numpy"
File "/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/py/python_configure.bzl", line 190, column 19, in _get_numpy_include
return execute(
File "/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/remote_config/common.bzl", line 230, column 13, in execute
fail(
Error in fail: Problem getting numpy include path.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
Is numpy installed?
ERROR: /home/admin/dev/WORKSPACE:55:15: fetching local_python_configure rule //external:local_execution_config_python: Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/py/python_configure.bzl", line 216, column 39, in _create_local_python_repository
numpy_include = _get_numpy_include(repository_ctx, python_bin) + "/numpy"
File "/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/py/python_configure.bzl", line 190, column 19, in _get_numpy_include
return execute(
File "/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/remote_config/common.bzl", line 230, column 13, in execute
fail(
Error in fail: Problem getting numpy include path.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
Is numpy installed?
INFO: Repository local_config_python instantiated at:
/home/admin/dev/WORKSPACE:55:15: in <toplevel>
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/xla/workspace2.bzl:43:19: in workspace
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/workspace2.bzl:610:19: in workspace
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/workspace2.bzl:71:21: in _tf_toolchains
Repository rule python_configure defined at:
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/third_party/py/python_configure.bzl:298:35: in <toplevel>
INFO: Repository rules_cc instantiated at:
/home/admin/dev/WORKSPACE:59:15: in <toplevel>
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/xla/workspace1.bzl:11:19: in workspace
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/tsl/workspace1.bzl:17:28: in workspace
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/rules_cuda/cuda/dependencies.bzl:72:18: in rules_cuda_dependencies
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/rules_cuda/cuda/dependencies.bzl:35:17: in _rules_cc
Repository rule http_archive defined at:
/root/.cache/bazel/_bazel_root/eceb46742416a02f6a0f8d92bc74468c/external/bazel_tools/tools/build_defs/repo/http.bzl:355:31: in <toplevel>
ERROR: Analysis of target '//spu:init' failed; build aborted: Problem getting numpy include path.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'
Is numpy installed?
INFO: Elapsed time: 81.430s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (52 packages loaded, 107 targets configured)
FAILED: Build did NOT complete successfully (52 packages loaded, 107 targets configured)
Traceback (most recent call last):
File "setup.py", line 219, in <module>
setuptools.setup(
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/root/miniconda3/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 132, in run
self.run_command(cmd_name)
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/root/miniconda3/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "setup.py", line 193, in run
return pip_run(self)
File "setup.py", line 170, in pip_run
build(True, True)
File "setup.py", line 136, in build
return bazel_invoke(
File "setup.py", line 104, in bazel_invoke
result = invoker(['bazel'] + cmdline, *args, **kwargs)
File "/root/miniconda3/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['bazel', 'build', '--verbose_failures', '-c', 'opt', '--', '//spu:init', '//spu/utils:distributed', '//spu:api']' returned non-zero exit status 1.
Build exited with non-zero.