emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Ista Zahn <istazahn@gmail.com>
Cc: Bastien <bzg@altern.org>, Nick Dokos <nicholas.dokos@hp.com>,
	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 20:34:31 +0100	[thread overview]
Message-ID: <512D0E47.2080802@easy-emacs.de> (raw)
In-Reply-To: <CA+vqiLHx+4VR62qeRHA8pbAVVYFogWQUOksiK0QjxTvsSETPOQ@mail.gmail.com>

Am 26.02.2013 17:00, schrieb Ista Zahn:
> On Tue, Feb 26, 2013 at 10:42 AM, Andreas Röhler
> <andreas.roehler@easy-emacs.de> wrote:
>> Am 26.02.2013 14:49, schrieb Bastien:
>>
>>> Hi Andreas,
>>>
>>> Andreas Röhler <andreas.roehler@easy-emacs.de> 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	other threads:[~2013-02-26 19:34 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
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 [this message]
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=512D0E47.2080802@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=istazahn@gmail.com \
    --cc=nicholas.dokos@hp.com \
    /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).