Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Cell is empty #204

Open
Kznnd opened this issue Nov 22, 2022 · 4 comments
Open

ValueError: Cell is empty #204

Kznnd opened this issue Nov 22, 2022 · 4 comments

Comments

@Kznnd
Copy link

Kznnd commented Nov 22, 2022

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?

@wangchuan
Copy link

same problem here

@Eric-dot
Copy link

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

@zhangsan5032
Copy link

都是伸手党啊

@haiyLiu
Copy link

haiyLiu commented Dec 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants