<div dir="ltr"><div>Hello</div><div><br></div><div>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: </div><div><br></div><div>---</div><div>Exception in thread Thread-2:</div><div>Traceback (most recent call last):</div><div>  File "/usr/local/lib/python2.7/threading.py", line 801, in __bootstrap_inner</div><div>    self.run()</div><div>  File "/usr/local/lib/python2.7/threading.py", line 754, in run</div><div>    self.__target(*self.__args, **self.__kwargs)</div><div>  File "/usr/local/lib/python2.7/site-packages/spyderlib/spyder.py",</div><div>line 2093, in start_open_files_server</div><div>    req, dummy = self.open_files_server.accept()</div><div>  File "/usr/local/lib/python2.7/socket.py", line 206, in accept</div><div>    sock, addr = self._sock.accept()</div><div>  File "/usr/local/lib/python2.7/socket.py", line 174, in _dummy</div><div>    raise error(EBADF, 'Bad file descriptor')</div><div>error: [Errno 9] Bad file descriptor</div><div><br></div><div><br></div><div>[1]    Done                          spyder</div><div>---</div><div><br></div><div>py27-ipython alone runs fine on DragonFly (e.g. when started with 'ipython notebook').</div><div><br></div><div>I ran python2.7 unit tests that have 'thread' in their name, i.e.</div><div><br></div><div>% ls -l /usr/local/lib/python2.7/test | grep thread</div><div>% python -m test.regrtest test_threading</div><div>etc</div><div><br></div><div>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. </div><div><br></div><div>I checked that on FreeBSD spyder and ipython run fine. </div><div><br></div><div>I wonder if anybody has ideas about what is going on? </div><div><br></div><div>Thanks, </div><div><br></div><div>Peeter</div><div><br></div><div>--</div><div><br></div></div>