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

Cannot connect to existing ipython kernel after upgrading to 3.0 #3472

Closed
huyiqun opened this issue Sep 28, 2016 · 4 comments
Closed

Cannot connect to existing ipython kernel after upgrading to 3.0 #3472

huyiqun opened this issue Sep 28, 2016 · 4 comments

Comments

@huyiqun
Copy link

huyiqun commented Sep 28, 2016

Description of your problem

What steps will reproduce the problem?

From connect to an existing kernel and paste the kernel address obtained from %connect_info from another python program

What is the expected output? What do you see instead?
Expected to successfully connect. Instead see error message from internal console:

WARNING:root:kernel died: 3.00172996521
Traceback (most recent call last):
File "/Users/h/anaconda2/lib/python2.7/site-packages/spyder/plugins/ipythonconsole.py", line 898, in create_client_for_kernel
password)
File "/Users/h/anaconda2/lib/python2.7/site-packages/spyder/plugins/ipythonconsole.py", line 1407, in _create_client_for_kernel
kernel_client.load_connection_file()
File "/Users/h/anaconda2/lib/python2.7/site-packages/jupyter_client/connect.py", line 417, in load_connection_file
with open(self.connection_file) as f:
IOError: [Errno 2] No such file or directory: u'--existing /Users/h/Library/Jupyter/runtime/kernel-200d2980-48d4-4c4a-a956-10c0249f01d0.json'

Please provide any additional information below
Spyder 2.3.9 is running just fine. After upgraded to spyder 3.0, this error occurred.

Versions and main components

  • Spyder Version: 3.0
  • Python Version: 2.7.12
  • Operating system: OS X (same from windows 7)

Dependencies

Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:

jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.5.3 (OK)
nbconvert >=4.0 : 4.2.0 (OK)
numpy >=1.7 : 1.11.1 (OK)
pandas >=0.13.1 : 0.18.1 (OK)
pep8 >=0.6 : 1.7.0 (OK)
psutil >=0.3 : 4.3.0 (OK)
pyflakes >=0.5.0 : 1.2.3 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.5.4 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.9.4 (OK)
sphinx >=0.6.6 : 1.4.1 (OK)
sympy >=0.7.3 : 1.0 (OK)

@ccordoba12
Copy link
Member

Where did you run %connect_info? In a notebook?

@huyiqun
Copy link
Author

huyiqun commented Sep 29, 2016

I have tried with notebook, qtconsole and atom (hydrogen).

@ccordoba12
Copy link
Member

And where are exactly placed your kernel json files? I mean, in which directory?

@huyiqun
Copy link
Author

huyiqun commented Sep 30, 2016

I did not manually place them I think. %connect_info shows that it is at /Users/h/Library/Jupyter/runtime/kernel-200d2980-48d4-4c4a-a956-10c0249f01d0.json and I checked it is indeed there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants