-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org-babel doesn't load correctly #3439
Comments
👀 |
@CestDiego The error is coming from (org-babel-do-load-languages
'org-babel-load-languages
'((python . t))) (or even easier, just As for the actual bug encountered, it looks similar to a known problem in org-mode. See https://www.mail-archive.com/emacs-orgmode@gnu.org/msg98888.html and https://www.mail-archive.com/emacs-orgmode@gnu.org/msg98762.html. Make sure your packages are up to date. If packages are up to date reinstalling (eval-after-load 'org
(lambda()
(require 'ess-site)
(require 'ob-R)
(require 'ob-emacs-lisp)
(require 'ob-latex)
(require 'octave)
(require 'ob-python)
(require 'ob-sql)
(require 'ob-shell)
(require 'ob-sqlite)
(require 'ob-julia)
(require 'ob-perl)
(require 'ob-org)
(require 'ob-awk)
(require 'ob-sed)
(require 'ob-css)
(require 'ob-js)
(require 'ob-stata)
(setq org-export-babel-evaluate nil)
(setq org-startup-indented t)
;; increase imenu depth to include third level headings
(setq org-imenu-depth 3)
;; Set sensible mode for editing dot files
(add-to-list 'org-src-lang-modes '("dot" . graphviz-dot))
;; Update images from babel code blocks automatically
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images)
(setq org-src-fontify-natively t)
(setq org-src-tab-acts-natively t)
(setq org-confirm-babel-evaluate nil))) to the |
@CestDiego |
@zilongshanren this didn't fix it :( |
Try my workaround at the end of #3314. |
I did this now: added (defun org-cestdiego/init-org-babel ()
(use-package org-babel
:init
(org-babel-do-load-languages
'org-babel-load-languages
'((R . t)
(emacs-lisp . t)
(python . t)
(sh . t)
(haskell . t)
(js . t)
(latex . t)
(gnuplot . t)
(C . t)
(sql . t)
(ditaa . t)
))
)) To my private layer, and now it works, thank you @liangwang for the solving of the error. |
per @zilongshanren 👍 |
I have this problem as well, on OSX and Archlinux, emacs 24 and 25, and it is due to |
Closing in favor of #4618 |
When trying to eval a python source block I get that I have not defined a babel execute for python, but then I go to my config and I try to execute this:
and I get this backtrace:
The text was updated successfully, but these errors were encountered: