* Org-babel init
@ 2010-07-12 16:23 Jordi Inglada
2010-07-12 16:29 ` Richard Riley
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Jordi Inglada @ 2010-07-12 16:23 UTC (permalink / raw
To: Emacs-orgmode
Hi all,
I am having the same problem as this user here:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
and the contrib/lisp directory is indeed in my load path.
I am using a git changeset cloned today (Org-mode version 6.34trans
(release_6.36.608.gc1ef)).
I have tried using "emacs -q" and then loading an .el file containing
only the following lines:
(setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
(setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path))
(require 'org-install)
(require 'org-babel-init)
(require 'org-babel-python)
and I get the same result.
Thank you very much for your help.
Jordi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Org-babel init
2010-07-12 16:23 Org-babel init Jordi Inglada
@ 2010-07-12 16:29 ` Richard Riley
2010-07-12 17:17 ` Eric Schulte
2010-07-12 17:07 ` Erik Iverson
` (2 subsequent siblings)
3 siblings, 1 reply; 9+ messages in thread
From: Richard Riley @ 2010-07-12 16:29 UTC (permalink / raw
To: emacs-orgmode
Jordi Inglada <jordi.inglada@cesbio.cnes.fr> writes:
> Hi all,
>
> I am having the same problem as this user here:
>
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
>
> and the contrib/lisp directory is indeed in my load path.
>
> I am using a git changeset cloned today (Org-mode version 6.34trans
> (release_6.36.608.gc1ef)).
>
> I have tried using "emacs -q" and then loading an .el file containing
> only the following lines:
>
> (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path))
>
> (require 'org-install)
> (require 'org-babel-init)
> (require 'org-babel-python)
>
> and I get the same result.
>
> Thank you very much for your help.
>
> Jordi
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
I havent looked in detail but I recently had issues with it. Here is my
init.el. No idea if its even relevant to be honest, but babel works for
elisp files ;)
--8<---------------cut here---------------start------------->8---
;;; init.el --- Where all the magic begins
;;
;; This file loads both
;; - Org-mode : http://orgmode.org/ and
;; - Org-babel: http://orgmode.org/worg/org-contrib/babel/org-babel.php#library-of-babel
;;
;; It then loads the rest of our Emacs initialization from Emacs lisp
;; embedded in literate Org-mode files.
;; Load up Org Mode and Org Babel for elisp embedded in Org Mode files
(setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name)))
(let* ((org-dir (expand-file-name
"lisp" (expand-file-name
"org-mode" dotfiles-dir)))
(org-contrib-dir (expand-file-name
"lisp" (expand-file-name
"contrib" (expand-file-name
".." org-dir))))
(load-path (append (list org-dir org-contrib-dir (concat org-dir "/babel"))
(or load-path nil))))
;; load up Org-mode and Org-babel
(require 'org-install)
(require 'ob-tangle)
)
;; load up all literate org-mode files in this directory
;;(mapc #'org-babel-load-file (directory-files dotfiles-dir t "\\.org$"))
(org-babel-load-file "~/.emacs.d/emacs-init.org")
;;; init.el ends here
--8<---------------cut here---------------end--------------->8---
Hopefully it helps.
r.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Org-babel init
2010-07-12 16:23 Org-babel init Jordi Inglada
2010-07-12 16:29 ` Richard Riley
@ 2010-07-12 17:07 ` Erik Iverson
2010-07-12 17:15 ` Eric Schulte
[not found] ` <2244855.24695.1278961524540.JavaMail.root@zm-cesbio-01>
3 siblings, 0 replies; 9+ messages in thread
From: Erik Iverson @ 2010-07-12 17:07 UTC (permalink / raw
To: Jordi Inglada; +Cc: Emacs-orgmode
You need to see:
http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
Jordi Inglada wrote:
> Hi all,
>
> I am having the same problem as this user here:
>
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
>
> and the contrib/lisp directory is indeed in my load path.
>
> I am using a git changeset cloned today (Org-mode version 6.34trans
> (release_6.36.608.gc1ef)).
>
> I have tried using "emacs -q" and then loading an .el file containing
> only the following lines:
>
> (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path))
>
> (require 'org-install)
> (require 'org-babel-init)
> (require 'org-babel-python)
>
> and I get the same result.
>
> Thank you very much for your help.
>
> Jordi
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Org-babel init
2010-07-12 16:23 Org-babel init Jordi Inglada
2010-07-12 16:29 ` Richard Riley
2010-07-12 17:07 ` Erik Iverson
@ 2010-07-12 17:15 ` Eric Schulte
[not found] ` <2244855.24695.1278961524540.JavaMail.root@zm-cesbio-01>
3 siblings, 0 replies; 9+ messages in thread
From: Eric Schulte @ 2010-07-12 17:15 UTC (permalink / raw
To: Jordi Inglada; +Cc: Emacs-orgmode
Hi Jordi,
With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
you no longer need to add the contrib directory to your load path, or
require org-babel-init. The following should work for you.
(setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
(require 'org-install)
(require 'ob-python)
note that for a language-specific require, you now prefix the language
name with ob- rather than org-babel-
For more complete information on the new setup, see
http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
Cheers -- Eric
Jordi Inglada <jordi.inglada@cesbio.cnes.fr> writes:
> Hi all,
>
> I am having the same problem as this user here:
>
> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
>
> and the contrib/lisp directory is indeed in my load path.
>
> I am using a git changeset cloned today (Org-mode version 6.34trans
> (release_6.36.608.gc1ef)).
>
> I have tried using "emacs -q" and then loading an .el file containing
> only the following lines:
>
> (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path))
>
> (require 'org-install)
> (require 'org-babel-init)
> (require 'org-babel-python)
>
> and I get the same result.
>
> Thank you very much for your help.
>
> Jordi
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Re: Org-babel init
2010-07-12 16:29 ` Richard Riley
@ 2010-07-12 17:17 ` Eric Schulte
0 siblings, 0 replies; 9+ messages in thread
From: Eric Schulte @ 2010-07-12 17:17 UTC (permalink / raw
To: Richard Riley; +Cc: emacs-orgmode
Hi Richard,
You could probably safely simplify your config to something more like
the following.
http://github.com/eschulte/emacs-starter-kit/blob/master/init.el
Cheers -- Eric
Richard Riley <rileyrg@gmail.com> writes:
> Jordi Inglada <jordi.inglada@cesbio.cnes.fr> writes:
>
>> Hi all,
>>
>> I am having the same problem as this user here:
>>
>> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
>>
>> and the contrib/lisp directory is indeed in my load path.
>>
>> I am using a git changeset cloned today (Org-mode version 6.34trans
>> (release_6.36.608.gc1ef)).
>>
>> I have tried using "emacs -q" and then loading an .el file containing
>> only the following lines:
>>
>> (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
>> (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path))
>>
>> (require 'org-install)
>> (require 'org-babel-init)
>> (require 'org-babel-python)
>>
>> and I get the same result.
>>
>> Thank you very much for your help.
>>
>> Jordi
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
> I havent looked in detail but I recently had issues with it. Here is my
> init.el. No idea if its even relevant to be honest, but babel works for
> elisp files ;)
>
>
> ;;; init.el --- Where all the magic begins
> ;;
> ;; This file loads both
> ;; - Org-mode : http://orgmode.org/ and
> ;; - Org-babel: http://orgmode.org/worg/org-contrib/babel/org-babel.php#library-of-babel
> ;;
> ;; It then loads the rest of our Emacs initialization from Emacs lisp
> ;; embedded in literate Org-mode files.
>
> ;; Load up Org Mode and Org Babel for elisp embedded in Org Mode files
> (setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name)))
>
> (let* ((org-dir (expand-file-name
> "lisp" (expand-file-name
> "org-mode" dotfiles-dir)))
> (org-contrib-dir (expand-file-name
> "lisp" (expand-file-name
> "contrib" (expand-file-name
> ".." org-dir))))
> (load-path (append (list org-dir org-contrib-dir (concat org-dir "/babel"))
> (or load-path nil))))
> ;; load up Org-mode and Org-babel
> (require 'org-install)
> (require 'ob-tangle)
> )
>
> ;; load up all literate org-mode files in this directory
> ;;(mapc #'org-babel-load-file (directory-files dotfiles-dir t "\\.org$"))
> (org-babel-load-file "~/.emacs.d/emacs-init.org")
> ;;; init.el ends here
>
>
> Hopefully it helps.
>
> r.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Org-babel init
[not found] ` <2244855.24695.1278961524540.JavaMail.root@zm-cesbio-01>
@ 2010-07-12 20:53 ` Jordi Inglada
2010-07-12 20:58 ` Jordi Inglada
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Jordi Inglada @ 2010-07-12 20:53 UTC (permalink / raw
To: Eric Schulte; +Cc: Emacs-orgmode
Eric,
Thanks for the answer.
If I do that using "emacs -q", I get this message when loading the
configuration:
"Symbol's value as variable is void: org-babel-tangle-lang-exts"
An after that when trying to evaluate this block from the tutorial
#+begin_src python
import time
print("Hello, today's date is %s" % time.ctime())
print('Two plus two is')
return 2 + 2
#+end_src
I get this other message:
"org-babel-execute-src-block: No org-babel-execute function for python!"
If I put the configuration in my .emacs, the error I get is:
"org-babel-result-hash: Symbol's value as variable is void: org-babel-lob-one-liner-regexp"
I guess I missed something.
Thanks.
Jordi
Eric Schulte writes:
> Hi Jordi,
>
> With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
> you no longer need to add the contrib directory to your load path, or
> require org-babel-init. The following should work for you.
>
> (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> (require 'org-install)
> (require 'ob-python)
>
> note that for a language-specific require, you now prefix the language
> name with ob- rather than org-babel-
>
> For more complete information on the new setup, see
> http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
>
> Cheers -- Eric
>
> Jordi Inglada <jordi.inglada@cesbio.cnes.fr> writes:
>
> > Hi all,
> >
> > I am having the same problem as this user here:
> >
> > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
> >
> > and the contrib/lisp directory is indeed in my load path.
> >
> > I am using a git changeset cloned today (Org-mode version 6.34trans
> > (release_6.36.608.gc1ef)).
> >
> > I have tried using "emacs -q" and then loading an .el file containing
> > only the following lines:
> >
> > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path))
> >
> > (require 'org-install)
> > (require 'org-babel-init)
> > (require 'org-babel-python)
> >
> > and I get the same result.
> >
> > Thank you very much for your help.
> >
> > Jordi
> >
> > _______________________________________________
> > Emacs-orgmode mailing list
> > Please use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Org-babel init
2010-07-12 20:53 ` Jordi Inglada
@ 2010-07-12 20:58 ` Jordi Inglada
2010-07-12 21:17 ` Eric Schulte
[not found] ` <8956733.24699.1278969401734.JavaMail.root@zm-cesbio-01>
2 siblings, 0 replies; 9+ messages in thread
From: Jordi Inglada @ 2010-07-12 20:58 UTC (permalink / raw
To: Emacs-orgmode
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf-8, Size: 4236 bytes --]
Just to complete my message, here is the debugger's output:
Debugger entered--Lisp error: (void-variable org-babel-tangle-lang-exts)
add-to-list(org-babel-tangle-lang-exts ("python" . "py"))
byte-code("ÁÂ!ÁÃ!ÁÄ!ÁÅ!ÆÇÈ\"É\bB\x10ÊÉ!$\0ËÉÌ\"Ì" [current-load-list require ob ob-ref ob-comint ob-eval add-to-list org-babel-tangle-lang-exts ("python" . "py") org-babel-default-header-args:python default-boundp set-default nil] 3)
require(ob-python)
eval-buffer(#<buffer *load*> nil "/home/inglada/.emacs" nil t) ; Reading at buffer position 14626
load-with-code-conversion("/home/inglada/.emacs" "/home/inglada/.emacs" t t)
load("~/.emacs" t t)
#[nil "\b
´\0 Æ=\x11\0Ç\bÈQ7\0 É=3\0ÊÇËÌ##\0Í7\0ÊÇËÎ#/\0Ï7\0Í7\0Ç\bÐQ\x1aÑ\x13Ò\nÑ#\vÑ=_\0ÓÔÕÇ\bÖQ!\"\x1cÒ\fÑ#\vÑ=^\0\n\x13)\v¤\0×\v!ؤ\0Ù\v!\x1dÚP\x1e\"Û\x0e\"!\0\x0e\"\0Û\r!\0\r\0Ë\x15£\0Ü\r\v\"¡\0ÝÞ\r\v#ßà!\r\x13*\x0e#?
³\0Ë\x1e$ÒáÑ#))" [init-file-user system-type user-init-file-1 user-init-file otherfile source ms-dos "~" "/_emacs" windows-nt directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" "~/_emacs" "/.emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default" alt inhibit-default-init inhibit-startup-screen] 7]()
command-line()
normal-top-level()
Jordi
Jordi Inglada writes:
> Eric,
>
> Thanks for the answer.
>
> If I do that using "emacs -q", I get this message when loading the
> configuration:
>
> "Symbol's value as variable is void: org-babel-tangle-lang-exts"
>
> An after that when trying to evaluate this block from the tutorial
>
> #+begin_src python
> import time
> print("Hello, today's date is %s" % time.ctime())
> print('Two plus two is')
> return 2 + 2
> #+end_src
>
> I get this other message:
>
> "org-babel-execute-src-block: No org-babel-execute function for python!"
>
> If I put the configuration in my .emacs, the error I get is:
>
> "org-babel-result-hash: Symbol's value as variable is void: org-babel-lob-one-liner-regexp"
>
> I guess I missed something.
>
> Thanks.
>
> Jordi
>
> Eric Schulte writes:
> > Hi Jordi,
> >
> > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
> > you no longer need to add the contrib directory to your load path, or
> > require org-babel-init. The following should work for you.
> >
> > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> > (require 'org-install)
> > (require 'ob-python)
> >
> > note that for a language-specific require, you now prefix the language
> > name with ob- rather than org-babel-
> >
> > For more complete information on the new setup, see
> > http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
> >
> > Cheers -- Eric
> >
> > Jordi Inglada <jordi.inglada@cesbio.cnes.fr> writes:
> >
> > > Hi all,
> > >
> > > I am having the same problem as this user here:
> > >
> > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
> > >
> > > and the contrib/lisp directory is indeed in my load path.
> > >
> > > I am using a git changeset cloned today (Org-mode version 6.34trans
> > > (release_6.36.608.gc1ef)).
> > >
> > > I have tried using "emacs -q" and then loading an .el file containing
> > > only the following lines:
> > >
> > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path))
> > >
> > > (require 'org-install)
> > > (require 'org-babel-init)
> > > (require 'org-babel-python)
> > >
> > > and I get the same result.
> > >
> > > Thank you very much for your help.
> > >
> > > Jordi
> > >
> > > _______________________________________________
> > > Emacs-orgmode mailing list
> > > Please use `Reply All' to send replies to the list.
> > > Emacs-orgmode@gnu.org
> > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Org-babel init
2010-07-12 20:53 ` Jordi Inglada
2010-07-12 20:58 ` Jordi Inglada
@ 2010-07-12 21:17 ` Eric Schulte
[not found] ` <8956733.24699.1278969401734.JavaMail.root@zm-cesbio-01>
2 siblings, 0 replies; 9+ messages in thread
From: Eric Schulte @ 2010-07-12 21:17 UTC (permalink / raw
To: Jordi Inglada; +Cc: Emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
Hi Jordi,
The attached simple-init.el file works for me with
emacs -Q -l simple-init.el
Emacs started w/o error, and I was able to evaluate python code blocks
with no problem.
Please give it a try and let me know if it doesn't work -- Eric
(note you'll have to update the path to org/lisp)
[-- Attachment #2: simple-init.el --]
[-- Type: application/emacs-lisp, Size: 170 bytes --]
[-- Attachment #3: Type: text/plain, Size: 2669 bytes --]
Jordi Inglada <jordi.inglada@cesbio.cnes.fr> writes:
> Eric,
>
> Thanks for the answer.
>
> If I do that using "emacs -q", I get this message when loading the
> configuration:
>
> "Symbol's value as variable is void: org-babel-tangle-lang-exts"
>
> An after that when trying to evaluate this block from the tutorial
>
> #+begin_src python
> import time
> print("Hello, today's date is %s" % time.ctime())
> print('Two plus two is')
> return 2 + 2
> #+end_src
>
> I get this other message:
>
> "org-babel-execute-src-block: No org-babel-execute function for python!"
>
> If I put the configuration in my .emacs, the error I get is:
>
> "org-babel-result-hash: Symbol's value as variable is void: org-babel-lob-one-liner-regexp"
>
> I guess I missed something.
>
> Thanks.
>
> Jordi
>
> Eric Schulte writes:
> > Hi Jordi,
> >
> > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
> > you no longer need to add the contrib directory to your load path, or
> > require org-babel-init. The following should work for you.
> >
> > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> > (require 'org-install)
> > (require 'ob-python)
> >
> > note that for a language-specific require, you now prefix the language
> > name with ob- rather than org-babel-
> >
> > For more complete information on the new setup, see
> > http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
> >
> > Cheers -- Eric
> >
> > Jordi Inglada <jordi.inglada@cesbio.cnes.fr> writes:
> >
> > > Hi all,
> > >
> > > I am having the same problem as this user here:
> > >
> > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
> > >
> > > and the contrib/lisp directory is indeed in my load path.
> > >
> > > I am using a git changeset cloned today (Org-mode version 6.34trans
> > > (release_6.36.608.gc1ef)).
> > >
> > > I have tried using "emacs -q" and then loading an .el file containing
> > > only the following lines:
> > >
> > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path))
> > >
> > > (require 'org-install)
> > > (require 'org-babel-init)
> > > (require 'org-babel-python)
> > >
> > > and I get the same result.
> > >
> > > Thank you very much for your help.
> > >
> > > Jordi
> > >
> > > _______________________________________________
> > > Emacs-orgmode mailing list
> > > Please use `Reply All' to send replies to the list.
> > > Emacs-orgmode@gnu.org
> > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[-- Attachment #4: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Org-babel init
[not found] ` <8956733.24699.1278969401734.JavaMail.root@zm-cesbio-01>
@ 2010-07-13 7:01 ` Jordi Inglada
0 siblings, 0 replies; 9+ messages in thread
From: Jordi Inglada @ 2010-07-13 7:01 UTC (permalink / raw
To: Eric Schulte; +Cc: Emacs-orgmode
Hi Eric,
That worked. I am ready to go now!
Thank you!
Jordi
Eric Schulte writes:
> Hi Jordi,
>
> The attached simple-init.el file works for me with
>
> emacs -Q -l simple-init.el
>
> Emacs started w/o error, and I was able to evaluate python code blocks
> with no problem.
>
> Please give it a try and let me know if it doesn't work -- Eric
>
> (note you'll have to update the path to org/lisp)
> xapplication/emacs-lisp [Click mouse-2 to save to a file]
>
> Jordi Inglada <jordi.inglada@cesbio.cnes.fr> writes:
>
> > Eric,
> >
> > Thanks for the answer.
> >
> > If I do that using "emacs -q", I get this message when loading the
> > configuration:
> >
> > "Symbol's value as variable is void: org-babel-tangle-lang-exts"
> >
> > An after that when trying to evaluate this block from the tutorial
> >
> > #+begin_src python
> > import time
> > print("Hello, today's date is %s" % time.ctime())
> > print('Two plus two is')
> > return 2 + 2
> > #+end_src
> >
> > I get this other message:
> >
> > "org-babel-execute-src-block: No org-babel-execute function for python!"
> >
> > If I put the configuration in my .emacs, the error I get is:
> >
> > "org-babel-result-hash: Symbol's value as variable is void: org-babel-lob-one-liner-regexp"
> >
> > I guess I missed something.
> >
> > Thanks.
> >
> > Jordi
> >
> > Eric Schulte writes:
> > > Hi Jordi,
> > >
> > > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so
> > > you no longer need to add the contrib directory to your load path, or
> > > require org-babel-init. The following should work for you.
> > >
> > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> > > (require 'org-install)
> > > (require 'ob-python)
> > >
> > > note that for a language-specific require, you now prefix the language
> > > name with ob- rather than org-babel-
> > >
> > > For more complete information on the new setup, see
> > > http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html
> > >
> > > Cheers -- Eric
> > >
> > > Jordi Inglada <jordi.inglada@cesbio.cnes.fr> writes:
> > >
> > > > Hi all,
> > > >
> > > > I am having the same problem as this user here:
> > > >
> > > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html
> > > >
> > > > and the contrib/lisp directory is indeed in my load path.
> > > >
> > > > I am using a git changeset cloned today (Org-mode version 6.34trans
> > > > (release_6.36.608.gc1ef)).
> > > >
> > > > I have tried using "emacs -q" and then loading an .el file containing
> > > > only the following lines:
> > > >
> > > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path))
> > > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path))
> > > >
> > > > (require 'org-install)
> > > > (require 'org-babel-init)
> > > > (require 'org-babel-python)
> > > >
> > > > and I get the same result.
> > > >
> > > > Thank you very much for your help.
> > > >
> > > > Jordi
> > > >
> > > > _______________________________________________
> > > > Emacs-orgmode mailing list
> > > > Please use `Reply All' to send replies to the list.
> > > > Emacs-orgmode@gnu.org
> > > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-07-13 7:01 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12 16:23 Org-babel init Jordi Inglada
2010-07-12 16:29 ` Richard Riley
2010-07-12 17:17 ` Eric Schulte
2010-07-12 17:07 ` Erik Iverson
2010-07-12 17:15 ` Eric Schulte
[not found] ` <2244855.24695.1278961524540.JavaMail.root@zm-cesbio-01>
2010-07-12 20:53 ` Jordi Inglada
2010-07-12 20:58 ` Jordi Inglada
2010-07-12 21:17 ` Eric Schulte
[not found] ` <8956733.24699.1278969401734.JavaMail.root@zm-cesbio-01>
2010-07-13 7:01 ` Jordi Inglada
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.