hyo2_soundspeed icon indicating copy to clipboard operation
hyo2_soundspeed copied to clipboard

Runtime Error: Missing media\ folder when running hyo2_soundspeed build

Open eriffon opened this issue 7 months ago • 1 comments

I might have been a bit too quick closing issue #82.

I did a build of the lastest commit (a12537e). Everything went fine except at runtime. As pointed out in issue #82, the media\ folder does not get carried over to the site-packages\hyo2\ssm2\app\gui\soundspeedmanager\ folder. It's only present in the site-packages\hyo2\soundspeedmanager\ folder. I therefore get the following error:

Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "D:\Python_envs\hyo2_v2\Lib\site-packages\hyo2\ssm2\app\gui\soundspeedmanager\__main__.py", line 3, in <module> gui.gui() File "D:\Python_envs\hyo2_v2\Lib\site-packages\hyo2\ssm2\app\gui\soundspeedmanager\gui.py", line 55, in gui main_win = MainWin() ^^^^^^^^^ File "D:\Python_envs\hyo2_v2\Lib\site-packages\hyo2\ssm2\app\gui\soundspeedmanager\mainwin.py", line 140, in __init__ self.tab_server = Server(lib=self.lib, main_win=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Python_envs\hyo2_v2\Lib\site-packages\hyo2\ssm2\app\gui\soundspeedmanager\widgets\server.py", line 41, in __init__ raise RuntimeError("unable to open server image") RuntimeError: unable to open server image

Fixing the issue consists in simply copying the media\ folder from site-packages\hyo2\soundspeedmanager\ to site-packages\hyo2\ssm2\app\gui\soundspeedmanager.

eriffon avatar Aug 02 '24 12:08 eriffon