python: spyder error when connecting to ipython

karu.pruun karu.pruun at gmail.com
Tue Nov 15 06:21:13 PST 2016


Hello

The python IDE spyder (py27-spyder) cannot connect to the ipython kernel in
order to start the ipython (py27-ipython) console. When spyder starts up,
the ipython console displays the message "Connecting to kernel. . ." and
that's it: it will loop there forever. When quitting spyder, this error
shows:

---
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/threading.py", line 801, in
__bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/site-packages/spyderlib/spyder.py",
line 2093, in start_open_files_server
    req, dummy = self.open_files_server.accept()
  File "/usr/local/lib/python2.7/socket.py", line 206, in accept
    sock, addr = self._sock.accept()
  File "/usr/local/lib/python2.7/socket.py", line 174, in _dummy
    raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor


[1]    Done                          spyder
---

py27-ipython alone runs fine on DragonFly (e.g. when started with 'ipython
notebook').

I ran python2.7 unit tests that have 'thread' in their name, i.e.

% ls -l /usr/local/lib/python2.7/test | grep thread
% python -m test.regrtest test_threading
etc

and they all pass. The test_socket also passes when DragonFly is added to
the conditional which checks the platform. The test_socketserver is
skipped.

I checked that on FreeBSD spyder and ipython run fine.

I wonder if anybody has ideas about what is going on?

Thanks,

Peeter

--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20161115/88407b97/attachment-0002.htm>


More information about the Users mailing list