Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fold not loading after installation #57

Open
madian9 opened this issue May 3, 2017 · 10 comments
Open

fold not loading after installation #57

madian9 opened this issue May 3, 2017 · 10 comments

Comments

@madian9
Copy link

madian9 commented May 3, 2017

I installed fold using pip as recommended by the instructions, however when I try to import it I get an error. Any suggestions on how to fix this issue:

Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow_fold/__init__.py", line 22, in <module> from tensorflow_fold.blocks.block_compiler import * File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow_fold/blocks/block_compiler.py", line 28, in <module> from tensorflow_fold.blocks import loom_ops File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow_fold/blocks/loom_ops.py", line 19, in <module> import tensorflow_fold.blocks.result_types as tdt File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow_fold/blocks/result_types.py", line 27, in <module> from tensorflow_fold.public import loom File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow_fold/public/loom.py", line 17, in <module> from tensorflow_fold.loom.loom import * File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow_fold/loom/__init__.py", line 17, in <module> from tensorflow_fold.loom.loom import * File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow_fold/loom/loom.py", line 36, in <module> from tensorflow_fold.loom import deserializing_weaver_op File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow_fold/loom/deserializing_weaver_op.py", line 34, in <module> tf.resource_loader.get_data_files_path(), '_deserializing_weaver_op.so')) File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/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/ubuntu/anaconda2/lib/python2.7/site-packages/tensorflow_fold/loom/_deserializing_weaver_op.so: undefined symbol: _ZN10tensorflow6tensor5SplitERKNS_6TensorERKNS_3gtl10ArraySliceIxEE

@Atomu2014
Copy link

tensorflow-gpu works well, version is 1.1.0
python 2.7 on ubuntu 16.04
also found this error:

tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python2.7/dist-packages/tensorflow_fold/loom/_deserializing_weaver_op.so: undefined symbol: _ZN10tensorflow6tensor5SplitERKNS_6TensorERKNS_3gtl10ArraySliceIxEE

please give some advice

@delesley
Copy link
Contributor

delesley commented May 8, 2017 via email

@andreaskoelsch
Copy link

Ran into the same problem... Also, compiling and installing tensorflow a23f5d7f7757623a4ea8c6e1d743d178a0c561c5 did not help. The only effect was that the undefined symbol changed to _ZN10tensorflow7strings8internal9CatPiecesESt16initializer_listINS_11StringPieceEE

Which versions would we need to get it working?

@tadpole
Copy link

tadpole commented Jul 26, 2017

I got the same error with tensorflow 1.1.0, but I fixed it with tensorflow 1.0.0.

@NonvolatileMemory
Copy link

got the same error...

@pachiras
Copy link

Same here.

@louner
Copy link

louner commented Sep 17, 2017

me too, only TF1.0.0 works

@evelkey
Copy link

evelkey commented Oct 31, 2017

Newest version (with tf1.4) has the following error:

tensorflow.python.framework.errors_impl.NotFoundError: ***/python3env/lib/python3.5/site-packages/tensorflow_fold/loom/_deserializing_weaver_op.so: undefined symbol: _ZN10tensorflow10DEVICE_CPUE

Built from sources with bazel 6.1 with fully recursive cloning (tried bazel 5.4 too).

@idavydov
Copy link

I have the same problem as @evelkey has.

I followed sources.md. Essentially git pull, ./configure, basel build fold and tensorflow, and them installed wheels in a clean virtualenv. Everything compiled from source.

Getting the same error:

tensorflow.python.framework.errors_impl.NotFoundError: /home/idavydov/ml/build/env/lib/python3.4/site-packages/tensorflow_fold/loom/_deserializing_weaver_op.so: undefined symbol: _ZN10tensorflow10DEVICE_CPUE

There are a couple of warnings, when building; it seems that bazel does not see options from tensorflow:

WARNING: Config values are not defined in any .rc file: opt
DEBUG: /home/idavydov/.cache/bazel/_bazel_idavydov/1db216c1bcd2b8c73117f15d07a25296/external/org_tensorflow/third_party/py/python_configure.bzl:30:3: Python Configuration Warning: 'PYTHON_LIB_PATH' environment variable is not set, using '/usr/local/lib/python3.4/dist-packages' as default
WARNING: /home/idavydov/.cache/bazel/_bazel_idavydov/1db216c1bcd2b8c73117f15d07a25296/external/org_tensorflow/tensorflow/core/BUILD:1781:1: in includes attribute of cc_library rule @org_tensorflow//tensorflow/core:framework_headers_lib: '../../../../external/nsync/public' resolves to 'external/nsync/public' not below the relative path of its package 'external/org_tensorflow/tensorflow/core'. This will be an error in the future. Since this rule was created by the macro 'cc_header_only_library', the error might have been caused by the macro implementation in /home/idavydov/.cache/bazel/_bazel_idavydov/1db216c1bcd2b8c73117f15d07a25296/external/org_tensorflow/tensorflow/tensorflow.bzl:1044:30
WARNING: /home/idavydov/.cache/bazel/_bazel_idavydov/1db216c1bcd2b8c73117f15d07a25296/external/org_tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule @org_tensorflow//tensorflow/contrib/learn:learn: target '@org_tensorflow//tensorflow/contrib/learn:learn' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: /home/idavydov/.cache/bazel/_bazel_idavydov/1db216c1bcd2b8c73117f15d07a25296/external/org_tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule @org_tensorflow//tensorflow/contrib/learn:learn: target '@org_tensorflow//tensorflow/contrib/learn:learn' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.

Bazel version: 0.7.0, python 3.4.3. Ubuntu 16.04, x64.

@gabefair
Copy link

gabefair commented Jan 8, 2019

Has anyone gotten this fixed? I'm getting an undefined symbol: _ZTIN10tensorflow8OpKernelE error as well.

Today is my first time using Tensorflow/fold and I installed using the latest whl, and its not working for me using Ubuntu 16.04, tensorflow-gpu (installed using lambda stack), CUDA Version: 10.0, and NVIDIA-SMI 410.78.

Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
> import tensorflow_fold
2019-01-08 16:18:36.019494: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1432] Found device 0 with properties:
name: GeForce GTX 1070 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.683
pciBusID: 0000:03:00.0
totalMemory: 7.93GiB freeMemory: 7.43GiB
2019-01-08 16:18:36.019526: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0
2019-01-08 16:18:36.267961: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-01-08 16:18:36.267997: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988]      0
2019-01-08 16:18:36.268003: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0:   N
2019-01-08 16:18:36.268219: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/device:GPU:0 with 7170 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070 Ti, pci bus id: 0000:03:00.0, compute capability: 6.1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/tensorflow_fold/__init__.py", line 22, in <module>
    from tensorflow_fold.blocks.block_compiler import *
  File "/usr/local/lib/python3.5/dist-packages/tensorflow_fold/blocks/block_compiler.py", line 28, in <module>
    from tensorflow_fold.blocks import loom_ops
  File "/usr/local/lib/python3.5/dist-packages/tensorflow_fold/blocks/loom_ops.py", line 19, in <module>
    import tensorflow_fold.blocks.result_types as tdt
  File "/usr/local/lib/python3.5/dist-packages/tensorflow_fold/blocks/result_types.py", line 27, in <module>
    from tensorflow_fold.public import loom
  File "/usr/local/lib/python3.5/dist-packages/tensorflow_fold/public/loom.py", line 17, in <module>
    from tensorflow_fold.loom.loom import *
  File "/usr/local/lib/python3.5/dist-packages/tensorflow_fold/loom/__init__.py", line 17, in <module>
    from tensorflow_fold.loom.loom import *
  File "/usr/local/lib/python3.5/dist-packages/tensorflow_fold/loom/loom.py", line 36, in <module>
    from tensorflow_fold.loom import deserializing_weaver_op
  File "/usr/local/lib/python3.5/dist-packages/tensorflow_fold/loom/deserializing_weaver_op.py", line 34, in <module>
    tf.resource_loader.get_data_files_path(), '_deserializing_weaver_op.so'))
  File "/usr/lib/python3/dist-packages/tensorflow/python/framework/load_library.py", line 60, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python3.5/dist-packages/tensorflow_fold/loom/_deserializing_weaver_op.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

This seems to be also mentioned in other issues as well: #99, #93, #85

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests