lsgn icon indicating copy to clipboard operation
lsgn copied to clipboard

Is tensorflow version 1.8 for sure?

Open skumyol opened this issue 4 years ago • 2 comments

Traceback (most recent call last): File "decoder.py", line 12, in from lsgn_data import LSGNData File "/hltc/0/cl/tools/srl_parsers/l_he_etal_2018/lsgn/lsgn_data.py", line 2, in import tensorflow_hub as hub File "/homes/skumyol/venv2.7/lib/python2.7/site-packages/tensorflow_hub/init.py", line 29, in from tensorflow_hub.estimator import LatestModuleExporter File "/homes/skumyol/venv2.7/lib/python2.7/site-packages/tensorflow_hub/estimator.py", line 25, in from tensorflow_hub import tf_utils File "/homes/skumyol/venv2.7/lib/python2.7/site-packages/tensorflow_hub/tf_utils.py", line 33, in from tensorflow.python.feature_column import feature_column_v2 ImportError: cannot import name feature_column_v2

skumyol avatar Feb 03 '20 04:02 skumyol

@skumyol I spent hours trying to make it work. If you are using Python3, then you also need to add parenthesis around print statements. It didn't work with 1.8 but it worked on 1.14.0 for me. You will also need to add a symbolic link since the .so file in 1.14.0 is different. ln -s libtensorflow_framework.so.1 libtensorflow_framework.so I pushed all required changes for Python3 here: https://github.com/savan77/lsgn/tree/python3

savan77 avatar Apr 11 '20 21:04 savan77

I'm running it in python 2.7. The error comes comes from tf-hub. I used tensorflow-hub==0.2.0

awxro avatar Aug 12 '20 09:08 awxro