Traceback (most recent call last):


 "/usr/local/bin/bert-serving-start", line 8, in <module>

sys.exit(main())


 "/usr/local/lib/python3.6/dist-packages/bert_serving/server/cli/__init__.py", line 4, in main

with BertServer(get_run_args()) as server:


 "/usr/local/lib/python3.6/dist-packages/bert_serving/server/__init__.py", line 71, in __init__

self.graph_path, self.bert_config = pool.apply(optimize_graph, (self.args,))
TypeError: 'NoneType' object is not iterable

Traceback (most recent call last):


 "/home/henry/anaconda3/envs/pytorch/lib/python3.7/site-packages/ipdb/__main__.py", line 169, in main

pdb._runscript(mainpyfile)


 "/home/henry/anaconda3/envs/pytorch/lib/python3.7/pdb.py", line 1566, in _runscript

self.run(statement)


 "/home/henry/anaconda3/envs/pytorch/lib/python3.7/bdb.py", line 585, in run

exec(cmd, globals, locals)


 "<string>", line 1, in <module>


 "/home/henry/downloads/OpenNMT-py/preprocess.py", line 5, in <module>

"""


 "/home/henry/downloads/OpenNMT-py/preprocess.py", line 201, in main

train_dataset_files = build_save_dataset('train', fields, opt)


 "/home/henry/downloads/OpenNMT-py/preprocess.py", line 138, in build_save_dataset

corpus_type, opt)


 "/home/henry/downloads/OpenNMT-py/preprocess.py", line 116, in build_save_in_shards

torch.save(dataset, pt_file)


 "/home/henry/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/serialization.py", line 209, in save

return _with_file_like(f, "wb", lambda f: _save(obj, f, pickle_module, pickle_protocol))


 "/home/henry/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/serialization.py", line 134, in _with_file_like

return body(f)


 "/home/henry/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/serialization.py", line 209, in <lambda>

return _with_file_like(f, "wb", lambda f: _save(obj, f, pickle_module, pickle_protocol))


 "/home/henry/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/serialization.py", line 282, in _save

pickler.dump(obj)


 "/home/henry/downloads/OpenNMT-py/onmt/inputters/dataset_base.py", line 39, in __reduce_ex__

return super(DatasetBase, self).__reduce_ex__()
TypeError: __reduce_ex__() takes exactly one argument (0 given)
