ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil)
@ 2011-06-14 16:48 Stappers
  2011-06-14 17:51 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Stappers @ 2011-06-14 16:48 UTC (permalink / raw)
  To: ntg-context

Hello,

While doing

  context foo

I do get

  LuaTools | merging library /usr/share/texmf/tex/context/base/data-ctx.lua
  LuaTools | merging library /usr/share/texmf/tex/context/base/luat-fio.lua
  LuaTools | merging library /usr/share/texmf/tex/context/base/luat-cnf.lua
  LuaTools | saving merge from cont-en.lua
  LuaTools | using compiled initialization file: cont-en.luc
  LuaTools | using lua initialization file: cont-en.luc
  /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil)


What should I do to get beyond that error message?

I'm using Debian on an AMD64, context package is version 2009.11.26-2


Cheers
Geert Stappers

-- 
> And is there a policy on top-posting vs. bottom-posting?
Yes.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil)
  2011-06-14 16:48 /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil) Stappers
@ 2011-06-14 17:51 ` Hans Hagen
  2011-06-14 18:57   ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2011-06-14 17:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 14-6-2011 6:48, Stappers wrote:
> Hello,
>
> While doing
>
>    context foo
>
> I do get
>
>    LuaTools | merging library /usr/share/texmf/tex/context/base/data-ctx.lua
>    LuaTools | merging library /usr/share/texmf/tex/context/base/luat-fio.lua
>    LuaTools | merging library /usr/share/texmf/tex/context/base/luat-cnf.lua
>    LuaTools | saving merge from cont-en.lua
>    LuaTools | using compiled initialization file: cont-en.luc
>    LuaTools | using lua initialization file: cont-en.luc
>    /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil)
>
>
> What should I do to get beyond that error message?
>
> I'm using Debian on an AMD64, context package is version 2009.11.26-2

way too old .. luatex as well as context moved on (and luatools in no 
longer used)

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil)
  2011-06-14 17:51 ` Hans Hagen
@ 2011-06-14 18:57   ` Aditya Mahajan
  2011-06-15  7:36     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2011-06-14 18:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 14 Jun 2011, Hans Hagen wrote:

> On 14-6-2011 6:48, Stappers wrote:
>> Hello,
>> 
>> While doing
>>
>>    context foo
>> 
>> I do get
>>
>>    LuaTools | merging library 
>> /usr/share/texmf/tex/context/base/data-ctx.lua
>>    LuaTools | merging library 
>> /usr/share/texmf/tex/context/base/luat-fio.lua
>>    LuaTools | merging library 
>> /usr/share/texmf/tex/context/base/luat-cnf.lua
>>    LuaTools | saving merge from cont-en.lua
>>    LuaTools | using compiled initialization file: cont-en.luc
>>    LuaTools | using lua initialization file: cont-en.luc
>>    /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory 
>> metatable expected, got nil)
>> 
>> 
>> What should I do to get beyond that error message?
>> 
>> I'm using Debian on an AMD64, context package is version 2009.11.26-2
>
> way too old .. luatex as well as context moved on (and luatools in no longer 
> used)

FWIW, I get the same error message on my TL2010 installation.

$luatex --version
This is LuaTeX, Version beta-0.67.0-2011042320 (rev 4192)

$context --version
MTXrun | main context file: 
/usr/share/texmf-dist/tex/context/base/context.tex
MTXrun | current version: 2010.05.24 13:05

$context --make
MTXrun | running command: luatools --make --compile cont-en
....
LuaTools | using compiled initialization file: cont-en.luc
LuaTools | using lua initialization file: cont-en.luc
/usr/bin/luatools:2734: bad argument #1 to '(for generator)' (directory 
metatable expected, got nil)
...

I am pretty sure that ConTeXt in TL2010 was working at some stage and 
failed after I updated. I normally just use the minimals, so I never 
bothered to dig into this.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil)
  2011-06-14 18:57   ` Aditya Mahajan
@ 2011-06-15  7:36     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2011-06-15  7:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 14-6-2011 8:57, Aditya Mahajan wrote:
> On Tue, 14 Jun 2011, Hans Hagen wrote:
>
>> On 14-6-2011 6:48, Stappers wrote:
>>> Hello,
>>>
>>> While doing
>>>
>>> context foo
>>>
>>> I do get
>>>
>>> LuaTools | merging library
>>> /usr/share/texmf/tex/context/base/data-ctx.lua
>>> LuaTools | merging library
>>> /usr/share/texmf/tex/context/base/luat-fio.lua
>>> LuaTools | merging library
>>> /usr/share/texmf/tex/context/base/luat-cnf.lua
>>> LuaTools | saving merge from cont-en.lua
>>> LuaTools | using compiled initialization file: cont-en.luc
>>> LuaTools | using lua initialization file: cont-en.luc
>>> /usr/bin/luatools:2329: bad argument #1 to '(for generator)'
>>> (directory metatable expected, got nil)
>>>
>>>
>>> What should I do to get beyond that error message?
>>>
>>> I'm using Debian on an AMD64, context package is version 2009.11.26-2
>>
>> way too old .. luatex as well as context moved on (and luatools in no
>> longer used)
>
> FWIW, I get the same error message on my TL2010 installation.
>
> $luatex --version
> This is LuaTeX, Version beta-0.67.0-2011042320 (rev 4192)
>
> $context --version
> MTXrun | main context file:
> /usr/share/texmf-dist/tex/context/base/context.tex
> MTXrun | current version: 2010.05.24 13:05
>
> $context --make
> MTXrun | running command: luatools --make --compile cont-en
> .....
> LuaTools | using compiled initialization file: cont-en.luc
> LuaTools | using lua initialization file: cont-en.luc
> /usr/bin/luatools:2734: bad argument #1 to '(for generator)' (directory
> metatable expected, got nil)
> ....
>
> I am pretty sure that ConTeXt in TL2010 was working at some stage and
> failed after I updated. I normally just use the minimals, so I never
> bothered to dig into this.

There has been a change in the lua lfs functions dealing with dir 
scanning and although the context lua code has been adapted to this, it 
might not be the case in all distributions. So, it's an unlucky 
combination of older / newer code.

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-15  7:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-14 16:48 /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil) Stappers
2011-06-14 17:51 ` Hans Hagen
2011-06-14 18:57   ` Aditya Mahajan
2011-06-15  7:36     ` Hans Hagen

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).