internal mptopdf not found in Context MkIV 2013.04.20
Partly to test Norbert's TeXLive 2013 packages for Debian, I just installed the whole set of packages, which include Context MkIV 2013.04.20. With it I get an error not present with the older (2012) format, namely that the internal conversion of mps files to pdf fails. I don't know whether it is a Debian-specific problem or shared with upstream, hence I am also sending this to dev-context. Here's the minimal example (mytest.tex): \enabletrackers[graphics.conversion] \starttext \externalfigure[fig/whole-tree.1] \stoptext (You'll need an actual mps file of that name to get the error below.) Then running it with $ context --trackers=list mytest produces the error graphics > inclusion > no converter for 'mps' to 'pdf' [MP to PDF] ! LuaTeX error [string "\directlua "]:1: attempt to index field 'mptopdf' (a nil value) Here's the full log: mtx-context | warning: no (local) file './mytest', proceeding mtx-context | run 1: luatex --fmt="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luatex/cont-en" --jobname="mytest" --lua="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./mytest" --c:input="./mytest" --c:kindofrun=1 --c:maxnofruns=8 --c:trackers="list" "cont-yes.mkiv" This is LuaTeX, Version beta-0.76.0-2013052015 (rev 4627) \write18 enabled. (/usr/share/texmf/tex/context/base/cont-yes.mkiv ConTeXt ver: 2013.04.20 01:15 MKIV current fmt: 2013.6.28 int: english/english system > 'cont-new.mkiv' loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv) system > files > jobname 'mytest', input './mytest', result 'mytest' fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/sanjoy/sfse/mytest.tex{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown library 'loc' {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > 'fallback modern rm 12pt' is loaded graphics > inclusion > checking conversion of 'fig/whole-tree.1', fullname 'fig/whole-tree.1', old format 'mps', new format 'pdf', conversion 'default', resolution 'default' graphics > inclusion > no converter for 'mps' to 'pdf' [MP to PDF] ! LuaTeX error [string "\directlua "]:1: attempt to index field 'mptopdf' (a nil value) stack traceback: [string "\directlua "]:1: in main chunk. system > tex > error on line 4 in file /home/sanjoy/sfse/mytest.tex: LuaTeX error ... 1 \enabletrackers[graphics.conversion] 2 \starttext 3 \externalfigure[fig/whole-tree.1] 4 >> \stoptext 5 \convertMPtoPDF ...onvertmpstopdf("\MPfilename ")} \removeunwantedspaces \egr... \grph_include_process_mps ...convertMPtoPDF {#1}11 } l.4 } \grph_include_place ...e \ctxlua {figures.check()} \ctxlua {figures.include()... \grph_include_figure ...include_place [#1][#2][#3] \fi \syst_helpers_triple_empty_two_spaced ...{#2}][][] ... l.4 \stoptext ? X mkiv lua stats > used config file: selfautodir:/share/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: readable: '/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b' | readable+writable: '/home/sanjoy/.texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b' mkiv lua stats > resource resolver: loadtime 0.113 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: <none> mkiv lua stats > stored bytecode data: 326 modules (0.400 sec), 69 tables (0.000 sec), 395 chunks (0.400 sec) mkiv lua stats > cleaned up reserved nodes: 38 nodes, 9 lists of 441 mkiv lua stats > node memory usage: 2 hlist, 12 attribute, 21 glue_spec, 4 attribute_list, 3 temp, 3 if_stack, 4 dir mkiv lua stats > used backend: pdf (backend for directly generating pdf output) mkiv lua stats > loaded patterns: en::2 mkiv lua stats > jobdata time: 0.000 seconds saving, 0.002 seconds loading mkiv lua stats > callbacks: 38 direct, 179 indirect, 217 total mkiv lua stats > randomizer: resumed with value 0.27778996726395 mkiv lua stats > result saved in file: mytest.pdf, compresslevel 3, objectcompreslevel 3 mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf lmroman12-regular.otf mkiv lua stats > fonts load time: 0.320 seconds mkiv lua stats > luatex banner: this is luatex, version beta-0.76.0-2013052015 (tex live 2013/dev/debian)(rev 4627) mkiv lua stats > control sequences: 37286 of 65536 + 100000 mkiv lua stats > current memory usage: 25 MB (ctx: 24 MB) mkiv lua stats > runtime: 277.615 seconds mtx-context | fatal error: return code: 1
On 6/30/2013 4:24 PM, Sanjoy Mahajan wrote:
Partly to test Norbert's TeXLive 2013 packages for Debian, I just installed the whole set of packages, which include Context MkIV 2013.04.20. With it I get an error not present with the older (2012) format, namely that the internal conversion of mps files to pdf fails.
I don't know whether it is a Debian-specific problem or shared with upstream, hence I am also sending this to dev-context.
Here's the minimal example (mytest.tex):
\enabletrackers[graphics.conversion] \starttext \externalfigure[fig/whole-tree.1] \stoptext
(You'll need an actual mps file of that name to get the error below.)
is there a file meta-pdf.lua in your tree? ----------------------------------------------------------------- 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 -----------------------------------------------------------------
I don't get the error (I'm using MacTeX 2013 which is almost pure TL
2013 installed to the default location).
Mojca
On Sun, Jun 30, 2013 at 4:24 PM, Sanjoy Mahajan
Partly to test Norbert's TeXLive 2013 packages for Debian, I just installed the whole set of packages, which include Context MkIV 2013.04.20. With it I get an error not present with the older (2012) format, namely that the internal conversion of mps files to pdf fails.
I don't know whether it is a Debian-specific problem or shared with upstream, hence I am also sending this to dev-context.
Here's the minimal example (mytest.tex):
\enabletrackers[graphics.conversion] \starttext \externalfigure[fig/whole-tree.1] \stoptext
(You'll need an actual mps file of that name to get the error below.)
Then running it with
$ context --trackers=list mytest
produces the error
graphics > inclusion > no converter for 'mps' to 'pdf' [MP to PDF] ! LuaTeX error [string "\directlua "]:1: attempt to index field 'mptopdf' (a nil value)
Here's the full log:
mtx-context | warning: no (local) file './mytest', proceeding mtx-context | run 1: luatex --fmt="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luatex/cont-en" --jobname="mytest" --lua="/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./mytest" --c:input="./mytest" --c:kindofrun=1 --c:maxnofruns=8 --c:trackers="list" "cont-yes.mkiv" This is LuaTeX, Version beta-0.76.0-2013052015 (rev 4627) \write18 enabled. (/usr/share/texmf/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2013.04.20 01:15 MKIV current fmt: 2013.6.28 int: english/english
system > 'cont-new.mkiv' loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv) system > files > jobname 'mytest', input './mytest', result 'mytest' fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/sanjoy/sfse/mytest.tex{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown library 'loc' {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > 'fallback modern rm 12pt' is loaded graphics > inclusion > checking conversion of 'fig/whole-tree.1', fullname 'fig/whole-tree.1', old format 'mps', new format 'pdf', conversion 'default', resolution 'default' graphics > inclusion > no converter for 'mps' to 'pdf' [MP to PDF] ! LuaTeX error [string "\directlua "]:1: attempt to index field 'mptopdf' (a nil value) stack traceback: [string "\directlua "]:1: in main chunk.
system > tex > error on line 4 in file /home/sanjoy/sfse/mytest.tex: LuaTeX error ...
1 \enabletrackers[graphics.conversion] 2 \starttext 3 \externalfigure[fig/whole-tree.1] 4 >> \stoptext 5
\convertMPtoPDF ...onvertmpstopdf("\MPfilename ")} \removeunwantedspaces \egr... \grph_include_process_mps ...convertMPtoPDF {#1}11 } l.4 }
\grph_include_place ...e \ctxlua {figures.check()} \ctxlua {figures.include()... \grph_include_figure ...include_place [#1][#2][#3] \fi \syst_helpers_triple_empty_two_spaced ...{#2}][][]
... l.4 \stoptext
? X
mkiv lua stats > used config file: selfautodir:/share/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: readable: '/var/lib/texmf/luatex-cache/context/f919750633122078d706dd10f1cfd39b' | readable+writable: '/home/sanjoy/.texmf-var/luatex-cache/context/f919750633122078d706dd10f1cfd39b' mkiv lua stats > resource resolver: loadtime 0.113 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: <none> mkiv lua stats > stored bytecode data: 326 modules (0.400 sec), 69 tables (0.000 sec), 395 chunks (0.400 sec) mkiv lua stats > cleaned up reserved nodes: 38 nodes, 9 lists of 441 mkiv lua stats > node memory usage: 2 hlist, 12 attribute, 21 glue_spec, 4 attribute_list, 3 temp, 3 if_stack, 4 dir mkiv lua stats > used backend: pdf (backend for directly generating pdf output) mkiv lua stats > loaded patterns: en::2 mkiv lua stats > jobdata time: 0.000 seconds saving, 0.002 seconds loading mkiv lua stats > callbacks: 38 direct, 179 indirect, 217 total mkiv lua stats > randomizer: resumed with value 0.27778996726395 mkiv lua stats > result saved in file: mytest.pdf, compresslevel 3, objectcompreslevel 3 mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf lmroman12-regular.otf mkiv lua stats > fonts load time: 0.320 seconds mkiv lua stats > luatex banner: this is luatex, version beta-0.76.0-2013052015 (tex live 2013/dev/debian)(rev 4627) mkiv lua stats > control sequences: 37286 of 65536 + 100000 mkiv lua stats > current memory usage: 25 MB (ctx: 24 MB) mkiv lua stats > runtime: 277.615 seconds
mtx-context | fatal error: return code: 1
Hi everyone, On So, 30 Jun 2013, Sanjoy Mahajan wrote:
I don't know whether it is a Debian-specific problem or shared with upstream, hence I am also sending this to dev-context.
I just updated Debian's context to the latest version in TeX Live, and I also get an error (see below) There seems to be a typo in meta-pdf.lua:87: The error is: [MP to PDF] ! LuaTeX error ...norbert/tl/2013/texmf-dist/tex/context/base/meta-pdf.lua:87: attempt to call global 'f_concatm' (a nil value) the line 87 is: mpscode(f_concatm(unpack(m_stack_concat))) when I change it to mpscode(f_concat(unpack(m_stack_concat))) (delete the "m") it works suddenly without any problem.. Norbert PS: Mojca, maybe you cheated ;-) ------------------------------------------------------------------------ PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live & Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 ------------------------------------------------------------------------
On 7/2/2013 9:18 AM, Norbert Preining wrote:
Hi everyone,
On So, 30 Jun 2013, Sanjoy Mahajan wrote:
I don't know whether it is a Debian-specific problem or shared with upstream, hence I am also sending this to dev-context.
I just updated Debian's context to the latest version in TeX Live, and I also get an error (see below)
There seems to be a typo in meta-pdf.lua:87:
The error is: [MP to PDF] ! LuaTeX error ...norbert/tl/2013/texmf-dist/tex/context/base/meta-pdf.lua:87: attempt to call global 'f_concatm' (a nil value)
the line 87 is: mpscode(f_concatm(unpack(m_stack_concat)))
when I change it to mpscode(f_concat(unpack(m_stack_concat)))
(delete the "m") it works suddenly without any problem..
Norbert
PS: Mojca, maybe you cheated ;-)
ah, thanks for noticing that code is only seen in some cases (pens) 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 -----------------------------------------------------------------
On Di, 02 Jul 2013, Hans Hagen wrote:
(delete the "m") it works suddenly without any problem..
that code is only seen in some cases (pens)
So is that the correct fix? I am not sure... Norbert ------------------------------------------------------------------------ PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live & Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 ------------------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Mojca Miklavec
-
Norbert Preining
-
Sanjoy Mahajan