From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Subject: BUG org-babel-execute-src-block: No org-babel-execute function for python! Date: Tue, 26 Feb 2013 14:42:27 +0100 Message-ID: <512CBBC3.6000502@easy-emacs.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010006090600020102050601" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAKnE-0004I1-4H for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 08:42:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAKnB-0003NG-FT for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 08:42:03 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:61912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAKnA-0003N0-V6 for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 08:42:01 -0500 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode This is a multi-part message in MIME format. --------------010006090600020102050601 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit org-babel-execute-src-block: No org-babel-execute function for python! When evaluating the following block C-c C-c starting from emacs -Q #+BEGIN_SRC python a = 5 b = 16 print(a + b) #+END_SRC the error message from title appears GNU Emacs 24.3.50.1 (i686-suse-linux-gnu, GTK+ Version 2.22.1) of 2013-02-20 Patch attached. --------------010006090600020102050601 Content-Type: text/x-patch; name="org-babel-python-evaluate-external-process_ob-python.el.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="org-babel-python-evaluate-external-process_ob-python.el.patc"; filename*1="h" diff --git a/lisp/ob-python.el b/lisp/ob-python.el index f2806c7..fb00053 100644 --- a/lisp/ob-python.el +++ b/lisp/ob-python.el (t (error "No function available for running an inferior Python"))) (setq org-babel-python-buffers @@ -249,7 +252,8 @@ last statement in BODY, as elisp." (org-babel-trim body)) "[\r\n]") "\n") (org-babel-process-file-name tmp-file 'noquote)))) - (org-babel-eval-read-file tmp-file)))))) + ;; (org-babel-eval-read-file tmp-file) + ))))) (defun org-babel-python-evaluate-session (session body &optional result-type result-params) --------------010006090600020102050601--