Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue regarding importing spikeforest and/or spikeinterface #41

Open
GanshengT opened this issue Mar 26, 2024 · 2 comments
Open

issue regarding importing spikeforest and/or spikeinterface #41

GanshengT opened this issue Mar 26, 2024 · 2 comments

Comments

@GanshengT
Copy link

Dear developers,

I clone the git repository and install spikeforest and spikeinterface. However, when I tried to run the example py files from the terminal, I encountered an import error.

(spikeInterface) ganshengtan@Ganshengs-MacBook-Pro examples % ls
create_workspaces.py load_console_out_for_sorting_output.py
download_all_raw_recordings_data.py load_extractor_for_sorting_output.py
list_all_recordings.py load_extractors_for_recording.py
list_all_sorting_outputs.py sorting_old
(spikeInterface) ganshengtan@Ganshengs-MacBook-Pro examples % python3 list_all_recordings.py
Traceback (most recent call last):
File "/......../spikeForest_syn/spikeforest/examples/list_all_recordings.py", line 2, in
import spikeforest as sf
File "/......../spikeForest_syn/spikeforest/spikeforest/init.py", line 1, in
from .load_extractors.load_recording_extractor import load_recording_extractor
File "/......./spikeForest_syn/spikeforest/spikeforest/load_extractors/init.py", line 1, in
from .load_recording_extractor import load_recording_extractor
File "/......./spikeForest_syn/spikeforest/spikeforest/load_extractors/load_recording_extractor.py", line 2, in
from .MdaRecordingExtractorV2.MdaRecordingExtractorV2 import MdaRecordingExtractorV2
File "/......./spikeForest_syn/spikeforest/spikeforest/load_extractors/MdaRecordingExtractorV2/MdaRecordingExtractorV2.py", line 2, in
from spikeinterface.core.core_tools import write_binary_recording
ImportError: cannot import name 'write_binary_recording' from 'spikeinterface.core.core_tools' (/....../spikeForest_syn/spikeinterface/src/spikeinterface/core/core_tools.py)

@GanshengT
Copy link
Author

The issue seems to be that spikeinterface moves write_binary_recording to spikeinterface.core. write_binary_recording

@magland
Copy link
Collaborator

magland commented Mar 27, 2024

@GanshengT Thanks for identifying that issue. I pushed the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants