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

During handling of the above exception, another exception occurred -error #1

Open
arun-taiger opened this issue Jan 3, 2018 · 2 comments

Comments

@arun-taiger
Copy link

When I tried to execute python app.py, I get following error message.

Traceback (most recent call last):
File "/Users/admin/anaconda/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1022, in _do_call
return fn(*args)
File "/Users/admin/anaconda/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1004, in _run_fn
status, run_metadata)
File "/Users/admin/anaconda/lib/python3.6/contextlib.py", line 89, in exit
next(self.gen)
File "/Users/admin/anaconda/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 469, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.NotFoundError: Key bi-lstm/bidirectional_rnn/bw/lstm_cell/biases not found in checkpoint
[[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

During handling of the above exception, another exception occurred:

@guillaumegenthial
Copy link
Owner

It seems like you're experiencing an issue with weights reloading... Have you deleted the weights somehow? Maybe your OS requires a different paths for the weights / your python/tf install is kind of broken :(
In case that helps, my environment is
Python 3.6.4
backports.weakref==1.0.post1 bleach==1.5.0 click==6.7 enum34==1.1.6 Flask==0.12.2 Flask-Cors==3.0.3 funcsigs==1.0.2 futures==3.2.0 gunicorn==19.7.1 html5lib==0.9999999 itsdangerous==0.24 Jinja2==2.10 Markdown==2.6.10 MarkupSafe==1.0 mock==2.0.0 numpy==1.13.3 pbr==3.1.1 protobuf==3.5.1 scipy==1.0.0 six==1.11.0 tensorflow==1.4.1 tensorflow-tensorboard==0.4.0rc3 Werkzeug==0.14.1

@arun-taiger
Copy link
Author

I am using Mac. The weights are there in the correspond directory. I am using python 3.6. Let me check with Python 3.6.4 and corresponding config.

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