From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Subject: Re: BUG org-babel-execute-src-block: No org-babel-execute function for python! Date: Tue, 26 Feb 2013 20:34:31 +0100 Message-ID: <512D0E47.2080802@easy-emacs.de> References: <512CBBC3.6000502@easy-emacs.de> <877glvyylc.fsf@bzg.ath.cx> <512CD7E1.7010903@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAQI1-0005da-7o for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 14:34:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAQHz-0007nm-NT for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 14:34:13 -0500 Received: from moutng.kundenserver.de ([212.227.17.10]:51565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAQHz-0007nB-DO for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 14:34:11 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ista Zahn Cc: Bastien , Nick Dokos , emacs-orgmode Am 26.02.2013 17:00, schrieb Ista Zahn: > On Tue, Feb 26, 2013 at 10:42 AM, Andreas Röhler > wrote: >> Am 26.02.2013 14:49, schrieb Bastien: >> >>> Hi Andreas, >>> >>> Andreas Röhler 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