From: Jordi Inglada <jordi.inglada@cesbio.cnes.fr>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Org-babel init
Date: Tue, 13 Jul 2010 09:01:33 +0200 [thread overview]
Message-ID: <19516.3917.365816.199280@gargle.gargle.HOWL> (raw)
In-Reply-To: <8956733.24699.1278969401734.JavaMail.root@zm-cesbio-01>
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
prev parent reply other threads:[~2010-07-13 7:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19516.3917.365816.199280@gargle.gargle.HOWL \
--to=jordi.inglada@cesbio.cnes.fr \
--cc=Emacs-orgmode@gnu.org \
--cc=schulte.eric@gmail.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 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.