File style_template.mplstyle is not created in the custom_plot_styles folder
Report copied over from hifis/overall/surveys/survey-2021/analysis#140 (closed) since it needs to be fixed here.
Do I have to do anything else before I can use the new version of the hifis-surveyval framework? I updated to version 1.4.0 (Windows, Python 3.9), but hifis-surveyval init
gave me the following error:
(Running the analysis seems to work though - should I simply ignore this error message then?)
Traceback (most recent call last):
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\Scripts\hifis-surveyval.exe\__main__.py", line 7, in <module>
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\site-packages\click\core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\site-packages\click\core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\site-packages\hifis_surveyval\cli.py", line 189, in init
util.create_custom_plot_style_template()
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\site-packages\hifis_surveyval\core\util.py", line 232, in create_custom_plot_style_template
shutil.copy(template_path.absolute(), target_path.absolute())
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\shutil.py", line 426, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "C:\ProgramData\Miniforge3\envs\hifis-survey-2021\lib\shutil.py", line 265, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\dwor_ka\\Documents\\Projekte\\hifis-survey\\2021\\analysis\\hifis_surveyval\\files\\style_template.mplstyle'
This happens in a default installation regardless of OS since the path to the style template is not given relative.