cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
304 stars 155 forks source link

Error when using iPythonView: "AttributeError: 'QtInProcessChannel' object has no attribute 'closed'" #1221

Open stef1029 opened 9 months ago

stef1029 commented 9 months ago

Hello,

When trying to run commands in the iPythonView window in phy2 template GUI I get the following error:

12:40:29.557 [E] init:62 An error has occurred (AttributeError): 'QtInProcessChannel' object has no attribute 'closed' Traceback (most recent call last): File "C:\Users\Stefan R Coltman.conda\envs\phy3\Lib\site-packages\qtconsole\base_frontend_mixin.py", line 138, in _dispatch handler(msg) File "C:\Users\Stefan R Coltman.conda\envs\phy3\Lib\site-packages\qtconsole\jupyter_widget.py", line 193, in _handle_execute_reply super()._handle_execute_reply(msg) File "C:\Users\Stefan R Coltman.conda\envs\phy3\Lib\site-packages\qtconsole\frontend_widget.py", line 468, in _handle_execute_reply if not self.kernel_client.iopub_channel.closed(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'QtInProcessChannel' object has no attribute 'closed'

The window then freezes and does not allow anything else to be written.

Thanks for any help you can give,

Stefan

zm711 commented 9 months ago

Hey @stef1029, I'm not super familiar with using the IPython view so the best advice I can at least try to give you is to make sure the package is all up-to-date. Have you recently installed Phy or is this an old install? You're in a conda environment so how did you install phy originally? Do all of the other view work?