The Man Who's Walking
“There are few things more pathetic than those who have lost their curiosity and sense of adventure, and who no longer care to learn.”

解决 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...

发表评论