emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: BUG org-babel-execute-src-block: No org-babel-execute function for python!
Date: Tue, 26 Feb 2013 14:42:27 +0100	[thread overview]
Message-ID: <512CBBC3.6000502@easy-emacs.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 330 bytes --]

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.

[-- Attachment #2: org-babel-python-evaluate-external-process_ob-python.el.patch --]
[-- Type: text/x-patch, Size: 615 bytes --]

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)

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

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26 13:42 Andreas Röhler [this message]
2013-02-26 13:48 ` BUG org-babel-execute-src-block: No org-babel-execute function for python! Nick Dokos
2013-02-26 13:49 ` Bastien
2013-02-26 15:42   ` Andreas Röhler
2013-02-26 16:00     ` Bastien
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

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=512CBBC3.6000502@easy-emacs.de \
    --to=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).