From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Troublesome python block Date: Wed, 11 Oct 2017 12:13:52 -0400 Message-ID: <87y3ohd5mn.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Jdu-0000lG-UZ for emacs-orgmode@gnu.org; Wed, 11 Oct 2017 12:14:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2Jdq-0007Fe-Nr for emacs-orgmode@gnu.org; Wed, 11 Oct 2017 12:13:58 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:61005 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2Jdq-0007FP-Iz for emacs-orgmode@gnu.org; Wed, 11 Oct 2017 12:13:54 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Roger Mason , Org-Mode Hello, Roger Mason writes: > This python block: [...] > produces this output: > > #+RESULTS: > #+begin_example > Python 2.7.13 (default, Jul 2 2017, 01:20:25) > [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)] on freebsd10 > Type "help", "copyright", "credits" or "license" for more information. > python.el: native completion setup loaded [...] > Any help in debugging this will be much appreciated. ob-python sessions have been broken to some degree for quite some time. See, e.g., https://lists.gnu.org/archive/html/emacs-orgmode/2015-03/msg00540.html I dropped my attempt to fix it because 1) I was still having trouble getting a complete understanding of what the issue was and 2) I didn't have the motivation to spend time digging deeper because I don't use ob-python (and in general am not a heavy Org-Babel user). Perhaps you or some other ob-python user could help make ob-python sessions more robust? In the meantime, you could try ob-ipython (https://github.com/gregsexton/ob-ipython). Looking at the README, it sounds like ob-python's problems were one of the author's motivations for writing the library. -- Kyle