question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

yarn test fails on tfjs-backend-webgl on windows

See original GitHub issue

Steps to reproduce:

  1. Get latest tfjs resource code.
  2. cd tfjs-backend-webgl
  3. yarn && yarn test Below error will be reported
iBazel [3:14PM]: Running :tfjs-backend-webgl2_test
Loading:
Loading: 0 packages loaded
Analyzing: target //tfjs-backend-webgl:tfjs-backend-webgl2_test (0 packages loaded, 0 targets configured)
Analyzing: target //tfjs-backend-webgl:tfjs-backend-webgl2_test (1 packages loaded, 35 targets configured)
Analyzing: target //tfjs-backend-webgl:tfjs-backend-webgl2_test (1 packages loaded, 35 targets configured)
Analyzing: target //tfjs-backend-webgl:tfjs-backend-webgl2_test (1 packages loaded, 35 targets configured)
Analyzing: target //tfjs-backend-webgl:tfjs-backend-webgl2_test (1 packages loaded, 35 targets configured)
Analyzing: target //tfjs-backend-webgl:tfjs-backend-webgl2_test (1 packages loaded, 35 targets configured)
INFO: Repository python3_interpreter instantiated at:
  D:/workspace/jiajia/tfjs/tfjs/WORKSPACE:231:13: in <toplevel>
Repository rule http_archive defined at:
  C:/users/jqin7/_bazel_jqin7/6lxz3o43/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
Analyzing: target //tfjs-backend-webgl:tfjs-backend-webgl2_test (1 packages loaded, 35 targets configured)
INFO: Repository 'python3_interpreter' used the following cache hits instead of downloading the corresponding file.
 * Hash 'fb1a1114ebfe9e97199603c6083e20b236a0e007a2c51f29283ffb50c1420fb2' for https://www.python.org/ftp/python/3.8.11/
Python-3.8.11.tar.xz
If the definition of 'python3_interpreter' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'python3_interpreter':
   Traceback (most recent call last):
        File "C:/users/jqin7/_bazel_jqin7/6lxz3o43/external/bazel_tools/tools/build_defs/repo/http.bzl", line 121, colum
n 10, in _http_archive_impl
                patch(ctx)
        File "C:/users/jqin7/_bazel_jqin7/6lxz3o43/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 161, colu
mn 21, in patch
                fail("Error applying patch command %s:\n%s%s" %
Error in fail: Error applying patch command
if [[ "$OSTYPE" == "darwin"* ]]; then
    ./configure --prefix=$(pwd)/bazel_install_py3 --with-openssl=$(brew --prefix openssl)
else
    ./configure --prefix=$(pwd)/bazel_install_py3
fi
:
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
checking for python3.8... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "mingw64_nt-10.0-177633"
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/c/users/jqin7/_bazel_jqin7/6lxz3o43/external/python3_interpreter':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: Error fetching repository: Traceback (most recent call last):
        File "C:/users/jqin7/_bazel_jqin7/6lxz3o43/external/bazel_tools/tools/build_defs/repo/http.bzl", line 121, colum
n 10, in _http_archive_impl
                patch(ctx)
        File "C:/users/jqin7/_bazel_jqin7/6lxz3o43/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 161, colu
mn 21, in patch
                fail("Error applying patch command %s:\n%s%s" %
Error in fail: Error applying patch command
if [[ "$OSTYPE" == "darwin"* ]]; then
    ./configure --prefix=$(pwd)/bazel_install_py3 --with-openssl=$(brew --prefix openssl)
else
    ./configure --prefix=$(pwd)/bazel_install_py3
fi
:
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
checking for python3.8... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "mingw64_nt-10.0-177633"
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/c/users/jqin7/_bazel_jqin7/6lxz3o43/external/python3_interpreter':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: D:/workspace/jiajia/tfjs/tfjs/tfjs-converter/python/BUILD:6:11: //tfjs-converter/python:python3_runtime depends o
n @python3_interpreter//:files in repository @python3_interpreter which failed to fetch. no such package '@python3_inter
preter//': Error applying patch command
if [[ "$OSTYPE" == "darwin"* ]]; then
    ./configure --prefix=$(pwd)/bazel_install_py3 --with-openssl=$(brew --prefix openssl)
else
    ./configure --prefix=$(pwd)/bazel_install_py3
fi
:
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
checking for python3.8... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "mingw64_nt-10.0-177633"
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/c/users/jqin7/_bazel_jqin7/6lxz3o43/external/python3_interpreter':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: D:/workspace/jiajia/tfjs/tfjs/tfjs-converter/python/BUILD:6:11: //tfjs-converter/python:python3_runtime depends o
n @python3_interpreter//:python3_bin in repository @python3_interpreter which failed to fetch. no such package '@python3
_interpreter//': Error applying patch command
if [[ "$OSTYPE" == "darwin"* ]]; then
    ./configure --prefix=$(pwd)/bazel_install_py3 --with-openssl=$(brew --prefix openssl)
else
    ./configure --prefix=$(pwd)/bazel_install_py3
fi
:
checking build system type... x86_64-pc-mingw64
checking host system type... x86_64-pc-mingw64
checking for python3.8... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "mingw64_nt-10.0-177633"
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/c/users/jqin7/_bazel_jqin7/6lxz3o43/external/python3_interpreter':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ERROR: Analysis of target '//tfjs-backend-webgl:tfjs-backend-webgl2_test' failed; build aborted: Analysis failed
INFO: Elapsed time: 40.135s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 35 targets configured)
FAILED: Build did NOT complete successfully (1 packages loaded, 35 targets configured)
iBazel [3:15PM]: Error running Bazel exit status 1
error Command failed with exit code 4.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gyagpcommented, Oct 11, 2021

@mattsoulanille Thanks for fixing the python issue! After the fix, I encountered another error when running “yarn test” as below: INFO: Build completed successfully, 1 total action INFO: Build completed successfully, 1 total action iBazel [6:20PM]: Starting…

################################################################################

Did you know iBazel can invoke programs like Gazelle, buildozer, and

other BUILD file generators for you automatically based on bazel output?

Documentation at: https://github.com/bazelbuild/bazel-watcher#output-runner

################################################################################

‘external’ is not recognized as an internal or external command, operable program or batch file.

Do you use Compute Engine in GCP for CI? I think it supports Windows: https://cloud.google.com/migrate/compute-engine/docs/4.8/reference/supported-os-versions.

0reactions
google-ml-butler[bot]commented, Sep 23, 2022

Are you satisfied with the resolution of your issue? Yes No

Read more comments on GitHub >

github_iconTop Results From Across the Web

@tensorflow/tfjs-backend-wasm | Yarn - Package Manager
This package adds a WebAssembly backend to TensorFlow.js. It currently supports the following models from our models repo:.
Read more >
Registration of backend webgl failed for tensorflowjs
I am getting below error, in simplest example possible with tensorflow. Code: A simple html snippet with just tfjs loading. OS: Win 10,...
Read more >
[handpose] Add WASM support. (#501) · 0855c08bf4 - tfjs-models ...
yarn add @tensorflow/tfjs-backend-webgl # or @tensorflow/tfjs-backend-wasm. ## Usage ... const isiOS = /iPhone|iPad|iPod/i.test(navigator.userAgent);.
Read more >
Use Coral Edge TPUs to run TFlite models in Node with ...
How to install and set up the tfjs-tflite-node NPM package to run TFLite ... an Intel x86-64 machine running Ubuntu 20.04 or Windows...
Read more >
tfjs/tfjs-core at master · tensorflow/tfjs · GitHub
A WebGL accelerated JavaScript library for training and deploying ML models. - tfjs/tfjs-core at master · tensorflow/tfjs.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found