emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: =?ISO-8859-15?Q?Andreas_R=F6hler?= <andreas.roehler@easy-emacs.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: BUG org-babel-execute-src-block: No org-babel-execute function for python!
Date: Tue, 26 Feb 2013 08:48:32 -0500	[thread overview]
Message-ID: <8817.1361886512@alphaville> (raw)
In-Reply-To: Message from =?ISO-8859-15?Q?Andreas_R=F6hler?= <andreas.roehler@easy-emacs.de> of "Tue\, 26 Feb 2013 14\:42\:27 +0100." <512CBBC3.6000502@easy-emacs.de>

Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:

> 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.
> 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)

I don't understand: afaict the problem is that starting with emacs -Q, python
is not enabled as a babel language: you need to (require 'ox-python) somewhere.
Maybe I'm missing something but what's this patch supposed to do?

Nick

  reply	other threads:[~2013-02-26 13:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26 13:42 BUG org-babel-execute-src-block: No org-babel-execute function for python! Andreas Röhler
2013-02-26 13:48 ` Nick Dokos [this message]
2013-02-26 13:49 ` Bastien
2013-02-26 15:42   ` Andreas Röhler
2013-02-26 16:00     ` Ista Zahn
2013-02-26 19:34       ` Andreas Röhler
2013-02-26 19:50         ` Thomas S. Dye
2013-02-26 20:00           ` Andreas Röhler
2013-02-26 16:00     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8817.1361886512@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=andreas.roehler@easy-emacs.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).