From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Org-babel init Date: Mon, 12 Jul 2010 14:17:48 -0700 Message-ID: <874og49z7n.fsf@gmail.com> References: <19515.16766.160745.656932@gargle.gargle.HOWL> <2244855.24695.1278961524540.JavaMail.root@zm-cesbio-01> <19515.32951.323718.862937@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=38785 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYQNt-0005W6-GQ for Emacs-orgmode@gnu.org; Mon, 12 Jul 2010 17:17:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYQNs-0003XQ-4H for Emacs-orgmode@gnu.org; Mon, 12 Jul 2010 17:17:53 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:47687) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYQNr-0003XF-W1 for Emacs-orgmode@gnu.org; Mon, 12 Jul 2010 17:17:52 -0400 Received: by pvc30 with SMTP id 30so4940706pvc.0 for ; Mon, 12 Jul 2010 14:17:50 -0700 (PDT) In-Reply-To: <19515.32951.323718.862937@gargle.gargle.HOWL> (Jordi Inglada's message of "Mon, 12 Jul 2010 22:53:11 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jordi Inglada Cc: Emacs-orgmode@gnu.org --=-=-= 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) --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=simple-init.el Content-Transfer-Encoding: quoted-printable (setq load-path (cons "~/src/org/lisp" load-path)) (require 'org-install) (org-babel-do-load-languages 'org-babel-load-languages '((python . t) (emacs-lisp . t))) --=-=-= 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 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 --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--