Improve error message
If a user is not on the correct working directory he can get this error displayed:
The error is in the log but the 'final error': FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\nv275099\\code\\ewoks_workflow_tmp.ow
is very misleadinig
(ewoks_tutorial) PS C:\Users\nv275099\code> ewoks execute ewoksfordevs/results/workflow2.json --engine=orange
C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\silx\io\h5py_utils.py:50: H5pyDeprecationWarning: h5py.get_config().swmr_min_hdf5_version is deprecated. This version of h5py does not support older HDF5 without SWMR.
HDF5_SWMR_VERSION = calc_hexversion(*h5py.get_config().swmr_min_hdf5_version[:3])
Traceback (most recent call last):
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoksorange\bindings\bindings.py", line 66, in ows_file_context
owsconvert.ewoks_to_ows(
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoksorange\bindings\owsconvert.py", line 253, in ewoks_to_ows
owsgraph = OwsSchemeWrapper(
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoksorange\bindings\owsconvert.py", line 336, in __init__
widget_class, node_attrs["project_name"] = task_to_widget(
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoksorange\bindings\owsconvert.py", line 84, in task_to_widget
return default_owwidget_class(import_qualname(task_qualname))
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoksutils\import_utils.py", line 31, in import_qualname
module = import_module(module_name, reload=reload)
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoksutils\import_utils.py", line 13, in import_module
mod = importlib.import_module(module_name)
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'results'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\Scripts\ewoks.exe\__main__.py", line 7, in <module>
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoks\__main__.py", line 73, in main
return command_execute(args, shell=shell)
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoks\__main__.py", line 28, in command_execute
results = execute_graph(args.graph, engine=args.engine, **args.execute_options)
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoks\bindings.py", line 78, in execute_graph
result = mod.execute_graph(graph, execinfo=execinfo, **execute_options)
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewokscore\events\contexts.py", line 25, in wrapper
return method(*args, execinfo=execinfo, **kw)
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoksorange\bindings\bindings.py", line 76, in execute_graph
with ows_file_context(graph, **kwargs) as ows_filename:
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\contextlib.py", line 135, in __enter__
return next(self.gen)
File "C:\Users\nv275099\bin\miniconda3\envs\ewoks_tutorial\lib\site-packages\ewoksorange\bindings\bindings.py", line 71, in ows_file_context
os.remove(tmp_filename)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\nv275099\\code\\ewoks_workflow_tmp.ows'