From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Invalid function: org-babel-header-args-safe-fn in Melpa Date: Sun, 14 Feb 2016 13:01:26 -0500 Message-ID: References: <87povzb83m.fsf@gmail.com> <87io1r6yh3.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1141e22c66c20b052bbeb091 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV0zB-0006Uu-LL for emacs-orgmode@gnu.org; Sun, 14 Feb 2016 13:01:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aV0zA-0003G1-5y for emacs-orgmode@gnu.org; Sun, 14 Feb 2016 13:01:29 -0500 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:38391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aV0z9-0003Fa-Qj for emacs-orgmode@gnu.org; Sun, 14 Feb 2016 13:01:28 -0500 Received: by mail-wm0-x230.google.com with SMTP id a4so28989335wme.1 for ; Sun, 14 Feb 2016 10:01:27 -0800 (PST) In-Reply-To: <87io1r6yh3.fsf@Rainer.invalid> 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: Achim Gratz Cc: "emacs-orgmode@gnu.org" --001a1141e22c66c20b052bbeb091 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable It does happen anyway. I had that in to get around this issue a while ago (long story, but it is why we still run 8.2.10), and I still get the issue without it. I think I have figured it out. The order the packages are installed is important. The code below illustrates the issue for me. If I install org-plus-contrib first, the issue goes away. Note the first thing the pydoc package does is: (require 'org), which I guess interferes with subsequent building of org. (I am using GNU Emacs 25.1.50.1). Also, you need to have (R . t) in there. that specifically triggers the error. (setq user-emacs-directory "./sandbox/") (require 'package) (setq package-archives '(("org" . "http://orgmode.org/elpa/") ("gnu" . "http://elpa.gnu.org/packages/") ("melpa" . "http://melpa.org/packages/"))) (package-initialize) (package-refresh-contents) (package-install 'pydoc) (package-install 'org-plus-contrib) (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) (R . t) )) (message "done") John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Sun, Feb 14, 2016 at 11:36 AM, Achim Gratz wrote: > Aaron Ecay writes: > > This looks like the kind of problem that results when org is > byte-compiled > > in an emacs with a different version of org loaded. This used to be a > > problem when installing via package.el (and not just for org), but I > think > > there has been some work put into making sure it doesn=E2=80=99t happen= any more. > > (I know emacs developers were discussing them and then they seemed to g= o > > away so I assumed they were fixed...it=E2=80=99s possible I was mistake= n though.) > > No, this is bug #10125 and the others that it was merged with (most > recently #21267, with the exact same error message as John got). > > > If I had to guess, I=E2=80=99d say that line 63 of packages.el in your = jmax > > setup defeats these fixes. Try commenting it out. It should not be > > necessary to manually byte-compile packages: package.el should do that > > for you. And in this case, I hypothesize that it is actually harmful. > > Yes it is. Although I'd venture to guess that it would have happened > anyway. > > > Regards, > Achim. > -- > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ > > Wavetables for the Waldorf Blofeld: > http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables > > > --001a1141e22c66c20b052bbeb091 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It does happen anyway. I had that in to get around this is= sue a while ago (long story, but it is why we still run 8.2.10), and I stil= l get the issue without it.=C2=A0

I think I have figured= it out. The order the packages are installed is important. The code below = illustrates the issue for me. If I install org-plus-contrib first, the issu= e goes away. Note the first thing the pydoc package does is:

(require 'org), which I guess interferes with subsequent building of= org. (I am using=C2=A0GNU Emacs 25.1.50.1).


A= lso, you need to have (R . t) in there. that specifically triggers the erro= r.=C2=A0


(setq user-emacs-dire= ctory "./sandbox/")

(require 'packag= e)

(setq package-archives
=C2=A0 =C2=A0 = =C2=A0 '(("org" . "= http://orgmode.org/elpa/")
("melpa" . "http://melpa.org/packages/")))

(package-initialize)
(package-refresh-conte= nts)


(package-install 'pydoc)
(package-install 'org-plus-contrib)

<= br>
(org-babel-do-load-languages
=C2=A0'org-babel-l= oad-languages
=C2=A0'((emacs-lisp . t) =C2=A0=C2=A0
=C2=A0 =C2=A0(R . t)
=C2=A0 =C2=A0))

(message "done")


John

---------------------= --------------
Professor John Kitchin=C2=A0
Doherty Hall A207F
Dep= artment of Chemical Engineering
Carnegie Mellon University
Pittsburgh= , PA 15213
412-268-7803

On Sun, Feb 14, 2016 at 11:36 AM, Achim Grat= z <Stromeko@nexgo.de> wrote:
Aaron Ecay writes:
> This looks like the kind of problem that results when org is byte-comp= iled
> in an emacs with a different version of org loaded.=C2=A0 This used to= be a
> problem when installing via package.el (and not just for org), but I t= hink
> there has been some work put into making sure it doesn=E2=80=99t happe= n any more.
> (I know emacs developers were discussing them and then they seemed to = go
> away so I assumed they were fixed...it=E2=80=99s possible I was mistak= en though.)

No, this is bug #10125 and the others that it was merged with (most<= br> recently #21267, with the exact same error message as John got).

> If I had to guess, I=E2=80=99d say that line 63 of packages.el in your= jmax
> setup defeats these fixes.=C2=A0 Try commenting it out.=C2=A0 It shoul= d not be
> necessary to manually byte-compile packages: package.el should do that=
> for you.=C2=A0 And in this case, I hypothesize that it is actually har= mful.

Yes it is.=C2=A0 Although I'd venture to guess that it would hav= e happened
anyway.


Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+<= br>
Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.ht= ml#BlofeldUserWavetables



--001a1141e22c66c20b052bbeb091--