File "/home/ubuntu/code/python-microscopy/PYME/DSView/dsviewer.py", line 39, in <module>
from PYME.DSView import modules, splashScreen
File "/home/ubuntu/code/python-microscopy/PYME/DSView/modules/__init__.py", line 32, in <module>
from PYME import config
File "/home/ubuntu/code/python-microscopy/PYME/config.py", line 279, in <module>
template_files = importlib.resources.files('PYME.resources.config_template')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniforge3/envs/nf/lib/python3.11/importlib/resources/_common.py", line 22, in files
return from_package(get_package(package))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniforge3/envs/nf/lib/python3.11/importlib/resources/_common.py", line 65, in from_package
reader = spec.loader.get_resource_reader(spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniforge3/envs/nf/lib/python3.11/importlib/resources/_adapters.py", line 29, in get_resource_reader
return CompatibilityFiles(self.spec)._native()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/miniforge3/envs/nf/lib/python3.11/importlib/resources/_adapters.py", line 155, in _native
reader = self._reader
^^^^^^^^^^^^
File "/home/ubuntu/miniforge3/envs/nf/lib/python3.11/importlib/resources/_adapters.py", line 149, in _reader
return self.spec.loader.get_resource_reader(self.spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 1380, in get_resource_reader
File "/home/ubuntu/miniforge3/envs/nf/lib/python3.11/importlib/resources/readers.py", line 110, in __init__
raise ValueError('Invalid path')
ValueError: Invalid path
Describe the bug
First time you run PYME on a fresh install, you get the following error and the GUI never comes up.
Traceback
To Reproduce
Steps to reproduce the behavior:
PYMEImage -torPYMEVisPYMEImage -torPYMEVisExpected behavior
don't trip up a user on their first load
Platform (please complete the following information - or copy-paste from error dialog if shown):
Additional context
hit it once on an ubuntu virtual machine, and a second time on a raspberry pi