emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] python sessions


From: Eric Schulte
Subject: Re: [O] python sessions
Date: Tue, 26 Mar 2013 06:32:36 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Andreas Röhler <address@hidden> 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-development
>>
>
> 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,

> 
> 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

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



reply via email to

[Prev in Thread] Current Thread [Next in Thread]