ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: pgfplots broken?
Date: Tue, 4 Nov 2014 13:58:21 +0100	[thread overview]
Message-ID: <CAG5iGsAm2MO=VBVYLvnyAVhuCy538gdSTC41V5X1Ws7FQGakMg@mail.gmail.com> (raw)
In-Reply-To: <CAHy-LL-4dqsn0n2SLekxw+CCH=X15aQz3PxofaL08W5p-_WFQg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 5357 bytes --]

On Tue, Nov 4, 2014 at 12:42 PM, Mikael P. Sundqvist <mickep@gmail.com>
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

[-- Attachment #1.2: Type: text/html, Size: 9546 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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	other threads:[~2014-11-04 12:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 11:42 Mikael P. Sundqvist
2014-11-04 12:58 ` luigi scarso [this message]
2014-11-04 15:35   ` Hans Hagen
2014-11-04 14:27 ` Keith J. Schultz
2014-11-04 15:32 ` Hans Hagen
2014-11-04 15:49   ` Mikael P. Sundqvist
2014-11-04 16:21     ` Hans Hagen
2014-11-05 11:22   ` Keith J. Schultz
2014-11-04 14:44 Akira Kakuto
2014-11-04 18:13 ` Mikael P. Sundqvist
2014-11-04 19:12   ` Hans Hagen
2014-11-04 19:22     ` Mikael P. Sundqvist
2014-11-04 22:35 Akira Kakuto
2014-11-05  7:42 Akira Kakuto
2014-11-05  8:14 ` luigi scarso
2014-11-05  9:28 ` Mikael P. Sundqvist
2014-11-05 10:40   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG5iGsAm2MO=VBVYLvnyAVhuCy538gdSTC41V5X1Ws7FQGakMg@mail.gmail.com' \
    --to=luigi.scarso@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).