emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* BUG org-babel-execute-src-block: No org-babel-execute function for python!
@ 2013-02-26 13:42 Andreas Röhler
  2013-02-26 13:48 ` Nick Dokos
  2013-02-26 13:49 ` Bastien
  0 siblings, 2 replies; 9+ messages in thread
From: Andreas Röhler @ 2013-02-26 13:42 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-02-26 20:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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