Skip to content

Can't use docker sorters on nwb files #2628

@chesnov

Description

@chesnov

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    extractorsRelated to extractors module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions