lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great Dr Eberhard Lisse once stated:
> Pedro, Pavel
> 
> On a 5K iMac with MacOs 10.12.4 and Homebrew (from which I have
> installed Lua 5.2.4) updated to the latest I have installed abstk and
> it asked for lcurses and lgi, the latter of which required the setting
> of PKG_CONFIG_PATH to find libffi.pc and then installed.
> 
> Whatever example I run I get this error:
> 
> /usr/local/bin/lua: /usr/local/share/lua/5.2/lgi/override/cairo.lua:31:
> attempt to index field '_module' (a nil value)
> stack traceback:
> 	/usr/local/share/lua/5.2/lgi/override/cairo.lua:31: in main chunk
> 	[C]: in function 'require'
> 	/usr/local/share/lua/5.2/lgi/namespace.lua:176: in function 'require'
> 	/usr/local/share/lua/5.2/lgi/namespace.lua:163: in function 'require'
> 	/usr/local/share/lua/5.2/lgi/namespace.lua:163: in function 'require'
> 	/usr/local/share/lua/5.2/lgi/namespace.lua:163: in function 'require'
> 	/usr/local/share/lua/5.2/abstk/AbsGtk.lua:13: in main chunk
> 	[C]: in function 'require'
> 	/usr/local/share/lua/5.2/abstk.lua:11: in main chunk
> 	[C]: in function 'require'
> 	/Users/el/Downloads/t.lua:3: in main chunk
> 	[C]: in ?
> 
> I am just starting to dabble a little in Lua (I am an elderly
> Gynecologist using (LyX and) (lua)LaTeX) and have no idea what to do
> next, even though I realize it seems to be an lgi issue as I get the
> same when I run test programs within the lgi luarock.
> 
> Any help appreciated.

  I submitted a patch last night to make the GTK bindings optional and it
was accepted [1] (along with the patch to let it run under Lua 5.1/5.2) so I
expect an update to be published soon.

  -spc

[1]	https://github.com/PedroAlvesV/AbsTK/pull/9