-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
tornado 5.X doesn't have required WebsocketProtocol13.is_closing() method #5920
Comments
Ran across this bug just now. I was confused for a second (probably due to only scanning the text above) and thought the bug was due to Just for the sake of easy googleability for any future debuggers (until the issue is fixed), specifying
solved the issue for me. |
Thanks for opening this issue @dhuntley1023 (and confirmation @ajfriend).
Agreed. I'll add that if we're going to move the floor of tornado, I recommend moving to In the meantime, as a workaround, it would be better for folks to upgrade tornado rather than downgrade notebook - if that's possible. cc: @minrk, @SylvainCorlay |
sudo -H pip install jupyterlab -U fixed it for me on macos |
Thanks for bringing this up @dhuntley1023 I uninstalled notebook via and I don't see the issue anymore. (I am using Tornado 5.1.1) |
Had the same problem.
Restarted Jupyter ==> Solved! |
Thanks @SonakshiGrover it works. |
I think, given the frequency that folks are encountering this, coupled with the importance of the fix that introduced the dependency change (in #5908), it's best we go ahead and increase the minimum version of tornado. |
I'm seeing this problem again, and I can't use the above fixes because I have a dependency that requires
But again, this is only because I'm stuck with |
OK. The I agree, anyone with additional |
Hello, I had the same issue this morning but this helped. Thank you. |
Thanks! This worked smoothly! |
I created a Conda environment based on the spec "pandas-profiling=2 prompt_toolkit=2 dataprep".
When I load a notebook from this environment, I get the error below from handlers.py that indicates that a method, is_closing(), doesn't exist on the object stored in the ws_connection attribute. I tracked the cause down to the dataprep module in the environment forcing a load of tornado=5.0.2. This is an acceptable version for notebook according to the build dependencies, but the required method doesn't exist on the WebsocketProtocol13 class in that version of tornado. I haven't researched extensively when it was added, but it's definitely there in the 6.1 version.
My recommendation is to update the required version of tornado to 6.X or otherwise eliminate the dependency on this method.
TRACEBACK:
Traceback (most recent call last):
File "c:\Miniconda\envs\dataprep\lib\site-packages\tornado\web.py", line 1499, in _stack_context_handle_exception
raise_exc_info((type, value, traceback))
File "", line 4, in raise_exc_info
File "c:\Miniconda\envs\dataprep\lib\site-packages\tornado\stack_context.py", line 315, in wrapped
ret = fn(*args, **kwargs)
File "c:\Miniconda\envs\dataprep\lib\site-packages\notebook\services\kernels\handlers.py", line 207, in nudge
if self.ws_connection is None or self.ws_connection.is_closing():
AttributeError: 'WebSocketProtocol13' object has no attribute 'is_closing'
The text was updated successfully, but these errors were encountered: