CasRel icon indicating copy to clipboard operation
CasRel copied to clipboard

AttributeError

Open byrwh opened this issue 3 years ago • 12 comments

AttributeError: 'Add' object has no attribute 'outbound_nodes' I‘ve tried several requirement versions as adviced but at last I always met this problem . thanks if someone has met the same error and can tell me the solution.

byrwh avatar Feb 16 '22 04:02 byrwh

after solving this I also met the following errors 1:AttributeError: 'Node' object has no attribute 'output_masks'

2:ImportError: cannot import name 'backend_config' from 'tensorflow.python.keras' (/home/wanghui/anaconda3/envs/env1/lib/python3.7/site-packages/tensorflow/python/keras/init.py)

byrwh avatar Feb 16 '22 04:02 byrwh

Got same errors. Have you found any solution?

fihxc avatar Mar 06 '22 14:03 fihxc

Got same errors. Have you found any solution?

Ruin823 avatar Mar 15 '22 05:03 Ruin823

Got same errors. Have you found any solution?

lightCraft2020 avatar Mar 16 '22 06:03 lightCraft2020

update the requirements.txt file

can solve the problem.

keras-bert = 0.80.0
tensorflow-gpu = 1.13.1
keras-layer-normalization==0.15.0
keras-multi-head==0.28.0
keras-pos-embd==0.12.0
keras-position-wise-feed-forward==0.7.0
keras-transformer==0.33.0

lightCraft2020 avatar Mar 17 '22 07:03 lightCraft2020

@lightCraft2020 The problem has been solved. Thank you very much!

Ruin823 avatar Mar 18 '22 01:03 Ruin823

@lightCraft2020 which python version you used? I tried it with 3.7 but it still gives me errors from tensorflow.backend.keras.backend and sometimes attribute errors. I am using pycham. please guide me on this.

AnwarsaeedDMU avatar Mar 09 '23 03:03 AnwarsaeedDMU

@lightCraft2020 and this error: ImportError: DLL load failed: The specified module could not be found.

AnwarsaeedDMU avatar Mar 09 '23 04:03 AnwarsaeedDMU

You might solve this by reconfiguring your env according to a given requirement file

Rihanna @.***

 

------------------ 原始邮件 ------------------ 发件人: "weizhepei/CasRel" @.>; 发送时间: 2023年3月9日(星期四) 中午12:54 @.>; @.@.>; 主题: Re: [weizhepei/CasRel] AttributeError (Issue #66)

@lightCraft2020 and this error: ImportError: DLL load failed: The specified module could not be found.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

byrwh avatar Mar 09 '23 04:03 byrwh

@WANG-HUI-NAVY Did you solved the problem already? I create conda env, employed python 3.7, and install all these requirements but still, the TensorFlow make issues. Did we need to install cuda? if yes so which version?

AnwarsaeedDMU avatar Mar 09 '23 06:03 AnwarsaeedDMU

好心人解答一下,运行run.py文件时报错,显示无法找到该文件,请问best_model.weights文件是如何生成的

32209056 avatar Oct 29 '23 10:10 32209056

update the requirements.txt file

can solve the problem.

keras-bert = 0.80.0
tensorflow-gpu = 1.13.1
keras-layer-normalization==0.15.0
keras-multi-head==0.28.0
keras-pos-embd==0.12.0
keras-position-wise-feed-forward==0.7.0
keras-transformer==0.33.0

Yes !!! It actually works out !! Thank u very much! I see that other guys still do not solve the problem. The point is to install it exactly as required above. Which means: pip install tensorflow-gpu==1.13.1 keras-bert==0.80.0 keras-layer-normalization==0.15.0 keras-multi-head==0.28.0 keras-pos-embd==0.12.0 keras-position-wise-feed-forward==0.7.0 keras-transformer==0.33.0

You can not work out by only pip install keras-bert==0.80.0

kuaizhiyan avatar Mar 30 '24 05:03 kuaizhiyan