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

Added tracebacks in py error messages #42

Merged
merged 1 commit into from
Nov 29, 2016
Merged

Added tracebacks in py error messages #42

merged 1 commit into from
Nov 29, 2016

Conversation

terrytangyuan
Copy link
Contributor

For more detailed error messages, e.g. the following message could at least tell you the shape does not match between the model you are building and the model saved previously.

Error in py_call(attrib, args, keywords) : 
  InvalidArgumentError: Shape in shape_and_slice spec does not match the shape in the save file: [11,3], save file shape: [10,3]
	 [[Node: save/restore_slice_23 = RestoreSlice[dt=DT_FLOAT, preferred_shard=0, _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/restore_slice_23/tensor_name, save/restore_slice_23/shape_and_slice)]]

Caused by op u'save/restore_slice_23', defined at:
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/dnn.py", line 435, in fit
    max_steps=max_steps)
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 333, in fit
    max_steps=max_steps)
  File "/usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py", line 708, in _train_

Originally, it was very obscure:

Error in py_call(attrib, args, keywords) : basic_string::_M_replace_aux

Issue reported in #40

@jjallaire jjallaire merged commit 7658045 into rstudio:master Nov 29, 2016
@ShantanuKumar
Copy link

ShantanuKumar commented Dec 2, 2016

I get different error messages now in Rstudio terminal and unix terminal. Unix terminal has the improved error message, but Rstudio still shows the obscure error message.

@terrytangyuan
Copy link
Contributor Author

Could you paste both versions of error messages?

@ShantanuKumar
Copy link

Sorry for the delay! Here are the two versions of error message:
Unix terminal: Error in py_call(attrib, args, keywords) : Unable to convert R object to python type Calls: <Anonymous> -> py_call -> .Call Execution halted

RStudio: Error in py_call(attrib, args, keywords) : basic_string::_M_replace_aux

@terrytangyuan
Copy link
Contributor Author

It should be much better now. Try the most recent version

@pourzanj
Copy link

I'm using version 0.3.0, but I still don't get detailed error output. Any ideas?

@terrytangyuan terrytangyuan deleted the traceback branch January 27, 2017 19:19
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

Successfully merging this pull request may close these issues.

None yet

4 participants