Hi,

while trying to use the module pgfplots from latest ConTeXt minimals I
encountered the following error:

  [..]
  )) 
(/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgfplots/libs/pgfplotslibrary.code.tex)
 
(/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgfplots/oldpgfcompatib/pgfplotsoldpgfsupp_loader.code.tex
 
(/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgf/libraries/pgflibraryfpu.code.tex))
 
(/home/t-8ch/Projekte/context/minimals/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.codetex
  ! LuaTeX error <\directlua >:1: module 'pgfplots.lua' not found:
        no field package.preload['pgfplots.lua']
        no file './pgfplots/lua.so'
        no file '/usr/local/lib/lua/5.1/pgfplots/lua.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './pgfplots.so'
        no file '/usr/local/lib/lua/5.1/pgfplots.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
  stack traceback:
        [C]: in function 'require'
        <\directlua >:1: in main chunk.

ConTeXt version: 2012.11.16 23:51

This could be fixed by removing the suffix '.lua' from the argument
to `require(pgfplots.lua)` in line 1979 of the file
tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex

  diff --git 
a/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex.old 
b/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex
  index 0ef2cb0..6d504a7 100644
  --- a/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex.old
  +++ b/tex/texmf-modules/tex/generic/pgfplots/util/pgfplotsutil.code.tex
  @@ -1976,7 +1976,7 @@
   \catcode`\%=12 \gdef\pgfplotsPERCENT{%}}

   \pgfutil@IfUndefined{directlua}{}{%
  -     \directlua{require(\pgfplotsDQ pgfplots.lua\pgfplotsDQ)}%
  +     \directlua{require(\pgfplotsDQ pgfplots\pgfplotsDQ)}%
   }%

   % swaps the content of two macros

Is this report sufficient or should I also contact pgfplots upstream?

Regards,
Thomas

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

Reply via email to