Re: [NTG-context] pgfplots error

2012-11-21 Thread Mojca Miklavec
On Wed, Nov 21, 2012 at 12:16 AM, Aditya Mahajan wrote:
 On Tue, 20 Nov 2012, Thomas Weißschuh wrote:

 while trying to use the module pgfplots from latest ConTeXt minimals I
 encountered the following error:
 Is this report sufficient or should I also contact pgfplots upstream?

In principle you need to contact the upstream developer (unless it's
Aditya reading the mailing list and pointing you to the patch :)

 This will be fixed in the next release of pgfplots.

t-tikz in distribution uses the master from git repository on
sourceforge (even though I'm not exactly sure how frequently it
updates). In any case, looking at the current state, I see the lua
file is already inside tex, not inside scripts, so Aditya's
comment to wait for the released patch should no longer hold. If the
problem persists, it might be a different bug (I didn't test
anything).

Mojca
___
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
___

Re: [NTG-context] pgfplots error

2012-11-21 Thread Thomas Weißschuh
Quoting Mojca Miklavec (2012-11-21 12:10:37)
[..]
 t-tikz in distribution uses the master from git repository on
 sourceforge (even though I'm not exactly sure how frequently it
 updates). In any case, looking at the current state, I see the lua
 file is already inside tex, not inside scripts, so Aditya's
 comment to wait for the released patch should no longer hold. If the
 problem persists, it might be a different bug (I didn't test
 anything).

I reproduced it with a brand new clone of minimals.
The fix for the last bug is indeed already there.

You can test it with the following MWE:

  \usemodule [pgfplots]

  \starttext
\starttikzpicture
  \startaxis
\addplot coordinates {
  (0, 0)
};
  \stopaxis
\stoptikzpicture
  \stoptext

If this is indeed a bug in pgfplots and not my setup I'll report it
upstream.

(My system is an up-to-date Archlinux 64bit)

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
___


Re: [NTG-context] pgfplots error

2012-11-21 Thread Mojca Miklavec
On Wed, Nov 21, 2012 at 8:38 PM, Thomas Weißschuh wrote:
 Quoting Mojca Miklavec (2012-11-21 12:10:37)
 [..]
 t-tikz in distribution uses the master from git repository on
 sourceforge (even though I'm not exactly sure how frequently it
 updates). In any case, looking at the current state, I see the lua
 file is already inside tex, not inside scripts, so Aditya's
 comment to wait for the released patch should no longer hold. If the
 problem persists, it might be a different bug (I didn't test
 anything).

 I reproduced it with a brand new clone of minimals.
 The fix for the last bug is indeed already there.

 You can test it with the following MWE:

   \usemodule [pgfplots]

   \starttext
 \starttikzpicture
   \startaxis
 \addplot coordinates {
   (0, 0)
 };
   \stopaxis
 \stoptikzpicture
   \stoptext

 If this is indeed a bug in pgfplots and not my setup I'll report it
 upstream.

I can reproduce the problem on my machine and the patch solves the
problem, but something seems really weird. Why on earth does it want
to load files from /usr/local/lib/lua/5.1 and why does it want to load
a binary module instead of a lua file? (I don't have that folder, but
even if I had it, pgfplots wouldn't be there)

! 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'

Mojca
___
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
___

Re: [NTG-context] pgfplots error

2012-11-21 Thread Aditya Mahajan

On Wed, 21 Nov 2012, Mojca Miklavec wrote:


On Wed, Nov 21, 2012 at 8:38 PM, Thomas Weißschuh wrote:

Quoting Mojca Miklavec (2012-11-21 12:10:37)
[..]

t-tikz in distribution uses the master from git repository on
sourceforge (even though I'm not exactly sure how frequently it
updates). In any case, looking at the current state, I see the lua
file is already inside tex, not inside scripts, so Aditya's
comment to wait for the released patch should no longer hold. If the
problem persists, it might be a different bug (I didn't test
anything).


I reproduced it with a brand new clone of minimals.
The fix for the last bug is indeed already there.

You can test it with the following MWE:

  \usemodule [pgfplots]

  \starttext
\starttikzpicture
  \startaxis
\addplot coordinates {
  (0, 0)
};
  \stopaxis
\stoptikzpicture
  \stoptext

If this is indeed a bug in pgfplots and not my setup I'll report it
upstream.


I can reproduce the problem on my machine and the patch solves the
problem,


So can I.


but something seems really weird. Why on earth does it want
to load files from /usr/local/lib/lua/5.1



and why does it want to load
a binary module instead of a lua file?


http://www.luafaq.org/#T1.19



(I don't have that folder, but
even if I had it, pgfplots wouldn't be there)


  \startluacode
print(package.cpath)
  \stopluacode

gives

./?.so;/usr/local/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so

so

require('pdfplots.lua')

searches for the library file in those folders.


! LuaTeX error \directlua :1: module 'pgfplots.lua' not found:
no field package.preload['pgfplots.lua']
no file './pgfplots/lua.so'  NOTICE pgfplots/lua
no file '/usr/local/lib/lua/5.1/pgfplots/lua.so'  NOTICE
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'



I think that pdfplots should be using dofile rather than require.

Aditya___
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
___

Re: [NTG-context] pgfplots error

2012-11-20 Thread Aditya Mahajan

On Tue, 20 Nov 2012, Thomas Weißschuh wrote:


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


See: http://sourceforge.net/mailarchive/message.php?msg_id=29944181


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?


This will be fixed in the next release of pgfplots.

Aditya___
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
___

Re: [NTG-context] pgfplots error

2012-11-20 Thread Thomas Weißschuh
Hm,

it seems like my general purpose search engine missed an existing report
about the same issue, for which Aditya provided a fix.
(http://www.mail-archive.com/ntg-context@ntg.nl/msg66002.html)

So there are now two fixes.
Sorry for the noise if mine is nonsense :-)

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