terminal closing error

65 views
Skip to first unread message

Gideon Simpson

unread,
Mar 27, 2018, 12:30:17 AM3/27/18
to Project Jupyter

When trying to close a terminal in jupyter, I get the following error.  Any suggestions?



[E 00:23:09.324 NotebookApp] Uncaught exception in /terminals/websocket/1

   
Traceback (most recent call last):

     
File "/anaconda3/lib/python3.6/site-packages/tornado/websocket.py", line 498, in _run_callback

        result
= callback(*args, **kwargs)

     
File "/anaconda3/lib/python3.6/site-packages/notebook/terminal/handlers.py", line 37, in on_message

       
super(TermSocket, self).on_message(message)

     
File "/anaconda3/lib/python3.6/site-packages/terminado/websocket.py", line 81, in on_message

       
self.terminal.ptyproc.write(command[1])

     
File "/anaconda3/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 829, in write

       
return super(PtyProcessUnicode, self).write(b)

     
File "/anaconda3/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 555, in write

       
return self._writeb(s, flush=flush)

     
File "/anaconda3/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 547, in _writeb

       
self.fileobj.flush()

   
OSError: [Errno 5] Input/output error

 



Thomas Kluyver

unread,
Mar 27, 2018, 6:42:13 AM3/27/18
to Project Jupyter
How are you closing it?

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d9365d37-ee15-4c34-b9f5-794fe6b160b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gideon Simpson

unread,
Mar 28, 2018, 4:23:54 AM3/28/18
to jup...@googlegroups.com
With Ctrl-D in a Chrome browser, if it matters.

You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/WfQb2zqz4HE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Gideon Simpson

unread,
Mar 28, 2018, 5:11:43 PM3/28/18
to Project Jupyter
I just checked.  This also happens if I just type exit.


On Tuesday, March 27, 2018 at 6:42:13 AM UTC-4, takowl wrote:
How are you closing it?
On 27 March 2018 at 06:30, Gideon Simpson <gideon....@gmail.com> wrote:

When trying to close a terminal in jupyter, I get the following error.  Any suggestions?



[E 00:23:09.324 NotebookApp] Uncaught exception in /terminals/websocket/1

   
Traceback (most recent call last):

     
File "/anaconda3/lib/python3.6/site-packages/tornado/websocket.py", line 498, in _run_callback

        result
= callback(*args, **kwargs)

     
File "/anaconda3/lib/python3.6/site-packages/notebook/terminal/handlers.py", line 37, in on_message

       
super(TermSocket, self).on_message(message)

     
File "/anaconda3/lib/python3.6/site-packages/terminado/websocket.py", line 81, in on_message

       
self.terminal.ptyproc.write(command[1])

     
File "/anaconda3/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 829, in write

       
return super(PtyProcessUnicode, self).write(b)

     
File "/anaconda3/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 555, in write

       
return self._writeb(s, flush=flush)

     
File "/anaconda3/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 547, in _writeb

       
self.fileobj.flush()

   
OSError: [Errno 5] Input/output error

 



--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.

Thomas Kluyver

unread,
Mar 29, 2018, 4:21:49 AM3/29/18
to Project Jupyter
Thanks. It matters because closing the tab is a very different operation from exiting the terminal, and I wasn't sure which you were doing.

I can't reproduce this at the moment. Are your 'notebook' and 'terminado' packages both up to date?

To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Gideon Simpson

unread,
Mar 29, 2018, 8:30:13 AM3/29/18
to jup...@googlegroups.com
# packages in environment at /anaconda3:
#
# Name                    Version                   Build  Channel
terminado                 0.8.1                    py36_1  
notebook                  5.4.1                    py36_0  



On Mar 29, 2018, at 4:21 AM, Thomas Kluyver <tak...@gmail.com> wrote:

Thanks. It matters because closing the tab is a very different operation from exiting the terminal, and I wasn't sure which you were doing.

I can't reproduce this at the moment. Are your 'notebook' and 'terminado' packages both up to date?
On 28 March 2018 at 23:11, Gideon Simpson <gideon....@gmail.com> wrote:
I just checked.  This also happens if I just type exit.

On Tuesday, March 27, 2018 at 6:42:13 AM UTC-4, takowl wrote:
How are you closing it?
On 27 March 2018 at 06:30, Gideon Simpson <gideon....@gmail.com> wrote:

When trying to close a terminal in jupyter, I get the following error.  Any suggestions?



[E 00:23:09.324 NotebookApp] Uncaught exception in /terminals/websocket/1

    
Traceback (most recent call last):

      
File "/anaconda3/lib/python3.6/site-packages/tornado/websocket.py", line 498, in_run_callback

        result 
= callback(*args, **kwargs)

      
File "/anaconda3/lib/python3.6/site-packages/notebook/terminal/handlers.py", line 37, in on_message

        
super(TermSocket, self).on_message(message)

      
File "/anaconda3/lib/python3.6/site-packages/terminado/websocket.py", line 81, inon_message

        
self.terminal.ptyproc.write(command[1])


      
File "/anaconda3/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 829,in write

        
return super(PtyProcessUnicode, self).write(b)

      
File "/anaconda3/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 555,in write

        
return self._writeb(s, flush=flush)

      
File "/anaconda3/lib/python3.6/site-packages/ptyprocess/ptyprocess.py", line 547,in _writeb

        
self.fileobj.flush()


    
OSError: [Errno 5] Input/output error

 

-- 
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/d9365d37-ee15-4c34-b9f5-794fe6b160b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/93e5f5b0-f0aa-49b0-8130-b5d0ed9dbebd%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/WfQb2zqz4HE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Thomas Kluyver

unread,
Mar 29, 2018, 8:36:36 AM3/29/18
to Project Jupyter
Yup, those look like the latest ones. Not sure what's going on, then.

On 29 March 2018 at 14:30, Gideon Simpson <gideon....@gmail.com> wrote:
# packages in environment at /anaconda3:
#
# Name                    Version                   Build  Channel
terminado                 0.8.1                    py36_1  
notebook                  5.4.1                    py36_0  


On Mar 29, 2018, at 4:21 AM, Thomas Kluyver <tak...@gmail.com> wrote:

Thanks. It matters because closing the tab is a very different operation from exiting the terminal, and I wasn't sure which you were doing.

I can't reproduce this at the moment. Are your 'notebook' and 'terminado' packages both up to date?
To unsubscribe from this group and all its topics, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

Gideon Simpson

unread,
Mar 29, 2018, 8:58:50 AM3/29/18
to jup...@googlegroups.com
So here’s a bit more about this.

My jupyter notebook server is running on a secondary account (jup) on my MacOS machine.  If I am logged into my primary account (gideon) on that machine open up the jupyter server that’s running on jup and open/close a terminal, it’s fine.  If I am away from that machine, and log in remotely in a web browser, that’s when I have the issue of terminals not closing.



To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Gideon Simpson

unread,
Mar 29, 2018, 3:19:29 PM3/29/18
to Project Jupyter
More weird stuff.  If I open a terminal and immediately close it (with Ctrl-D), it's fine.  If I do anything, even
ls
then when I hit Ctrl-D, I generate that error.

Gideon Simpson

unread,
Mar 31, 2018, 11:27:30 AM3/31/18
to Project Jupyter
And now the problem has disappeared.  I recently upgraded to the new High Sierra.  Perhaps it was related to that?
Reply all
Reply to author
Forward
0 new messages