Bonky Zhu
If someone is able to show me that what I think or do is not right, I will happily change, for I seek the truth, by which no one was ever truly harmed. It is the person who continues in his self-deception and ignorance who is harmed.

解决 bert-serving-server 报错 cannot unpack non-iterable NoneType object 问题

运行时,错误提示如下:

E:?[36mGRAPHOPT?[0m:fail to optimize the graph!
....
  File "/home/bonky/anaconda3/lib/site-packages/bert_serving/server/__init__.py", line 70, in __init__
    self.graph_path, self.bert_config = pool.apply(optimize_graph, (self.args,))
TypeError: cannot unpack non-iterable NoneType object


直接降级 bert-serving-server1.8 版本即可运行

pip install -U bert-serving-server==1.8

Share

You may also like...

发表评论