From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: python sessions Date: Tue, 26 Mar 2013 06:32:36 -0600 Message-ID: <87li9a72vn.fsf@gmail.com> References: <51496061.20706@easy-emacs.de> <514AB9FC.3050601@easy-emacs.de> <87d2ut2o5m.fsf@bzg.ath.cx> <514AC116.7030408@easy-emacs.de> <877gkxrbgn.fsf@gmail.com> <514EAF96.3030402@easy-emacs.de> <17915.1364144298@alphaville> <18546.1364150504@alphaville> <5150B790.2040603@easy-emacs.de> <87boa7upoc.fsf@gmail.com> <51514059.1020902@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKT8t-0000lU-Dl for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 08:38:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKT8r-00024x-Bu for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 08:38:19 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:34759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKT8r-00024q-5T for emacs-orgmode@gnu.org; Tue, 26 Mar 2013 08:38:17 -0400 Received: by mail-pd0-f171.google.com with SMTP id z10so987535pdj.30 for ; Tue, 26 Mar 2013 05:38:16 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Cc: emacs-orgmode Andreas R=C3=B6hler writes: > Am 25.03.2013 22:37, schrieb Eric Schulte: >>> running into this, func def seems missing: >>> >>> Debugger entered--Lisp error: (void-function org-babel-result-cond) >> >> My guess is that you have a mixed install. You are mostly running the >> Org-mode which ships with Emacs (in which `org-babel-result-cond' is not >> defined), but you are running the version of ob-python.el from the >> master branch (which expects `org-babel-result-cond' to be defined). >> >> This is an increasingly common problem. Maybe the following can help. >> http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-devel= opment >> > > Hmm, don't see there anything to change wrt to the issue. > The key is timing, i.e., the path to the *newest* version of Org-mode must be at the front of the load-path before the first time Org-mode is required. I believe this link is the one I should have sent in my previous email http://orgmode.org/manual/Installation.html. Especially important is that (add-to-list 'load-path "~/path/to/orgdir/lisp") is at the top of your .emacs. > Have in my init > I don't see where you (require 'org) below, but unless it is always done interactively and always done after calling your load-feature function, you're probably out of luck. > > > (defun ar-load-feature-org-mode () > (interactive) > (add-to-list 'load-path "MY_PATH/feature-org-mode") > (add-to-list 'load-path "MY_PATH/feature-org-mode/lisp") > (find-file "MY_PATH/feature-org-mode/lisp/ob-python.el") > (load "MY_PATH/feature-org-mode/lisp/org-compat.el" nil t) > (load "MY_PATH/feature-org-mode/lisp/ob-comint.el" nil t) > (load "MY_PATH/feature-org-mode/lisp/ob-emacs-lisp.el" nil t) > (load "MY_PATH/feature-org-mode/lisp/org.el" nil t) > (load "MY_PATH/feature-org-mode/lisp/ob-eval.el" nil t) > (load "MY_PATH/feature-org-mode/lisp/ob.el" nil t) > (load "MY_PATH/feature-org-mode/lisp/ob-python.el") > ;; (load "MY_PATH/feature-org-mode/testing/org-test-ob-consts.el" nil t) > ;; (load "MY_PATH/feature-org-mode/testing/org-test.el" nil t) > (load-this-directory "MY_PATH/feature-org-mode/lisp") > (org-babel-do-load-languages > 'org-babel-load-languages > '( > (sh . t) > (python . t)))) > > Maybe should unload existing org-mode first. It is not about "unloading", rather the goal is to *only* load the newest Org-mode. Best, >=20 > Checking for existing features yields: > > org-agenda org-bbdb org-bibtex org-compat > org-docview org-entities org-exp org-exp-blocks > org-faces org-footnote org-gnus org-html > org-info org-infojs org-irc org-jsinfo > org-list org-loaddefs org-macs org-mew > org-mhe org-pcomplete org-rmail org-src > org-version org-vm org-w3m org-wl > > ;;;;;;;; > > Thanks, > > Andreas --=20 Eric Schulte http://cs.unm.edu/~eschulte