These are chat archives for spyder-ide/public

19th
Jan 2019
CAM Gerlach
@CAM-Gerlach
Jan 19 01:01

Maybe It could be placed/linked more prominently. I

Its also in the install guide , and both the contributing guide and install guide are linked in the readme, but maybe they could be more prominent?

CAM Gerlach
@CAM-Gerlach
Jan 19 18:03
@MHolderby I'm sorry, I'm not sure I understand what you mean by Not getting link to iPython console from Editor and still not finding programs in the directory it shows in console as its local directory. Can you provide a fuller explanation of what you're trying to do, and/or screenshots showing the behavior? Thanks.
Sadra
@smatmir
Jan 19 18:08

hi. I am a beginner who just started some programming courses using spyder 3. I have a problem with running spyder. I installed spyder 3 through the winpython and anaconda platforms and all the time after first proper launch I will have the problem with the Kernel in 2nd launch of the program. The problem descripthion is: An error ocurred while starting the kernel
The error is:

Traceback (most recent call last):
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\traitlets\traitlets.py", line 528, in get
value = obj._trait_values[self.name]
KeyError: 'context'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\spyder\plugins\ipythonconsole.py", line 1578, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle)
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\jupyter_client\manager.py", line 261, in start_kernel
self._connect_control_socket()
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\jupyter_client\manager.py", line 210, in _connect_control_socket
self._control_socket = self.connect_control()
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\jupyter_client\connect.py", line 571, in connect_control
return self._create_connected_socket('control', identity=identity)
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\jupyter_client\connect.py", line 543, in _create_connected_socket
sock = self.context.socket(socket_type)
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\traitlets\traitlets.py", line 556, in get
return self.get(obj, cls)
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\traitlets\traitlets.py", line 535, in get
value = self._validate(obj, dynamic_default())
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\jupyter_client\manager.py", line 42, in _context_default
return zmq.Context.instance()
File "C:\Program Files\WPy�\python𔂭.7.1.amd64\lib\site‑packages\zmq\sugar\context.py", line 108, in instance
cls._instance = cls(io_threads=io_threads)
File "zmq/backend/cython/context.pyx", line 49, in zmq.backend.cython.context.Context.cinit
zmq.error.ZMQError: Connection refused

I would appreciate some help.
CAM Gerlach
@CAM-Gerlach
Jan 19 18:14
Most likely, this has something to do with a firewall or other security software blocking the connection Spyder uses to talk to its kernels. Try temporarily disabling any firewalls and security software and seeing if the problem is resolved. If so, you'll need to add an exception for Spyder in the program(s) causing the problem.
Sadra
@smatmir
Jan 19 18:15
@CAM-Gerlach Thank you. I will try it.
CAM Gerlach
@CAM-Gerlach
Jan 19 18:16
@smatmir You can also try updating pyzmq with conda update pyzmq for Anaconda and pip update pyzmq for WinPython (assuming that works with WinPython, right @stonebig ?) Also, since I can see you're currently running on WinPython, you can try it with Anaconda and see if you get the same error. Thanks, and best of luck!
hofingermarkus
@hofingermarkus
Jan 19 18:52

@CAM-Gerlach @ccordoba12 About running from source:

I guess I should start looking more at the homepage instead of the GitHub Wiki. I'm pretty sure I would have found it there - looks very well done! :)

About the wiki - I guess it was the page titles at the sidebar that mislead me and will maybe others as well. (it also has a Contributing to Spyder page that has almost no info).
I was looking straight to those "Dev: " pages, starting with "Dev: index" (which says: "developers interested in getting involved with the Spyder project should start here.") and "Dev: debugging spyder".
Maybe a "Dev: Requirenments to run from source" page (title) could help.
Then a link to this primary setup step could easily be added to "Dev: index" and near locations where bootstrap.py is shown. E.g. "python bootstrap.py" "Dev: Requirenments to run from source"
This would definetly lower the bar for new developers to use the source - and add contributions... :)

Or maybe it is time to drop the old wiki pages (or replace the content with a link to the new destinations...)
hofingermarkus
@hofingermarkus
Jan 19 19:20
And I do have another question about the spyder-kernels:
When I want to run a spyder-kernel from source, I just need to run setup py (which gives me a pip/ wheel package I guess?) and install it in my anaconda environment?
(I am having a look at spyder-ide/spyder#7042 but I'm not sure if I can get it done before I run out of time again...)
hofingermarkus
@hofingermarkus
Jan 19 19:35
ok, sorry it's just runnning pip install -e .
CAM Gerlach
@CAM-Gerlach
Jan 19 19:41

About the wiki...

Thanks so much for your input on that, @hofingermarkus . Right now, there's a considerable amount of duplication of, most particularly, the basic "running a development build" instructions between the Dev pages on the wiki, Contributing Guide in the main Spyder repo (and the Readme to a lesser extent), and and Installation documentation on the docs repo. I'll take a look at how I can either consolidate some of this and make the purposes/content of each clearly distinct.

ok, sorry it's just runnning pip install -e .

Glad you got it figured out!

Sadra
@smatmir
Jan 19 20:52
@CAM-Gerlach as you suggested I installed anaconda 3 again and modified the firewall settings accordingly. it seems my problem is solved and the Kernel is loading properly now. Thank you very much for helping to solve my problem. all the best.
CAM Gerlach
@CAM-Gerlach
Jan 19 20:52
Great to hear, @smatmir ! Let us know if you have further questions or issues and happy Spydering!
Sadra
@smatmir
Jan 19 20:56
@CAM-Gerlach I will spydering a lot for sure. Thanks for the productive support.