You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After preprocessed by “cpac run”, I am trying to generate model presets in different way but always get errors. Following the online user guide, the output of “cpac group feat load_preset single_grp_avg --help” is:
Usage: run.py group feat load_preset single_grp_avg [OPTIONS] PIPELINE_DIR
Z_THRESH P_THRESH
MODEL_NAME
So, the command “cpac group feat load_preset single_grp_avg /home/user/Test/cpac/output 2.3 0.05 sgl_sub4” was executed, but it failed to access the “cpac_outputs.csv” file. Moreover, the command “cpac group feat build_models /home/user/Applications/cpac/group_config_sharp.yml” had the same error. The detailed error is as follows:
raceback (most recent call last):
File "/code/CPAC/utils/create_fsl_flame_preset.py", line 998, in run
keys = pd.read_csv(keys_csv)
File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/io/parsers.py", line 678, in parser_f
return _read(filepath_or_buffer, kwds)
File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/io/parsers.py", line 440, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/io/parsers.py", line 787, in __init__
self._make_engine(self.engine)
File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/io/parsers.py", line 1014, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "/usr/local/miniconda/lib/python3.7/site-packages/pandas/io/parsers.py", line 1708, in __init__
self._reader = parsers.TextReader(src, **kwds)
File "pandas/_libs/parsers.pyx", line 384, in pandas._libs.parsers.TextReader.__cinit__
File "pandas/_libs/parsers.pyx", line 695, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: File b'/code/CPAC/resources/cpac_outputs.csv' does not exist
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/code/run.py", line 762, in <module>
run_main()
File "/code/run.py", line 334, in run_main
main.main(args=sys.argv[sys.argv.index('--') + 1:])
File "/usr/local/miniconda/lib/python3.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/miniconda/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/miniconda/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/miniconda/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
[Previous line repeated 1 more time]
File "/usr/local/miniconda/lib/python3.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/miniconda/lib/python3.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/code/CPAC/__main__.py", line 176, in single_grp_avg
model_name=model_name)
File "/code/CPAC/utils/create_fsl_flame_preset.py", line 1002, in run
raise Exception(err)
Exception:
[!] Could not access or read the cpac_outputs.csv resource file:
/code/CPAC/resources/cpac_outputs.csv
Error details File b'/code/CPAC/resources/cpac_outputs.csv' does not exist
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
After preprocessed by “cpac run”, I am trying to generate model presets in different way but always get errors. Following the online user guide, the output of “cpac group feat load_preset single_grp_avg --help” is:
Usage: run.py group feat load_preset single_grp_avg [OPTIONS] PIPELINE_DIR
Z_THRESH P_THRESH
MODEL_NAME
So, the command “cpac group feat load_preset single_grp_avg /home/user/Test/cpac/output 2.3 0.05 sgl_sub4” was executed, but it failed to access the “cpac_outputs.csv” file. Moreover, the command “cpac group feat build_models /home/user/Applications/cpac/group_config_sharp.yml” had the same error. The detailed error is as follows:
Thanks a lot,
Xiaochen
Beta Was this translation helpful? Give feedback.
All reactions