ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: /usr/bin/luatools:2329: bad argument #1 to '(for generator)' (directory metatable expected, got nil)
Date: Wed, 15 Jun 2011 09:36:20 +0200	[thread overview]
Message-ID: <4DF860F4.8050909@wxs.nl> (raw)
In-Reply-To: <alpine.LNX.2.02.1106141454140.20451@ybpnyubfg.ybpnyqbznva>

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
___________________________________________________________________________________


      reply	other threads:[~2011-06-15  7:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14 16:48 Stappers
2011-06-14 17:51 ` Hans Hagen
2011-06-14 18:57   ` Aditya Mahajan
2011-06-15  7:36     ` Hans Hagen [this message]

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=4DF860F4.8050909@wxs.nl \
    --to=pragma@wxs.nl \
    --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).