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

Cannot import spikeforest package in Python #30

Open
mokouMonday opened this issue Jan 9, 2023 · 0 comments
Open

Cannot import spikeforest package in Python #30

mokouMonday opened this issue Jan 9, 2023 · 0 comments

Comments

@mokouMonday
Copy link

Hey,
I'm not sure if I'm doing something wrong or if it's a bug but I tried importing the spikeforest package into my project and loading the datasets like in your examples. When trying this I get this error:

Traceback (most recent call last):
  File "/Users/myuser/Documents/project/dataloader/data_loader.py", line 2, in <module>
    import spikeforest as sf
  File "/opt/miniconda3/envs/project/lib/python3.9/site-packages/spikeforest/__init__.py", line 5, in <module>
    from .load_spikeforest_sorting_outputs.load_spikeforest_sorting_outputs import load_spikeforest_sorting_outputs
ModuleNotFoundError: No module named 'spikeforest.load_spikeforest_sorting_outputs'

I tried cloning the repo directly and running your example code which worked.
I think the problem might be that the spikeforest_sorting_outputs folder is missing an init.py so that it isn't recognized as a python package and not imported.

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

1 participant