question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder fails to link to IPython console on startup due to tornado upgrade to 5.0

See original GitHub issue

Problem Description

spyder failed linking to ipython console on startup, after tornado upgraded to 5.0

What steps will reproduce the problem?

  1. conda update --all (upgrade tornado to 5.0)
  2. run spyder
  3. an error windows appears when spyder UI is shown. ipython console connection cannot be established (with a circle rotating in the console, which means it’s connecting, but it never ends)

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)


  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/spyder/plugins/__init__.py", line 514, in <lambda>
    toggled=lambda checked: self.toggle_view(checked),
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/spyder/plugins/ipythonconsole.py", line 725, in toggle_view
    self.create_new_client(give_focus=False)
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/spyder/plugins/ipythonconsole.py", line 1038, in create_new_client
    self.connect_client_to_kernel(client)
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/spyder/plugins/ipythonconsole.py", line 1073, in connect_client_to_kernel
    kc.start_channels(shell=True, iopub=True)
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/qtconsole/kernel_mixins.py", line 43, in start_channels
    super(QtKernelClientMixin, self).start_channels(*args, **kw)
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/jupyter_client/threaded.py", line 212, in start_channels
    self.shell_channel._inspect = self._check_kernel_info_reply
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/jupyter_client/client.py", line 143, in shell_channel
    socket, self.session, self.ioloop
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/jupyter_client/threaded.py", line 205, in ioloop
    self._ioloop = ioloop.IOLoop()
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/tornado/util.py", line 312, in __new__
    instance.initialize(*args, **init_kwargs)
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/zmq/eventloop/ioloop.py", line 139, in initialize
    super(ZMQIOLoop, self).initialize(impl=impl, **kwargs)
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/tornado/ioloop.py", line 845, in initialize
    super(PollIOLoop, self).initialize(**kwargs)
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/tornado/ioloop.py", line 357, in initialize
    self.make_current()
  File "/home/lee1984/anaconda3/lib/python3.6/site-packages/tornado/ioloop.py", line 315, in make_current
    assert asyncio is None
AssertionError

Package Versions

  • Spyder: 3.2.7
  • Python: 3.6.4
  • Qt: 5.6.2
  • PyQt: 5.5.6
  • Operating System: Lubuntu 1604

Problem solution: Downgrade tornado to 4.5.3 by running command: conda install tornado=4.5.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
lee19840806commented, Mar 8, 2018

A good news. Today I tried “conda update --all” again, and it has added “pyzmq 17” in the update list. After installed pyzmq 17 and tornado 5.0 now everything works fine.

1reaction
epicblackcommented, Mar 7, 2018

Thank you so much! it is working now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spyder IDE fails to start on Windows 10 with Python 3.8
Spyder 4.1.3 Update: The issue is fixed! (Tested on Python 3.8.3rc1, tornado 6.0.4). If you come here still experiencing similar startup ...
Read more >
Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >
Spyder IDE no longer works after upgrade to ArcGIS Pro 2.5
I am running Jupyter Notebook 6.0.0 through Anaconda using the "my_arcgispro-py3" Jupyter notebook link. I revised the code per your suggestion ...
Read more >
Spyder - the Python IDE — Computational Science and Data ...
Go to Preferences -> IPython console -> Startup and select the tickbox next to Open an IPython console at startup. Then click the...
Read more >
spyder3-3.2.8-bp153.1.16 - SUSE Package Hub -
IPython console * Always run Cython files in a dedicated console. ... Update to 3.2.5 with pip fails for Python 2.7 as it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found