From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: BUG org-babel-execute-src-block: No org-babel-execute function for python! Date: Tue, 26 Feb 2013 08:48:32 -0500 Message-ID: <8817.1361886512@alphaville> References: <512CBBC3.6000502@easy-emacs.de> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAKtf-00085v-23 for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 08:48:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAKtd-0005IF-QN for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 08:48:42 -0500 Received: from g1t0029.austin.hp.com ([15.216.28.36]:3150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAKtd-0005G9-Jw for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 08:48:41 -0500 In-Reply-To: Message from =?us-ascii?Q?=3D=3FISO-8859-15=3FQ=3FAndreas=5FR?= =?us-ascii?Q?=3DF6hler=3F=3D?= of "Tue\, 26 Feb 2013 14\:42\:27 +0100." <512CBBC3.6000502@easy-emacs.de> 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: =?us-ascii?Q?=3D=3FISO-8859-15=3FQ=3FAndreas=5FR=3DF6hler=3F=3D?= Cc: emacs-orgmode Andreas R=C3=B6hler wrote: > org-babel-execute-src-block: No org-babel-execute function for python! >=20 > When evaluating the following block C-c C-c starting from emacs -Q >=20 > #+BEGIN_SRC python > a =3D 5 >=20 > b =3D 16 >=20 > print(a + b) > #+END_SRC >=20 > the error message from title appears >=20 > GNU Emacs 24.3.50.1 (i686-suse-linux-gnu, GTK+ Version 2.22.1) of 2013-02= -20 >=20 > Patch attached. > 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) > + ))))) >=20=20 > (defun org-babel-python-evaluate-session > (session body &optional result-type result-params) I don't understand: afaict the problem is that starting with emacs -Q, pyth= on is not enabled as a babel language: you need to (require 'ox-python) somewh= ere. Maybe I'm missing something but what's this patch supposed to do? Nick