emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] BUG org-babel-execute-src-block: No org-babel-execute function f


From: Andreas Röhler
Subject: Re: [O] BUG org-babel-execute-src-block: No org-babel-execute function for python!
Date: Tue, 26 Feb 2013 20:34:31 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

Am 26.02.2013 17:00, schrieb Ista Zahn:
On Tue, Feb 26, 2013 at 10:42 AM, Andreas Röhler
<address@hidden> wrote:
Am 26.02.2013 14:49, schrieb Bastien:

Hi Andreas,

Andreas Röhler <address@hidden> writes:

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


You need

(org-babel-do-load-languages
   'org-babel-load-languages
   '((python . t)))

See (info "(Org)Languages")

HTH,


Bugs exists after loading that.

What is the nature of the bugs?

Please tell if you need more info.

what is the result of 'M-x org-version'?

Also, try this simple test and report the results:
1. start emaces with emacs -q
2. visit a new file with a .org extension, e.g., tmp.org
3. paste this in:
8<--------------------cut here<--------------------8<
Place cursor in the code block below and press C-c C-c

#+begin_src emacs-lisp :exports none
   (org-babel-do-load-languages
    'org-babel-load-languages
    '((python . t)))
#+end_src

#+BEGIN_SRC python :results output
a = 5
b = 16
print(a + b)
#+END_SRC
8<--------------------cut here<--------------------8<
4. place the cursor inside the first code block and press C-c C-c
5. place the cursor inside the second code block and press C-c C-c
6. let us know what happens

Best,
Ista



Andreas



Hi Ista,

Org-mode version is 7.9.3e (7.9.3e-3-gb07a9b

i.e. loading current trunk.

When following your prescription, bug does not occur.

My from way to load languages was

  (org-babel-do-load-languages
   'org-babel-do-load-languages
   '(
     (sh . t)
     (python . t)
     ))

If I load this first, then your print-example shows error like indicated in 
subject line.

Something wrong with this code?

Thanks all,

Andreas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]