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{%
On Tue, Nov 4, 2014 at 12:42 PM, Mikael P. Sundqvist
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
On 11/4/2014 1:58 PM, luigi scarso wrote:
no field package.preload['pgfluamath.functions'] no file '/usr/local/share/lua/5.2/pgfluamath/functions.lua'
is it "pgfluamath.functions.lua" a safe name for a Lua module ?
the is in fact a path separator there Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Can confirm not working in latest Beta. BUT, works in TeXLive version!! so, something has changed on our side! regards Keith.
Am 04.11.2014 um 12:42 schrieb Mikael P. Sundqvist
: Hi, pgfplots seems broken with the latest standalone.With the example
\usemodule[pgfplots] \starttext Foo \stoptext
Best regards, Mikael
On 11/4/2014 12:42 PM, Mikael P. Sundqvist wrote:
Hi, pgfplots seems broken with the latest standalone.With the example
\usemodule[pgfplots] \starttext Foo \stoptext
Is there a "pgfluamath.*" file on the system? Hans
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{% ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Tue, Nov 4, 2014 at 4:32 PM, Hans Hagen
On 11/4/2014 12:42 PM, Mikael P. Sundqvist wrote:
Hi, pgfplots seems broken with the latest standalone.With the example
\usemodule[pgfplots] \starttext Foo \stoptext
Is there a "pgfluamath.*" file on the system?
Hans
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{%
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
--
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Yes, ConTeXt$ find . -iname '*pgfluamath*' ./tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.parser.lua ./tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.functions.lua ./tex/texmf-modules/tex/generic/pgfplots/lua/pgfplotsoldpgfsupp_pgfluamath.parser.lua ./tex/texmf-modules/tex/generic/pgfplots/lua/pgfplotsoldpgfsupp_pgfluamath.functions.lua Best regards, Mikael
On 11/4/2014 4:49 PM, Mikael P. Sundqvist wrote:
ConTeXt$ find . -iname '*pgfluamath*' ./tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.parser.lua ./tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.functions.lua ./tex/texmf-modules/tex/generic/pgfplots/lua/pgfplotsoldpgfsupp_pgfluamath.parser.lua ./tex/texmf-modules/tex/generic/pgfplots/lua/pgfplotsoldpgfsupp_pgfluamath.functions.lua
require("foo.bar") means: look for file [configured paths]/foo/bar.[so|dll|lua] so, those filenames looks weird. I have no clue how e.g. latex or plain looks for files with require (maybe they kick in some kpse lookup) but i'm not going to add such an exception to context local foo = dofile(resolvers.findfile(foo.bar.lua")) might work for such files ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hi Mikeal, Hans, All, This is indeed strange as I can confirm that the code works with TeXLive 2014. I checked my latest Standalone updates this morning. I am running it on a MacBook Pro with clean installed Yosemite and latest Xcode. I use TeXShop to use TeX, et al. The files are indeed there: /Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.parser.lua /Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgfluamath.functions.lua and /usr/local/texlive/2014/texmf-dist/tex/generic/pgf/libraries/luamath/pgfluamath.parser.lua /usr/local/texlive/2014/texmf-dist/tex/generic/pgf/libraries/luamath/pgfluamath.functions.lua interesting parts of log file from standalone run: mtx-context | warning: synctex is enabled mtx-context | run 1: luatex --fmt="/Users/quayjay/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="Ohne-Titel1" --lua="/Users/quayjay/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --synctex=1 --c:autogenerate --c:currentrun=1 --c:fulljobname="./Ohne-Titel1.tex" --c:input="./Ohne-Titel1.tex" --c:kindofrun=1 --c:maxnofruns=8 --c:synctex="1" "cont-yes.mkiv" This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) \write18 enabled. open source > 1 > 1 > /Users/quayjay/context/tex/texmf-context/tex/context/base/cont-yes.mkiv job > passes > version mismatch: 1.25 <> 1.27 ConTeXt ver: 2014.11.04 19:10 MKIV beta fmt: 2014.11.5 int: english/english [snip, snip] open source > 5 > 70 > /Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/pgfplotscore.code.tex open source > 6 > 71 > /Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgfplotssysgeneric.code.tex Package pgfplots notification 'compat/show suggested version=true': document has been generated with the most recent feature set (\pgfplotsset{compat=\mostrecent }). close source > 6 > 71 > /Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgfplotssysgeneric.code.tex close source > 5 > 71 > /Users/quayjay/context/tex/texmf-modules/tex/generic/pgfplots/pgfplotscore.code.tex [snip, snip] open source > 6 > 75 > /Users/quayjay/context/tex/texmf-modules/tex/generic/pgf/libraries/luamath/pgflibraryluamath.code.tex lua error > error on line 75 in file /Users/quayjay/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 1) I can not be sure that the pgfplot notification has anything to do with our problem. But, I doubt it. 2) no field package.preload['pgfluamath.functions'] Now, this msg does give me concern, they should have been preloaded or am I missing something! 3) I look at the different versions of pgfluamath,functions.lua and noticed then has been new logic introduced. So, the problem might be a programmers error from PGF-code somewhere. Personally, I do not think this is a problem with ConTeXt not finding files, but a problem in the PGF-Code itself. That is some tables are not being set up right. Hope this helps. Keith J. Schultz
Am 04.11.2014 um 16:32 schrieb Hans Hagen
: On 11/4/2014 12:42 PM, Mikael P. Sundqvist wrote:
Hi, pgfplots seems broken with the latest standalone.With the example
\usemodule[pgfplots] \starttext Foo \stoptext
Is there a "pgfluamath.*" file on the system?
Hans
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'
participants (4)
-
Hans Hagen
-
Keith J. Schultz
-
luigi scarso
-
Mikael P. Sundqvist