Comments (2)
@ensound1,
The error seems to be a bad path. Can you please try to edit the file "tensorflow/third_party/gpus/cuda_configure.bzl", line 1400 to identify what path the code is looking for and then validate that it exists? I also suspect that the problem comes from the global environment, have you added the MVSC_tool to your path? and if so check if you have the cl.exe file inside it.
Could you try bazel clean --expunge followed by bazel sync. Also try to set the BAZEL_SH environment variable, restarting the pc and run the cmd with Administrator rights. Thank you!
from tensorflow.
if i change at line 100
def _get_msvc_compiler(repository_ctx):
vc_path = find_vc_path(repository_ctx)
print("vc_path: ", vc_path")
return find_msvc_tool(repository_ctx, vc_path, "cl.exe").replace("\", "/")
i get C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64
which exist and points to cl.exe. If i simply write cl it executes, so globally it is also set.
If i run bazel sync i get a bunch of errors... the first 2 are
C:\Users\aless\dev\tensorflow>bazel sync
INFO: Repository build_bazel_rules_swift_local_config instantiated at:
C:/users/aless/dev/tensorflow/WORKSPACE:23:14: in
C:/users/aless/dev/tensorflow/tensorflow/workspace0.bzl:125:29: in workspace
C:/users/aless/_bazel_aless/ozqc7q5z/external/build_bazel_rules_swift/swift/repositories.bzl:123:11: in swift_rules_dependencies
C:/users/aless/_bazel_aless/ozqc7q5z/external/build_bazel_rules_swift/swift/repositories.bzl:32:18: in _maybe
Repository rule swift_autoconfiguration defined at:
C:/users/aless/_bazel_aless/ozqc7q5z/external/build_bazel_rules_swift/swift/internal/swift_autoconfiguration.bzl:302:42: in
ERROR: An error occurred during the fetch of repository 'build_bazel_rules_swift_local_config':
Traceback (most recent call last):
File "C:/users/aless/_bazel_aless/ozqc7q5z/external/build_bazel_rules_swift/swift/internal/swift_autoconfiguration.bzl", line 300, column 32, in _swift_autoconfiguration_impl
_create_linux_toolchain(repository_ctx)
File "C:/users/aless/_bazel_aless/ozqc7q5z/external/build_bazel_rules_swift/swift/internal/swift_autoconfiguration.bzl", line 212, column 13, in _create_linux_toolchain
fail("ERROR: rules_swift uses Bazel's CROSSTOOL to link, but Swift " +
Error in fail: ERROR: rules_swift uses Bazel's CROSSTOOL to link, but Swift requires that the driver used is clang. Please set CC=clang
in your environment before invoking Bazel.
ERROR: C:/users/aless/dev/tensorflow/WORKSPACE:23:14: fetching swift_autoconfiguration rule //external:build_bazel_rules_swift_local_config: Traceback (most recent call last):
File "C:/users/aless/_bazel_aless/ozqc7q5z/external/build_bazel_rules_swift/swift/internal/swift_autoconfiguration.bzl", line 300, column 32, in _swift_autoconfiguration_impl
_create_linux_toolchain(repository_ctx)
File "C:/users/aless/_bazel_aless/ozqc7q5z/external/build_bazel_rules_swift/swift/internal/swift_autoconfiguration.bzl", line 212, column 13, in _create_linux_toolchain
fail("ERROR: rules_swift uses Bazel's CROSSTOOL to link, but Swift " +
Error in fail: ERROR: rules_swift uses Bazel's CROSSTOOL to link, but Swift requires that the driver used is clang. Please set CC=clang
in your environment before invoking Bazel.
INFO: Repository sigbuild-r2.10-python3.7_config_nccl instantiated at:
C:/users/aless/dev/tensorflow/WORKSPACE:15:14: in
C:/users/aless/dev/tensorflow/tensorflow/workspace2.bzl:879:19: in workspace
C:/users/aless/dev/tensorflow/tensorflow/workspace2.bzl:86:27: in _tf_toolchains
C:/users/aless/dev/tensorflow/tensorflow/tools/toolchains/remote_config/configs.bzl:257:24: in initialize_rbe_configs
C:/users/aless/dev/tensorflow/tensorflow/tools/toolchains/remote_config/rbe_config.bzl:184:30: in sigbuild_tf_configs
Repository rule remote_nccl_configure defined at:
C:/users/aless/dev/tensorflow/third_party/nccl/nccl_configure.bzl:134:40: in
ERROR: An error occurred during the fetch of repository 'sigbuild-r2.10-python3.7_config_nccl':
Traceback (most recent call last):
File "C:/users/aless/dev/tensorflow/third_party/nccl/nccl_configure.bzl", line 77, column 35, in _create_local_nccl_repository
cuda_config = find_cuda_config(repository_ctx, find_cuda_config_path, ["cuda"])
File "C:/users/aless/dev/tensorflow/third_party/gpus/cuda_configure.bzl", line 649, column 41, in find_cuda_config
exec_result = _exec_find_cuda_config(repository_ctx, script_path, cuda_libraries)
File "C:/users/aless/dev/tensorflow/third_party/gpus/cuda_configure.bzl", line 643, column 19, in _exec_find_cuda_config
return execute(repository_ctx, [python_bin, "-c", decompress_and_execute_cmd])
File "C:/users/aless/dev/tensorflow/third_party/remote_config/common.bzl", line 230, column 13, in execute
fail(
Error in fail: Repository command failed
java.io.IOException: ERROR: src/main/native/windows/process.cc(202): CreateProcessW("C:\users\aless_bazel_aless\ozqc7q5z\external\sigbuild-r2.10-python3.7_config_nccl\usr\bin\python3" -c "from zlib import decompress;from base64 import b64decode;from os import system;script = decompress(b64decode('eJzdPGtz48aR3/krJtjbEqilIMmXcuV4kVOytHvWRZG2JO76UhLDjIAhBS8I8ACQEpPKf093zwODAUC9LHvLqvKaAKZ7unv6Oa837ChbrPN4dluyb/b2/4uNbgUbibTI8g9JdscOl+VtlhcBO0wSdoHNCnYhCpGvRBT03vTesNM4hOYiYss0EjkrAf5wwUP4n/oyYJ9FXsRZyr4J9piPDTz1yev/N2BYZ0s252uWZiVbFgJQxAWbxolg4j4Ui5LFKQuz+SKJeRoKdheXt9SNQgJk(...)): Impossibile trovare il file specificato.
(error: 2)
i dont really understand why i read linux while im on windows
from tensorflow.
Related Issues (20)
- ValueError: Invalid dtype: str768 HOT 1
- Infinity loop when try to save model with input_signatures on funtion decorator HOT 3
- Tensorflow does not recognice GPU no matter what HOT 2
- __dict__ error when saving a model using tf.saved_model.save(model, modelSavedPath)
- softplus on zero values is incorrect HOT 3
- We integrate tensorflow movenet with our webapp, and it stopped working (it worked two weeks ago) with the following error message, what can be the possible reasons and how to fix it? HOT 2
- Tensorflow TF ops - CPU Factory not registered HOT 8
- Complex dtype input for keras layer in tf2.16+ HOT 1
- [Android x86_64] [TFLite] `Fatal signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0` crash from `libtensorflowlite.so` HOT 1
- [DOCS] Missing complex input for Round op HOT 1
- Ensemble provides either correct or (the same) incorrect inference results HOT 2
- tf.keras.utils.plot_model doesn't work HOT 1
- tf.raw_ops.Unbatch aborts with "Check failed: d < dims()" HOT 6
- Incorrect documentation of the hard_sigmoid activation function (TensorFlow 2.16.1) HOT 4
- CategoryEncoding layer with output_mode count as part of a model no longer working in TensorFlow 2.16.1 HOT 1
- TimeDistributed layer with nested model no longer working in TensorFlow 2.16.1
- Loading of a model with a Bidirectional LSTM layer no longer working in TensorFlow 2.16.1
- Documentation for RaggedTensors does not match Input layer documentation HOT 2
- Tensorflow doesn't work on my data HOT 2
- Segmentation fault when using tflite_model_maker searcher.TextDataLoader.create(EmbeddingModel, l2_normalize=True)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow.