attention-is-all-you-need-pytorch icon indicating copy to clipboard operation
attention-is-all-you-need-pytorch copied to clipboard

ValueError: Cell is empty

Open Kznnd opened this issue 2 years ago • 4 comments

when i run the commond in ubuntu python preprocess.py -lang_src de -lang_trg en -share_vocab -save_data m30k_deen_shr.pkl An error occurs as follows:

` (att) guest1@GPU2:~/zjl/attention-is-all-you-need-pytorch-master$ python preprocess.py -lang_src de -lang_trg en -share_vocab -save_data m30k_deen_shr.pkl Namespace(data_src=None, data_trg=None, keep_case=False, lang_src='de', lang_trg='en', max_len=100, min_word_count=3, save_data='m30k_deen_shr.pkl', share_vocab=True) [Info] Get source language vocabulary size: 5375 [Info] Get target language vocabulary size: 4556 [Info] Merging two vocabulary ... [Info] Get merged vocabulary size: 9521 [Info] Dumping the processed data to pickle file m30k_deen_shr.pkl Traceback (most recent call last): File "preprocess.py", line 337, in main_wo_bpe() File "preprocess.py", line 332, in main_wo_bpe pickle.dump(data,f) File "/home/guest1/anaconda3/envs/att/lib/python3.6/site-packages/dill/_dill.py", line 267, in dump Pickler(file, protocol, **_kwds).dump(obj) File "/home/guest1/anaconda3/envs/att/lib/python3.6/site-packages/dill/_dill.py", line 454, in dump StockPickler.dump(self, obj)

......

File "/home/guest1/anaconda3/envs/att/lib/python3.6/pickle.py", line 476, in save f(self, obj) # Call unbound method with explicit self File "/home/guest1/anaconda3/envs/att/lib/python3.6/site-packages/dill/_dill.py", line 1177, in save_cell f = obj.cell_contents ValueError: Cell is empty `

How can I solve it?

Kznnd avatar Nov 22 '22 06:11 Kznnd

same problem here

wangchuan avatar Apr 12 '23 12:04 wangchuan

same problem here!! run in win10, How to solve it, I using the requirement environment dill==0.3.3 python==3.6.12 pytorch==1.2.0

Eric-dot avatar Apr 13 '23 21:04 Eric-dot

都是伸手党啊

zhangsan5032 avatar Jun 03 '23 16:06 zhangsan5032

I hava the same problem, refer to this issuehttps://github.com/uqfoundation/dill/issues/383, it solved my problem!

haiyLiu avatar Dec 22 '23 02:12 haiyLiu