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

TypeError: can't pickle _thread.RLock objects #75

Open
irdanish11 opened this issue Jan 15, 2019 · 1 comment
Open

TypeError: can't pickle _thread.RLock objects #75

irdanish11 opened this issue Jan 15, 2019 · 1 comment

Comments

@irdanish11
Copy link

Building Graph Traceback (most recent call last):

File "", line 1, in
runfile('D:/Study/BE_Electronics/Semester8/FYP_Phase2/TwitterChatlogPreprocessing/Twitter-chatbot.py', wdir='D:/Study/BE_Electronics/Semester8/FYP_Phase2/TwitterChatlogPreprocessing')

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 668, in runfile
execfile(filename, namespace)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "D:/Study/BE_Electronics/Semester8/FYP_Phase2/TwitterChatlogPreprocessing/Twitter-chatbot.py", line 39, in
num_layers=3

File "D:\Study\BE_Electronics\Semester8\FYP_Phase2\TwitterChatlogPreprocessing\seq2seq_wrapper.py", line 77, in init
graph()

File "D:\Study\BE_Electronics\Semester8\FYP_Phase2\TwitterChatlogPreprocessing\seq2seq_wrapper.py", line 62, in graph
feed_previous=True)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\contrib\legacy_seq2seq\python\ops\seq2seq.py", line 358, in embedding_rnn_seq2seq
encoder_cell = copy.deepcopy(cell)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 161, in deepcopy
y = copier(memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\layers\base.py", line 395, in deepcopy
setattr(result, k, copy.deepcopy(v, memo))

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 150, in deepcopy
y = copier(x, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 215, in _deepcopy_list
append(deepcopy(a, memo))

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 150, in deepcopy
y = copier(x, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 150, in deepcopy
y = copier(x, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 150, in deepcopy
y = copier(x, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 180, in deepcopy
y = _reconstruct(x, memo, *rv)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 280, in _reconstruct
state = deepcopy(state, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 150, in deepcopy
y = copier(x, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 240, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)

File "C:\Users\IrfanDanish\AppData\Local\Continuum\anaconda3\lib\copy.py", line 169, in deepcopy
rv = reductor(4)

@lcarnevale
Copy link

lcarnevale commented Feb 2, 2019

Hello,

I resolved that problem downgrading tensorflow to 1.0.0.
Give a look here: tensorflow/tensorflow#11157

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

2 participants