Giter VIP home page Giter VIP logo

Comments (10)

Irtza avatar Irtza commented on May 19, 2024 2

I figured it out, I was using anaconda distro..
NumPy dependency was not a problem as TF was built from source and was running fine.
$ conda update numpy seemed to work.. not sure why.. but I hope it helps.

from serving.

kirilg avatar kirilg commented on May 19, 2024

@Irtza Thanks! and sorry for the delay in getting back to you!
We haven't done that much testing on the GPU build in the open source release, and I wasn't sure what would make this problem GPU specific and didn't have time yet to try and reproduce the failure. Glad it worked out for you and thanks for posting the followup fix!

from serving.

Irtza avatar Irtza commented on May 19, 2024

@kirilg not a GPU specific problem I think, I think it was just conda's view of numpy package not consistent with TensorFlow's.. updating numpy through conda, fixed that.

from serving.

vodp avatar vodp commented on May 19, 2024

I have the same problem. I am using Ubuntu 15.10 with NumPy 1.11 and has no iead why TensorFlow cannot find my numpy.

from serving.

Irtza avatar Irtza commented on May 19, 2024

@vodp do you have an anaconda distro of python ? if yes, update conda . and then update numpy through anacoda. $conda update numpy

from serving.

vodp avatar vodp commented on May 19, 2024

No I am not using Anaconda. In Ubuntu I just built numpy from source.

from serving.

vodp avatar vodp commented on May 19, 2024

After removing the numpy compiled from source with linkage customization to openblas, re-install numpy from Ubuntu distro sudo apt-get install python-numpy and rebuild with bazel, the error above disappeared but I get a new mystical error

ERROR: /amy/serving/tensorflow_serving/session_bundle/example/BUILD:34:1: Executing genrule //tensorflow_serving/session_bundle/example:half_plus_two failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 245.

from serving.

kirilg avatar kirilg commented on May 19, 2024

I'm guessing the error message will include something about not finding the generated output in .runfiles/tf_serving/tensorflow_serving/... in which case the problem could be fixed in one of two ways:

  1. Upgrade Bazel to version 0.2.2+
  2. For older versions of Bazel, simply run bazel clean once and recompile with bazel build ... as usual. The problem is that older versions of Bazel don't automatically regenerate runfiles in the newly introduced workspace name and still use the old path. Cleaning (only once the first time) and recompiling should fix the problem.

from serving.

vodp avatar vodp commented on May 19, 2024

Actually I just install the latest Bazel

............
Build label: 0.2.2b
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Apr 25 08:08:53 2016 (1461571733)
Build timestamp: 1461571733
Build timestamp as int: 1461571733

bazel clean and rebuild do not help. The error message is very short so that I could not spot where the problem come from

INFO: From Compiling external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc [for host]:
external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc: In member function 'virtual void tensorflow::UpdateFertileSlots::Compute(tensorflow::OpKernelContext*)':
external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc:187:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (; i < values->size(); ++i) {
              ^
external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc: In member function 'void tensorflow::UpdateFertileSlots::SetNewNonFertileLeaves(tensorflow::UpdateFertileSlots::HeapValuesType*, int, tensorflow::OpKernelContext*)':
external/tf/tensorflow/contrib/tensor_forest/core/ops/update_fertile_slots_op.cc:351:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int32 i = start; i < values->size(); ++i) {
                             ^
ERROR: /amy/serving/tensorflow_serving/session_bundle/example/BUILD:34:1: Executing genrule //tensorflow_serving/session_bundle/example:half_plus_two failed: bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 245.

from serving.

RobeDM avatar RobeDM commented on May 19, 2024

I had a similar problem in ubuntu.
I had updated numpy using: pip install --upgrade numpy but I still had the same problem when import tensorflow:
ImportError: numpy.core.multiarray failed to import

The reason was that I had two different numpy installations (one using apt-get and one using pip). For any strange reason tensorflow was using the installation that was installled using apt-get instead of the one using pip (by default when I do import numpy, python uses the one installed with pip).

I solved it unistalling the apt-get version: apt-get remove python-numpy

from serving.

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.