magland / sortingview

Web app for viewing results of ephys spike sorting
Apache License 2.0
25 stars 8 forks source link

Cannot import sortingview #196

Closed alejoe91 closed 2 years ago

alejoe91 commented 2 years ago

With versions 0.8.4 and 0.8.5 it fails to import:

>>> import sortingview

gives:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 import sortingview

File ~/anaconda3/envs/si/lib/python3.9/site-packages/sortingview/__init__.py:11, in <module>
      9 from .load_extractors.copy_recording_extractor import copy_recording_extractor, upload_recording_extractor
     10 from .load_extractors.copy_sorting_extractor import copy_sorting_extractor, upload_sorting_extractor
---> 11 from .load_extractors.save_recording import save_recording

File ~/anaconda3/envs/si/lib/python3.9/site-packages/sortingview/load_extractors/save_recording.py:3, in <module>
      1 from typing import Any
      2 import spikeinterface as si
----> 3 from .h5extractors.h5recordingextractorv1 import H5RecordingExtractorV1
      6 def save_recording(R: si.BaseRecording, *, format: str, filename: str, dtype: Any):
      7     if format == 'h5_v1':

ModuleNotFoundError: No module named 'sortingview.load_extractors.h5extractors'
magland commented 2 years ago

@alejoe91 There was a missing __init__.py This should work now in 0.8.6.