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

Errors in running spikeinterface_gui on Mac #62

Open
rohanmalige opened this issue Apr 8, 2024 · 4 comments
Open

Errors in running spikeinterface_gui on Mac #62

rohanmalige opened this issue Apr 8, 2024 · 4 comments

Comments

@rohanmalige
Copy link

@mandarmp and I were trying to run the spikeinterface_gui locally on MacOS, we are using Xquartz to run the GUI and the error we got is:
rohan@rohans-mbp-3 ~ % sigui /Users/rohan/Documents/Research/MEA_Analysis/AnalyzedData/CDKL5/CDKL5/230310/16757/Network/000033/waveforms_good
Traceback (most recent call last):
File "/Users/rohan/Library/Python/3.11/bin/sigui", line 5, in
from spikeinterface_gui.main import run_mainwindow_cli
File "/Users/rohan/Library/Python/3.11/lib/python/site-packages/spikeinterface_gui/init.py", line 8, in
from .mainwindow import MainWindow
File "/Users/rohan/Library/Python/3.11/lib/python/site-packages/spikeinterface_gui/mainwindow.py", line 170, in
'right' : QT.Qt.RightDockWidgetArea,
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'Qt' has no attribute 'RightDockWidgetArea'. Did you mean: 'DockWidgetArea'?

Can you help us out with what steps we need to take to solve the issue?

@samuelgarcia
Copy link
Member

Hi,
thanks for the feedback.
How did you installed QT ? Is it with anaconda ?
Do you PyQt5, PyQt6 or PySide6 ?

spikeinterface-gui is mainly tested on PySide6

@rohanmalige
Copy link
Author

I installed QT without an anaconda. I installed PyQT6. Do you recommend using anaconda for mac? is PySide6 necessary for running the spikeinterface_gui?

@samuelgarcia
Copy link
Member

It is PySide6 or PyQt6 or PyQt5. DO not try to install two of then on the same envirenoement it will be a total mess.
I have to admit that PyQt6 is not realy tested. Could you try to remove PyQt6 and use PyQt5 instead ?

@rohanmalige
Copy link
Author

Traceback (most recent call last):
  File "/Users/rohan/Library/Python/3.11/bin/sigui", line 8, in <module>
    sys.exit(run_mainwindow_cli())
             ^^^^^^^^^^^^^^^^^^^^
  File "/Users/rohan/Library/Python/3.11/lib/python/site-packages/spikeinterface_gui/main.py", line 34, in run_mainwindow_cli
    run_mainwindow(waveform_folder)
  File "/Users/rohan/Library/Python/3.11/lib/python/site-packages/spikeinterface_gui/main.py", line 14, in run_mainwindow
    we = WaveformExtractor.load_from_folder(waveform_folder)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/rohan/Library/Python/3.11/lib/python/site-packages/spikeinterface/core/waveform_extractor.py", line 176, in load_from_folder
    raise Exception("The recording could not be loaded. You can use the `with_recording=False` argument")
Exception: The recording could not be loaded. You can use the `with_recording=False` argument

I installed the PyQT5 instead of PyQt6, re-run the above command, and got the errors. Is there any specific way that the waveforms need to be stored?

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