aster icon indicating copy to clipboard operation
aster copied to clipboard

error occur when run "python aster/demo.py"

Open LiangHao92 opened this issue 7 years ago • 13 comments

I get the error: Traceback (most recent call last): File "aster/demo.py", line 9, in from aster.builders import model_builder File "/home/seven/Downloads/aster/builders/model_builder.py", line 5, in from aster.builders import predictor_builder File "/home/seven/Downloads/aster/builders/predictor_builder.py", line 9, in from aster.predictors import attention_predictor File "/home/seven/Downloads/aster/predictors/attention_predictor.py", line 14, in from aster.c_ops import ops File "/home/seven/Downloads/aster/c_ops/ops.py", line 26, in _oplib = _load_oplib(FLAGS.oplib_name) File "/home/seven/Downloads/aster/c_ops/ops.py", line 23, in _load_oplib oplib = tf.load_op_library(lib_copy_path) File "/home/seven/anaconda2/envs/aster/lib/python3.5/site-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename, status) File "/home/seven/anaconda2/envs/aster/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py", line 473, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: /tmp/libaster_ac83631a.so: undefined symbol: _ZNK10tensorflow14TensorShapeRep11DebugStringEv

LiangHao92 avatar Nov 20 '18 09:11 LiangHao92

--exp_dir ....

ChChwang avatar Nov 20 '18 09:11 ChChwang

@ChChwang 我调用demo函数,并不需要exp_dir吧

LiangHao92 avatar Nov 20 '18 09:11 LiangHao92

@LiangHao92 我也遇到了同样的问题,请问你解决了吗?

Antonio-hi avatar Jan 03 '19 05:01 Antonio-hi

@LiangHao92 Hello.I have the same problem. Have you solved it?If so, how?

Nioolek avatar Jan 10 '19 06:01 Nioolek

maybe caused by tensorflow bug , version 1.4.0 works well.

findneo avatar Jan 11 '19 13:01 findneo

@Nioolek Hello.I have the same problem. Have you solved it?If so, how?

lifeGWT avatar Mar 12 '19 09:03 lifeGWT

@Nioolek Hello.I have the same problem. Have you solved it?If so, how?

Use tensorflow version 1.4.0

jaya-ingle avatar Mar 22 '19 13:03 jaya-ingle

File "/home/dell/anaconda/lib/python3.5/inspect.py", line 1050, in getargspec raise ValueError("Function has keyword-only arguments or annotations" ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them how to solve?

zahidzqj avatar Apr 14 '19 17:04 zahidzqj

@Nioolek你好。我有同样的问题。你解决了吗?如果有,怎么样?

使用tensorflow版本1.4.0

I use tensorflow==1.4.0,and code work

Nioolek avatar Apr 16 '19 06:04 Nioolek

@Nioolek你好。我有同样的问题。你解决了吗?如果有,怎么样?

使用tensorflow版本1.4.0

Thank you

Nioolek avatar Apr 16 '19 06:04 Nioolek

Hello,

I have the same problem with tensorflow==1.4.0 (Ubuntu 16.04). I also have tried older and recent version of tensorflow (1.3 ~ 1.5) but it didn't change anything. Does anyone have a clue on how to solve this problem ? Thank you.

Dkili avatar Jun 13 '19 10:06 Dkili

@Dkili I find that tensorflow==1.4.1 (ubuntu16.04) is ok. Use conda install tensorflow-gpu==1.4.1. By commond conda search tensorflow-gpu , don't find 1.4.0 version , only have three version (1.3.0、1.4.1、1.5.0 ) nearby. In addition, if use version 1.3.0, next step ./build.sh will occur error (...'lobster.so' faild ... ). I hope this is useful to you.

donglinAI avatar Jul 03 '19 04:07 donglinAI

@Nioolek你好。我有同样的问题。你解决了吗?如果有,怎么样?

使用tensorflow版本1.4.0

Thank you

please can you sent to me the complete code .thanks to reply

zaghdoud2019 avatar Mar 29 '21 14:03 zaghdoud2019