Hi David, Your selection_to_pdf.lua script is outdated. You can get the current one at https://raw.githubusercontent.com/darktable-org/lua-scripts/master/official/selection_to_pdf.lua . <https://github.com/darktable-org/lua-scripts> <https://github.com/darktable-org/lua-scripts/tree/master/official> Darktable 2.2.x uses API 4.0.0, so if you see that message with other scripts, you need to update them too
Bill On Tue, Jan 10, 2017 at 5:33 PM, David Vincent-Jones <[email protected]> wrote: > darktable -d lua ... now does print foo... > > but I also get an error message "LUA ERROR : > /home/david/.config/darktable/lua/selection_to_pdf.lua:31: > Module selection_to_pdf is not compatible with API 4.0.0 > > David > > On 01/10/2017 02:26 PM, Tobias Ellinghaus wrote: > > Am Dienstag, 10. Januar 2017, 17:00:22 CET schrieb J Albrecht: > > On 10 Jan 2017, at 16:14, Tobias Ellinghaus <[email protected]> <[email protected]> > wrote: > > Please try running darktable like this from a terminal: > > darktable --luacmd 'print("Lua seems to work")' > > Indeed, albeit after some worrisome gtk warnings, the line was printed… > > [...] > > > Lua seems to work > > Great. Now we just have to find out why scripts don't work. When you add the > print("foo...") to the very start of ~/.config/darktable/luarc, does that > result in something being printed? If not then try adding "-d lua" to the > darktable arguments. > > > > ____________________________________________________________________________ > darktable user mailing list to unsubscribe send a mail to > [email protected] > ____________________________________________________________________________ darktable user mailing list to unsubscribe send a mail to [email protected]
