I am using a windows machine and try to sort from an nwb file, but get the following error:
SpikeSortingError: Spike sorting in docker failed with the following error: ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/.local/lib/python3.11/site-packages/spikeinterface/extractors/nwbextractors.py", line 784, in _fetch_other_properties from pynwb.ecephys import ElectrodeGroup ModuleNotFoundError: No module named 'pynwb'
I have attempted this with kilosort 2.5, 3, and 4, but the problem could be present in other docker container sorters as well. None of them seem to have the pynwb package installed in the container. My hacky workaround is to modify py script in runsorter.py to have subprocess.check_call(['pip', 'install', 'pynwb']) at the top of main (and import subprocess with imports), but I feel like there should be a more elegant way of fixing this.
I am using a windows machine and try to sort from an nwb file, but get the following error:
SpikeSortingError: Spike sorting in docker failed with the following error: ... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/.local/lib/python3.11/site-packages/spikeinterface/extractors/nwbextractors.py", line 784, in _fetch_other_properties from pynwb.ecephys import ElectrodeGroup ModuleNotFoundError: No module named 'pynwb'I have attempted this with kilosort 2.5, 3, and 4, but the problem could be present in other docker container sorters as well. None of them seem to have the pynwb package installed in the container. My hacky workaround is to modify py script in runsorter.py to have
subprocess.check_call(['pip', 'install', 'pynwb'])at the top of main (andimport subprocesswith imports), but I feel like there should be a more elegant way of fixing this.