Skip to content

list index out of range error #1355

@junQree

Description

@junQree

Trying to load KS4 output in a Windows 11 machine with a freshly created phy2 environment, and I keep running into list index out of range error when trying to add ClusterView to the GUI.

I've tried so many variations of phy2 environment with different versions of dependencies. ALL of them give me the same error.
I was able to load the exact same KS4 output files without an issue just a year ago.

This seems to be the same issue encountered here: [https://github.com//issues/1176]
Not sure what I can try anymore...

�[90m16:19:33.225 [D] context:101 Reducing the size of the cache if needed.�[0m
�[90m16:19:33.225 [D] context:101 Reducing the size of the cache if needed.�[0m
�[90m16:19:33.228 [D] base:102 Add filter high_pass.�[0m
�[90m16:19:33.228 [D] base:102 Add filter high_pass.�[0m
�[90m16:19:33.230 [D] config:31 Load config file C:\Users\Localadmin_jyurhee\.phy\phy_config.py.�[0m
�[90m16:19:33.230 [D] config:31 Load config file C:\Users\Localadmin_jyurhee\.phy\phy_config.py.�[0m
�[90m16:19:33.232 [D] plugin:146 Loading 0 plugins.�[0m
�[90m16:19:33.232 [D] plugin:146 Loading 0 plugins.�[0m
�[90m16:19:33.237 [D] context:209 The file C:\Users\jyurhee\OneDrive - University of Helsinki\scripts, Python\_pouta\SL3199_31_7_22\Th_9_8_dminx200_CAR_maxpeels50\.phy\new_cluster_id.pkl doesn't exist.�[0m
�[90m16:19:33.237 [D] context:209 The file C:\Users\jyurhee\OneDrive - University of Helsinki\scripts, Python\_pouta\SL3199_31_7_22\Th_9_8_dminx200_CAR_maxpeels50\.phy\new_cluster_id.pkl doesn't exist.�[0m
�[90m16:19:33.262 [D] context:185 Save data to C:\Users\jyurhee\OneDrive - University of Helsinki\scripts, Python\_pouta\SL3199_31_7_22\Th_9_8_dminx200_CAR_maxpeels50\.phy\spikes_per_cluster.pkl.�[0m
�[90m16:19:33.262 [D] context:185 Save data to C:\Users\jyurhee\OneDrive - University of Helsinki\scripts, Python\_pouta\SL3199_31_7_22\Th_9_8_dminx200_CAR_maxpeels50\.phy\spikes_per_cluster.pkl.�[0m
�[90m16:19:33.274 [D] gui:463 Creating GUI.�[0m
�[90m16:19:33.274 [D] gui:463 Creating GUI.�[0m
�[90m16:19:33.285 [D] state:46 Load C:\Users\Localadmin_jyurhee.phy\TemplateGUI\state.json for GUIState.�[0m
�[90m16:19:33.285 [D] state:46 Load C:\Users\Localadmin_jyurhee.phy\TemplateGUI\state.json for GUIState.�[0m
�[90m16:19:34.278 [D] gui:718 Add view ClusterView to GUI.�[0m
�[90m16:19:34.278 [D] gui:718 Add view ClusterView to GUI.�[0m
�[31m16:19:34.287 [E] init:62 An error has occurred (IndexError): list index out of range
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Hyapp\Miniconda3\envs\phy2\Scripts\phy.exe_main
.py", line 6, in
sys.exit(phycli())
^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\click\core.py", line 1462, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\click\core.py", line 1383, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\click\core.py", line 1850, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\click\core.py", line 1246, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\click\core.py", line 814, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\click\decorators.py", line 34, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\phy\apps_init
.py", line 159, in cli_template_gui
template_gui(params_path, **kwargs)
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\phy\apps\template\gui.py", line 218, in template_gui
gui = controller.create_gui()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\phy\apps\base.py", line 1700, in create_gui
self.supervisor.attach(gui)
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\phy\cluster\supervisor.py", line 961, in attach
gui.add_view(self.cluster_view, position='left', closable=False)
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\phy\gui\gui.py", line 728, in add_view
dock = _create_dock_widget(widget, name, closable=closable, floatable=floatable)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\phy\gui\gui.py", line 347, in _create_dock_widget
dock = DockWidget(widget=widget)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\phy\gui\gui.py", line 131, in init
self._font = _load_font('fa-solid-900.ttf')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Hyapp\Miniconda3\envs\phy2\Lib\site-packages\phy\gui\qt.py", line 210, in _load_font
font_family = QFontDatabase.applicationFontFamilies(font_id)[0]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions