that's my fault, it needs to be fixed in all scripts in the repository.

basically DT-2.0 has a lua API numbered 3.0.0 (these numbering are
independant) which is not 100% compatible with 1.6 and all the scripts in
the repo were last tested with 1.6

you need to change {2,0,0} to {3,0,0} to get it to work again.

If you test the script and find that it works correctly, please do a PR on
the lua-script, it would save me a ton of time...

On Wed, Dec 23, 2015 at 3:50 PM, Ivan Tarozzi <itaro...@gmail.com> wrote:

> Hi,
> I'm testing new 2.0.0 and I notice a problem with LUA (the same using
> git and tar.xz)
>
> I cloned lua-script repository from github, created a link called lua
> and create luarc file under .config/darktable.
>
> I done several test and nothing was working. Finally I discovered the
> problem is the line:
> dt.configuration.check_version(...,{2,0,0})
>
> Commenting that line the scripts start working well (tested hello_world
> and selection_to_pdf).
>
> executing with -d flag I can read this error message:
>
> LUA ERROR :
> ...ivan/.config/darktable/lua/official/selection_to_pdf.lua:34: Module
> official/selection_to_pdf is not compatible with API 3.0.0
> stack traceback:
>         [C]: in function 'check_version'
>         ...ivan/.config/darktable/lua/official/selection_to_pdf.lua:34:
> in function 'loader'
>         ...arktable/lua/darktable/external/pygy_require/require.lua:91:
> in function 'require'
>         /home/ivan/.config/darktable/luarc:4: in main chunk[run_job-] 06
> 160274027,449553 lua: later_chunk | queue: 0 | priority: 4
>
> How can I solve this issue? Is darktable related or system related ?
> I'm on debian  stretch/sid
>
> Ivan
> ___________________________________________________________________________
> darktable developer mailing list
> to unsubscribe send a mail to
> darktable-dev+unsubscr...@lists.darktable.org
>
>

___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to