serving icon indicating copy to clipboard operation
serving copied to clipboard

NotFoundError in mnist_export example

Open moskomule opened this issue 9 years ago • 25 comments

Hello, I'm trying tensorflow_serving according to the doc . The build and test have passed.

While

bazel build //tensorflow_serving/example:mnist_export

succeeds,

bazel-bin/tensorflow_serving/example/mnist_export /tmp/mnist_model

fails and shows the error message as below.

Traceback (most recent call last):
  File "/home/usr/serving/bazel-bin/tensorflow_serving/example/mnist_export.runfiles/tf_serving/tensorflow_serving/example/mnist_export.py", line 36, in <module>
    from tensorflow.contrib.session_bundle import exporter
  File "/home/usr/serving/bazel-bin/tensorflow_serving/example/mnist_export.runfiles/org_tensorflow/tensorflow/contrib/__init__.py", line 34, in <module>
    from tensorflow.contrib import image
  File "/home/usr/serving/bazel-bin/tensorflow_serving/example/mnist_export.runfiles/org_tensorflow/tensorflow/contrib/image/__init__.py", line 39, in <module>
    from tensorflow.contrib.image.python.ops.single_image_random_dot_stereograms import single_image_random_dot_stereograms
  File "/home/usr/serving/bazel-bin/tensorflow_serving/example/mnist_export.runfiles/org_tensorflow/tensorflow/contrib/image/python/ops/single_image_random_dot_stereograms.py", line 26, in <module>
    "_single_image_random_dot_stereograms.so"))
  File "/home/usr/serving/bazel-bin/tensorflow_serving/example/mnist_export.runfiles/org_tensorflow/tensorflow/contrib/util/loader.py", line 55, in load_op_library
    ret = load_library.load_op_library(path)
  File "/home/usr/serving/bazel-bin/tensorflow_serving/example/mnist_export.runfiles/org_tensorflow/tensorflow/python/framework/load_library.py", line 64, in load_op_library
    None, None, error_msg, error_code)
tensorflow.python.framework.errors_impl.NotFoundError: /home/usr/serving/bazel-bin/tensorflow_serving/example/mnist_export.runfiles/org_tensorflow/tensorflow/contrib/image/python/ops/_single_image_random_dot_stereograms.so: undefined symbol: _ZN6google8protobuf8internal10LogMessageC1ENS0_8LogLevelEPKci

I use VirtualBox and the guest OS is Ubuntu 16.04 and the host OS is the latest macOS.

Thank you.

moskomule avatar Apr 26 '17 09:04 moskomule

@Anirudh1313 I am not sure about this question,but I had executed the code bazel clean after change my bazel version.then repeat the whole build process, the code had been successfully executed.

fennudehaogua avatar Feb 02 '18 01:02 fennudehaogua

Hi. I have been following https://www.tensorflow.org/serving/serving_advanced tutorial for my model deployment. And while invoking the endpoint by the client I end up getting the following error - tensorflow.python.framework.errors_impl.NotFoundError: /home/loonycorn/serving/bazel-bin/tensorflow_serving/example/mnist_client.runfiles/org_tensorflow/tensorflow/contrib/data/python/ops/../../_prefetching_ops.so: undefined symbol: ZN6google8protobuf8internal9ArenaImpl10AddCleanupEPvPFvS3_E

Could you please help me understand this. Or if possible can you help me with a suitable client implementation for mnist_model.

Thanks in advance.

soumya-ranjan-sahoo avatar Mar 06 '18 05:03 soumya-ranjan-sahoo

Hi!

I don't know why that error is there but feel free to take a look at this simple rest-api that processes requests using tensorflow-serving and a mnist model. This is my first attempt using tensorflow-serving. Comments and suggestions are welcome.

https://bitbucket.org/abrykt/mnist_web_service/

Cheers,

Andreas

2018-03-06 6:35 GMT+01:00 soumya-ranjan-sahoo [email protected]:

Hi. I have been following https://www.tensorflow.org/ serving/serving_advanced tutorial for my model deployment. And while invoking the endpoint by the client I end up getting the following error - tensorflow.python.framework.errors_impl.NotFoundError: /home/loonycorn/serving/bazel-bin/tensorflow_serving/ example/mnist_client.runfiles/org_tensorflow/tensorflow/ contrib/data/python/ops/../../_prefetching_ops.so: undefined symbol: ZN6google8protobuf8internal9ArenaImpl10AddCleanupEPvPFvS3_E

Could you please help me understand this. Or if possible can you help me with a suitable client implementation for mnist_model.

Thanks in advance.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tensorflow/serving/issues/421#issuecomment-370669184, or mute the thread https://github.com/notifications/unsubscribe-auth/ABtxPo661EFiwBHvcZJz2_X4Apk-kUWhks5tbiArgaJpZM4NIoCq .

--


Andreas Brykt Kocksgatan 36 S-11629 Stockholm Sweden

+46 739 46 92 00 [email protected]

abrykt avatar Mar 06 '18 09:03 abrykt

Closing issue - please give the development docker image a shot via: docker pull tensorflow/serving:1.8.0-devel

That environment has been vetted for building TF Serving + any examples.

gautamvasudevan avatar Jun 29 '18 17:06 gautamvasudevan

@Anirudh1313 Hi, have you solved the problem? I have the same error even though I have modified the init.py. Could you help me please?

15940260868 avatar Dec 11 '18 19:12 15940260868