-
Notifications
You must be signed in to change notification settings - Fork 59
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
Adding more informative error report messages #560
Comments
This might be more of an issue with |
@effigies, should I create the issue there for reference? |
Hmm. This is what I'm finding in the In [17]: import cloudpickle as cp
In [18]: with open('/tmp/tmp708qhxhb/Nipype1Task_73123a85d3daade462a868be921f7b62c0ac5b71e8b4216fc92d33f398696a1d/_error.pklz', 'rb') as fp:
...:
...: err = cp.load(fp)
...:
In [19]: err
Out[19]:
{'time of crash': '20220729-143942',
'login name': 'chris',
'name with checksum': 'Nipype1Task_73123a85d3daade462a868be921f7b62c0ac5b71e8b4216fc92d33f398696a1d',
'error message': ['Traceback (most recent call last):\n',
' File "/home/chris/Projects/nipype2/pydra/pydra/engine/core.py", line 506, in _run\n self._run_task()\n',
' File "/home/chris/Projects/nipype2/pydra-nipype1/pydra/tasks/nipype1/utils.py", line 74, in _run_task\n res = node.run()\n',
' File "/home/chris/miniconda3/envs/pydra-dev/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 516, in run\n result = self._run_interface(execute=True)\n',
' File "/home/chris/miniconda3/envs/pydra-dev/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 635, in _run_interface\n return self._run_command(execute)\n',
' File "/home/chris/miniconda3/envs/pydra-dev/lib/python3.9/site-packages/nipype/pipeline/engine/nodes.py", line 741, in _run_command\n result = self._interface.run(cwd=outdir)\n',
' File "/home/chris/miniconda3/envs/pydra-dev/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 434, in run\n runtime = self._run_interface(runtime)\n',
' File "/home/chris/miniconda3/envs/pydra-dev/lib/python3.9/site-packages/nipype/interfaces/base/core.py", line 815, in _run_interface\n raise IOError(\n',
'OSError: No command "antsRegistrationSyNQuick.sh" found on host lamarr. Please check that the corresponding package is installed.\n']} Is it possible you're loading the wrong pickle file? |
I was just copy pasting the link in the error message but I was using nipypecli though, instead of loading the file with cloudpickle. Could that be it ? (I'm afk for now but I can check on monday) |
If you're using nipype1's nipypecli, probably the failure you're seeing is a failure to load the pickle file, not its contents. Nipype uses |
Clear! Sorry about the confusion and thanks for the help :-) |
In the example below, the error message in
_error.pklz
does not relate to the actual problem encountered. Namely, for the following code:The error reported in
_error.pklz
is the following:Which is generic and not related to the actual problem in this situation. The actual error message is printed when running the Nipype1Task interface
ants_reg
seperately:It would be great if this error could be propagated to the workflow and outputted in the console or found in the relevant
_error.pklz file
The text was updated successfully, but these errors were encountered: