Giter Club home page Giter Club logo

Comments (4)

 avatar commented on May 5, 2024

I hope you provide a simpler method for at least flowers, that does not include complete bazel build since it took 40+ mins only to fail because I did not execute configure and even then it failed again with some other error while building tensorflow. I already had a working tensorflow installation inside a virtualenv.

This was the error, it belongs to tf repo. But at this point I am just going to decode what exactly Bazel build does when its building flowers_train. And going to manually reconstruct those steps rather than dealing with building Tensorflow when I have it already installed.

3 warnings generated.
ERROR: /private/var/tmp/_bazel_aub3/cc8ffd9a09258bb3405e23c56942c269/external/tf/tensorflow/python/BUILD:915:1: SWIGing external/tf/tensorflow/python/tensorflow.i failed: swig failed: error executing command bazel-out/host/bin/external/tf/tensorflow/swig -c++ -python -module pywrap_tensorflow -lexternal/tf/tensorflow/python/client/device_lib.i -lexternal/tf/tensorflow/python/client/events_writer.i ... (remaining 190 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127.
bazel-out/host/bin/external/tf/tensorflow/swig: line 17: swig: command not found
Target //inception:flowers_train failed to build

After installing swig via brew it finally seems to be building, though not finished yet.

from models.

 avatar commented on May 5, 2024

I finally ended up editing WORKSPACE and BUILD, removed all references to tensorflow.
This ensured that bazel did not build it. Since everywhere tensorflow is imported via python, there is no need to bundle it as bazel dependancy.

Bazel wont use python present inside a virtualenv....

from models.

martinwicke avatar martinwicke commented on May 5, 2024

Sorry, I will fix this. There should be a tensorflow submodule. We may still consider requiring TF to be installed seprately, but this is a bug.

from models.

martinwicke avatar martinwicke commented on May 5, 2024

We removed the submodule. I'll close this, please reopen or make a new one if you see other issues.

Thanks!

from models.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.