org-auto-tangle icon indicating copy to clipboard operation
org-auto-tangle copied to clipboard

No Execute function for python found

Open RampedIndent opened this issue 2 years ago • 3 comments

With the following test file

#+PROPERTY: header-args:mkdirp yes
#+auto_tangle: t
* Test org

#+NAME: test
#+begin_src python
  return "test "
#+end_src

#+RESULTS: test
: test


#+begin_src shell :noweb yes :tangle test.sh
  echo <<test()>>
#+end_src

I get the following Error when the python Code executes fine with C-c C-c and with the regular tangle command

Wrote /home/rampedindent/tmp/test.org
Tangling /home/rampedindent/tmp/test.org...
error in process sentinel: async-handle-result: No org-babel-execute function for python!
error in process sentinel: No org-babel-execute function for python!

configuration

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

  (setq org-confirm-babel-evaluate nil)
  (setq org-babel-python-command "python3")
  (push '("conf-unix" . conf-unix) org-src-lang-modes)
 


  (use-package org-auto-tangle
  ;; :load-path "site-lisp/org-auto-tangle/"    ;; this line is necessary only if you cloned the repo in your site-lisp directory 
  :defer t
  :hook (org-mode . org-auto-tangle-mode))

  (setq org-auto-tangle-babel-safelist '(
                                         "/home/rampedindent/.dotfiles/system.org"
                                         "/home/rampedindent/tmp/test.org"
                                         ))

RampedIndent avatar May 09 '22 09:05 RampedIndent

It seems to work correctly with a emacs lisp beginning block

RampedIndent avatar May 09 '22 09:05 RampedIndent

That might be an issue with how org manages these blocks I'll look into it.

yilkalargaw avatar Jun 30 '22 11:06 yilkalargaw

@RampedIndent does the commit by @rdparker help you solve the issue by passing in variables?

yilkalargaw avatar Aug 12 '22 00:08 yilkalargaw

i can't replicate the issue anymore, so it either means that the commit fixed it. Or my os reinstall.

RampedIndent avatar Jan 13 '23 16:01 RampedIndent