From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89094 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: pgfplots broken? Date: Tue, 4 Nov 2014 13:58:21 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0721741000==" X-Trace: ger.gmane.org 1415106345 17656 80.91.229.3 (4 Nov 2014 13:05:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2014 13:05:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 04 14:05:40 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xldnm-0005Mq-Pr for gctc-ntg-context-518@m.gmane.org; Tue, 04 Nov 2014 14:05:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2F46101EF for ; Tue, 4 Nov 2014 14:05:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ISOAIRRklgwR for ; Tue, 4 Nov 2014 14:05:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C142E10230 for ; Tue, 4 Nov 2014 13:59:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D9B8F101E6 for ; Tue, 4 Nov 2014 13:58:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vksjKVlSbm5g for ; Tue, 4 Nov 2014 13:58:33 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id CCFBC101E4 for ; Tue, 4 Nov 2014 13:58:33 +0100 (CET) Original-Received: from mail-qc0-x235.google.com (mail-qc0-x235.google.com [IPv6:2607:f8b0:400d:c01::235]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sA4Cw90H000425 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 4 Nov 2014 13:58:10 +0100 Original-Received: by mail-qc0-f181.google.com with SMTP id w7so10669422qcr.40 for ; Tue, 04 Nov 2014 04:58:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=I4LFxQxlvKRv91Dalb5FveL0e6JqFAlrUZxZDBynNMg=; b=McnaUec4EZXQC7InvbL+qJNRjsyKopAchFUgbLQ7gONrK2LXq/yLC2jbjvACCaeVA6 2r+WPsqjqfCnRMJs0bAlVnnAVuP2gCYOWXVkXrECJBwXb/TptaZ5IiYhk/BMsWhLPfvJ 7SrCvc5oxPLMlSLKkFOFxgTzzhOTLdIkAdrpd1TLZXUirt3z17ZuZ/k954ZoRAkWDL2J z/ZAenLAAUX/B/iOixLX6KYwXY+AiCK8RIk4fVQWQaHbg9IEvxriGYvqGovlRmRW3W9d JkyCDDpQCql6vvb4rxMXyWUip0kz/miLgk3r8wb3oiiFXjTdVk4JuNM5J0Oy05FD+7WK /gfA== X-Received: by 10.140.96.165 with SMTP id k34mr72401479qge.33.1415105901855; Tue, 04 Nov 2014 04:58:21 -0800 (PST) Original-Received: by 10.140.46.36 with HTTP; Tue, 4 Nov 2014 04:58:21 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c01::235; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07NboWaLL - 7f444559d728 - 20141104 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:89094 Archived-At: --===============0721741000== Content-Type: multipart/alternative; boundary=001a113a49ec998ca705070804b3 --001a113a49ec998ca705070804b3 Content-Type: text/plain; charset=UTF-8 On Tue, Nov 4, 2014 at 12:42 PM, Mikael P. Sundqvist wrote: > Hi, pgfplots seems broken with the latest standalone.With the example > > \usemodule[pgfplots] > \starttext > Foo > \stoptext > > Best regards, Mikael > > lua error > error on line 75 in file > > /opt/ConTeXt/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex: > > .../ConTeXt/tex/texmf-context/tex/context/base/util-lib.lua:246: > module 'pgfluamath.functions' not found: > no field package.preload['pgfluamath.functions'] > no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua' > no file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua' > no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua' > no file '/usr/local/lib/lua/5.2/pgfluamath/functions/init.lua' > no file './pgfluamath/functions.lua' > no file '/usr/local/lib/lua/5.2/pgfluamath/functions.so' > no file '/usr/local/lib/lua/5.2/loadall.so' > no file './pgfluamath/functions.so' > no file '/usr/local/lib/lua/5.2/pgfluamath.so' > no file '/usr/local/lib/lua/5.2/loadall.so' > no file './pgfluamath.so' > stack traceback: > [C]: in function 'savedrequire' > .../ConTeXt/tex/texmf-context/tex/context/base/util-lib.lua:246: > in function 'require' > [\directlua]:1: in main chunk > > 65 \let\pgfutil@directlua\directlua > 66 \pgfutil@directlua{% > 67 tex.enableprimitives('pgfutil@',{'luaescapestring'})} > 68 \else > 69 \def\pgfutil@directlua#1{} > 70 \def\pgfutil@luaescapestring#1{} > 71 \fi > 72 > 73 \pgfutil@directlua{% > 74 pgfluamathfunctions = require("pgfluamath.functions") > 75 >> pgfluamathparser = require("pgfluamath.parser")} > 76 > 77 > 78 % Patch some configuration macros such that the modifications are > 79 % available in LUA as well: > 80 \pgfkeys{ > 81 /pgf/trig format/deg/.add > > code={}{\directlua{pgfluamathfunctions.setTrigFormat("deg")}\aftergroup\pgfmath@settrigformat > }, > 82 /pgf/trig format/rad/.add > > code={}{\directlua{pgfluamathfunctions.setTrigFormat("rad")}\aftergroup\pgfmath@settrigformat > }, > 83 } > 84 % ... and reactivate the key: > 85 \pgfmathiftrigonometricusesdeg{% > > is it "pgfluamath.functions.lua" a safe name for a Lua module ? http://www.lua.org/manual/5.2/manual.html#pdf-package.searchers """ The fourth searcher tries an all-in-one loader. It searches the C path for a library for the root name of the given module. For instance, when requiring a.b.c, it will search for a C library for a. If found, it looks into it for an open function for the submodule; in our example, that would be luaopen_a_b_c. With this facility, a package can pack several C submodules into one single library, with each submodule keeping its original open function. """ tex/texmf-modules/t-tikz/tex/generic/pgf/libraries/luamath$ ls -1 pgflibraryluamath.code.tex pgfluamath.functions.lua pgfluamath.parser.lua tex/texmf-modules/t-tikz/tex/generic/pgf/libraries/luamath$ lua Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio > require('pgfluamath.functions') stdin:1: module 'pgfluamath.functions' not found: no field package.preload['pgfluamath.functions'] no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua' no file '/usr/local/share/lua/5.2/pgfluamath/functions/init.lua' no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua' no file '/usr/local/lib/lua/5.2/pgfluamath/functions/init.lua' no file '/usr/share/lua/5.2/pgfluamath/functions.lua' no file '/usr/share/lua/5.2/pgfluamath/functions/init.lua' no file './pgfluamath/functions.lua' no file '/usr/local/lib/lua/5.2/pgfluamath/functions.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.2/pgfluamath/functions.so' no file '/usr/lib/lua/5.2/pgfluamath/functions.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './pgfluamath/functions.so' no file '/usr/local/lib/lua/5.2/pgfluamath.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.2/pgfluamath.so' no file '/usr/lib/lua/5.2/pgfluamath.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './pgfluamath.so' stack traceback: [C]: in function 'require' stdin:1: in main chunk [C]: in ? > require('pgfluamath.functions.lua') stdin:1: module 'pgfluamath.functions.lua' not found: no field package.preload['pgfluamath.functions.lua'] no file '/usr/local/share/lua/5.2/pgfluamath/functions/lua.lua' no file '/usr/local/share/lua/5.2/pgfluamath/functions/lua/init.lua' no file '/usr/local/lib/lua/5.2/pgfluamath/functions/lua.lua' no file '/usr/local/lib/lua/5.2/pgfluamath/functions/lua/init.lua' no file '/usr/share/lua/5.2/pgfluamath/functions/lua.lua' no file '/usr/share/lua/5.2/pgfluamath/functions/lua/init.lua' no file './pgfluamath/functions/lua.lua' no file '/usr/local/lib/lua/5.2/pgfluamath/functions/lua.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.2/pgfluamath/functions/lua.so' no file '/usr/lib/lua/5.2/pgfluamath/functions/lua.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './pgfluamath/functions/lua.so' no file '/usr/local/lib/lua/5.2/pgfluamath.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.2/pgfluamath.so' no file '/usr/lib/lua/5.2/pgfluamath.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './pgfluamath.so' stack traceback: [C]: in function 'require' stdin:1: in main chunk [C]: in ? > os.exit(0) -- luigi --001a113a49ec998ca705070804b3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Nov 4, 2014 at 12:42 PM, Mikael P. Sundqvist = <mickep@gmail.com<= /a>> wrote:
Hi, pgfplots seems broken with th= e latest standalone.With the example

\usemodule[pgfplots]
\starttext
Foo
\stoptext

Best regards, Mikael

lua error=C2=A0 =C2=A0 =C2=A0 =C2=A0> error on line 75 in file
/opt/ConTeXt/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibrary= luamath.code.tex:

.../ConTeXt/tex/texmf-context/tex/context/base/util-lib.lua:246:
module 'pgfluamath.functions' not found:
=C2=A0 =C2=A0 no field package.preload['pgfluamath.functions']
=C2=A0 =C2=A0 no file '/usr/local/share/lua/5.2/pgfluamath/functions.lu= a'
=C2=A0 =C2=A0 no file '/usr/local/share/lua/5.2/pgfluamath/functions/in= it.lua'
=C2=A0 =C2=A0 no file '/usr/local/lib/lua/5.2/pgfluamath/functions.lua&= #39;
=C2=A0 =C2=A0 no file '/usr/local/lib/lua/5.2/pgfluamath/functions/init= .lua'
=C2=A0 =C2=A0 no file './pgfluamath/functions.lua'
=C2=A0 =C2=A0 no file '/usr/local/lib/lua/5.2/pgfluamath/functions.so&#= 39;
=C2=A0 =C2=A0 no file '/usr/local/lib/lua/5.2/loadall.so'
=C2=A0 =C2=A0 no file './pgfluamath/functions.so'
=C2=A0 =C2=A0 no file '/usr/local/lib/lua/5.2/pgfluamath.so'
=C2=A0 =C2=A0 no file '/usr/local/lib/lua/5.2/loadall.so'
=C2=A0 =C2=A0 no file './pgfluamath.so'
stack traceback:
=C2=A0 =C2=A0 [C]: in function 'savedrequire'
=C2=A0 =C2=A0 .../ConTeXt/tex/texmf-context/tex/context/base/util-lib.lua:2= 46:
in function 'require'
=C2=A0 =C2=A0 [\directlua]:1: in main chunk

65=C2=A0 =C2=A0 =C2=A0 =C2=A0\let\pgfutil@directlua\directlua
66=C2=A0 =C2=A0 =C2=A0 =C2=A0\pgfutil@directlua{%
67=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0tex.enableprimitives('pgfutil@'= ,{'luaescapestring'})}
68=C2=A0 =C2=A0 =C2=A0\else
69=C2=A0 =C2=A0 =C2=A0 =C2=A0\def\pgfutil@directlua#1{}
70=C2=A0 =C2=A0 =C2=A0 =C2=A0\def\pgfutil@luaescapestring#1{}
71=C2=A0 =C2=A0 =C2=A0\fi
72
73=C2=A0 =C2=A0 =C2=A0\pgfutil@directlua{%
74=C2=A0 =C2=A0 =C2=A0 =C2=A0pgfluamathfunctions =3D require("pgfluama= th.functions")
75 >>=C2=A0 =C2=A0 pgfluamathparser =3D require("pgfluamath.pars= er")}
76
77
78=C2=A0 =C2=A0 =C2=A0% Patch some configuration macros such that the modif= ications are
79=C2=A0 =C2=A0 =C2=A0% available in LUA as well:
80=C2=A0 =C2=A0 =C2=A0\pgfkeys{
81=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/pgf/trig format/deg/.add
code=3D{}{\directlua{pgfluamathfunctions.setTrigFormat("deg")}\af= tergroup\pgfmath@settrigformat},
82=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/pgf/trig format/rad/.add
code=3D{}{\directlua{pgfluamathfunctions.setTrigFormat("rad")}\af= tergroup\pgfmath@settrigformat},
83=C2=A0 =C2=A0 =C2=A0}
84=C2=A0 =C2=A0 =C2=A0% ... and reactivate the key:
85=C2=A0 =C2=A0 =C2=A0\pgfmathiftrigonometricusesdeg{%

=

is it "pgfluamath.functions.lua" a safe name = for a Lua module ?
=C2=A0
http://www.lua.org/manual/5= .2/manual.html#pdf-package.searchers
"""
The fourth searcher tries an all-in-one loader. It searches the = C path for a library for the root name of the given module. For instance, w= hen requiring a.b.c, it will search for a C library for a. If found, it loo= ks into it for an open function for the submodule; in our example, that wou= ld be luaopen_a_b_c. With this facility, a package can pack several C submo= dules into one single library, with each submodule keeping its original ope= n function.
"""


tex/texmf-modules/t-tikz/tex/generic/pgf/libraries/luamath$ ls= -1
pgflibraryluamath.code.tex
pgfluamath.functions.lua
pgfluamath.parser.lua



tex/texmf-modules/t-tikz/tex/generic/pgf/libraries/luamath$ lua
= Lua 5.2.3 =C2=A0Copyright (C) 1994-2013 Lua.org, PUC-Rio
> req= uire('pgfluamath.functions')
stdin:1: module 'pgfluam= ath.functions' not found:
no field package.preload['pgfluamath.functions']
no file '/us= r/local/share/lua/5.2/pgfluamath/functions.lua'
no file '/usr/local/share/lua/5= .2/pgfluamath/functions/init.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/func= tions.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions/init.lua'
no file '/usr= /share/lua/5.2/pgfluamath/functions.lua'
no file '/usr/share/lua/5.2/pgfluamath/f= unctions/init.lua'
no file './pgfluamath/functions.lua'
no file '/usr/local/lib/lua/5.2= /pgfluamath/functions.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.2/pgfluamath/f= unctions.so'
no file '/usr/lib/lua/5.2/pgfluamath/functions.so'
no file '/usr/local/lib= /lua/5.2/loadall.so'
no file './pgfluamath/functions.so'
no file '/usr/local/lib/lua/5.= 2/pgfluamath.so'
= no file '/usr/lib/x86_64-linux-gnu/lua/5.2/pgfluamath.so'
no file '/us= r/lib/lua/5.2/pgfluamath.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgf= luamath.so'
stack traceback:
[C]: in function 'require'
<= span class=3D"" style=3D"white-space:pre"> stdin:1: in main chunk
[C]: in ?
<= div>> require('pgfluamath.functions.lua')
stdin:1: mod= ule 'pgfluamath.functions.lua' not found:
no field package.preload['pgfluamat= h.functions.lua']
= no file '/usr/local/share/lua/5.2/pgfluamath/functions/lua.lua&= #39;
no file &= #39;/usr/local/share/lua/5.2/pgfluamath/functions/lua/init.lua'
no file '/usr/loc= al/lib/lua/5.2/pgfluamath/functions/lua.lua'
no file '/usr/local/lib/lua/5.2/pgfl= uamath/functions/lua/init.lua'
no file '/usr/share/lua/5.2/pgfluamath/functions/l= ua.lua'
no= file '/usr/share/lua/5.2/pgfluamath/functions/lua/init.lua'
<= div> no file './pgflu= amath/functions/lua.lua'
no file '/usr/local/lib/lua/5.2/pgfluamath/functions/lua= .so'
no fi= le '/usr/lib/x86_64-linux-gnu/lua/5.2/pgfluamath/functions/lua.so'<= /div>
no file '/= usr/lib/lua/5.2/pgfluamath/functions/lua.so'
no file '/usr/local/lib/lua/5.2/load= all.so'
no= file './pgfluamath/functions/lua.so'
no file '/usr/local/lib/lua/5.2/pgfluam= ath.so'
no= file '/usr/lib/x86_64-linux-gnu/lua/5.2/pgfluamath.so'
<= span class=3D"" style=3D"white-space:pre"> no file '/usr/lib/lua= /5.2/pgfluamath.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './pgfluamath.s= o'
stack traceback:
[C]: in function 'require'
stdin:1: in main chunk
<= span class=3D"" style=3D"white-space:pre"> [C]: in ?
> = os.exit(0)

--
= luigi
--001a113a49ec998ca705070804b3-- --===============0721741000== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0721741000==--