Lua updates for darktable 3.6

I just tried to install lua scripts in actual master and can reproduce too. On Linux, I have that error when launching darktable with -d lua option:

0,958272 LUA ERROR : /home/nilvus/.config/darktable/lua/tools/script_manager.lua:213: attempt to concatenate a nil value (local ‘branch’). I always compile in master branch (git status is same as MeisterKaos)

I’ve checked my darktable config dir and I have luarc with line "require “tools/script_manager”

To reproduce:

  • don’t have lua installed but of course darktable compiled with support
  • launch darktable
  • execute installer to install lua scripts
  • wait a little to see lua scripts installed message shown
  • nothing else happen then
  • when relaunching darktable, see no lua scripts in darktable windows nor script installer

But luarc file and lua folder are there in darktable config dir.

I just pushed a possible fix. Go to your lua directory and do a git pull which should give you the fix. If it crashes, it should dump some data so I can see what’s going on.

Thanks

1 Like

@wpferguson: I just found a way to fix that error (so probably some update not taken correctly when installing lua scripts).

I just go to configdir/darktable/lua folder and then make a git pull. Then I have that:

remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 5 (delta 3), reused 4 (delta 3), pack-reused 0
Dépaquetage des objets: 100% (5/5), 1.06 Kio | 362.00 Kio/s, fait.
Depuis https://github.com/darktable-org/lua-scripts
   ecdc74b..c96c523  master     -> origin/master
Mise à jour ecdc74b..c96c523
Fast-forward
 tools/script_manager.lua | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Just posted same time, so that explain why that works. Just a good synchro :wink: ! Thanks for the quick fix.

Try running with -d lua and see if it spits out an error and dumps some data please

0,978626 LUA ERROR: script_manager.lua: get_current_repo_branch: 214: no branch detected in repo_data
repo_data:
Sur la branche master
Votre branche est à jour avec ‘origin/master’.

rien à valider, la copie de travail est propre

Another really great idea sabotaged by I18N :laughing:. Didn’t take translation into account when parsing the output. Time for a rethink…

Thanks for the effort! I expected it to be a problem on my side^^
Same output for me:

5,731021 LUA ERROR: script_manager.lua: get_current_repo_branch: 214: no branch detected in repo_data
repo_data:

But the script manager now appears as expected and i can load the gimp plugin for example. enfuseAdvanced on the other hand fails with the following message:

121,019851 LUA ERROR: script_manager.lua: activate: 334: Error loading contrib/enfuseAdvanced
121,019983 LUA ERROR: script_manager.lua: activate: 335: Error message: …_Exchange\XX_darktable_db/lua/contrib/enfuseAdvanced.lua:873: attempt to index a nil value (field ‘?’)

If I remember correctly I have to specify the enfuse, align_image_stack and exiftool location in the Lua-options menu, but only after I started the script. Now loading fails and I cannot choose anything in options.

You can start tools->executable_manager and specify them in there.

Hmm, in the executable manager I can only choose “git” as the executable to configure. Also enfuseAdvanced still fails to load. And I am very sure that there was a menu option before, right? Something still seems wrong :thinking:

I’ll try on my windows systems and see what happens

Any news here? Shall I open an issue on github?
I actually tried every script in contrib/ now and all started fine except enfuseAdvanced

1 Like

Yes, please open an issue in Issues · darktable-org/lua-scripts · GitHub just so I don’t forget about it.

And thanks for testing the other scripts.

I’ve been busy with windows installer issues, but I’ll try and get to this in the next day or two.

Bill

Hi.
I am having problems with lua since I upgraded to 3.6 too (windows 10 machine).

I cannot see the lua script manager any more. I have made git pull and lua is up to date.

When i try -d lua option there is no output at all.

I am using --configdir to change the default directory of the config and database.
I have tried to put lua and luarc in the same dir as configdir and also tried in %localappdata%\darktable to see if that was the problem, with identical results.

Did you install 3.6.0.1. 3.6.0 was mistakenly built without lua

1 Like

thank you, i will check that.

Ok, you were right, I had installed 3.6.0 version, now I have installed 3.6.0.1.

Now I can see the script manager interface at the bottom left of light table.

But when I choose install script and execute, it runs some commands (I can see the cmd windows) in the background and then it says script are installed, but nothing happens.
I continue seeing the install scripts/remind me later… prompts.

What am I doing wrong?

do you have git installed on your system?

1 Like

Click the drop down where it says install/update scripts and select start/stop scripts. The interface will change to a list of scripts and you can stop and start them from there.

1 Like

Yes I have git installed and working, I have updated it just in case.

After running install scripts using execute, I have no start/stop option.

I have tried it in another PC with default install and it works.

I suspect the problem may be with the location of the lua scripts.

I have used --configdir to change the directory were database and config files reside to another dir protected by backups (and in order to separate it from the 3.7 beta testing).

I have installed lua scripts in the same dir.

Where should be lua scripts installed in this case?

I have tried several ways, with lua and luarc in the config directory, with lua and luarc int %LOCALAPPDATA% and with luarc in configdir and lua scripts in %LOCALAPPDATA%

Thank you

This is may luarc

require 'tools/script_manager'

And these my lua options in darktablerc

lua/_scripts_install/dont_show=FALSE
lua/_scripts_install/initialized=TRUE
lua/_scripts_install/remind=FALSE
lua/_scripts_install/restarts=0
lua/_scripts_install/retries=0
lua/dtutils.file/use_old_check_if_bin_exists=FALSE
lua/executable_paths/git=C:\Program Files\Git\cmd\git.exe
lua/script_manager/category_selector=1
lua/script_manager/contrib/AutoGrouper=
lua/script_manager/contrib/CollectHelper=
lua/script_manager/contrib/HDRMerge=
lua/script_manager/contrib/LabelsToTags=
lua/script_manager/contrib/OpenInExplorer=
lua/script_manager/contrib/RL_out_sharp=
lua/script_manager/contrib/autostyle=
lua/script_manager/contrib/clear_GPS=
lua/script_manager/contrib/copy_attach_detach_tags=
lua/script_manager/contrib/cr2hdr=
lua/script_manager/contrib/enfuseAdvanced=
lua/script_manager/contrib/exportLUT=
lua/script_manager/contrib/ext_editor=
lua/script_manager/contrib/face_recognition=
lua/script_manager/contrib/fujifilm_dynamic_range=
lua/script_manager/contrib/fujifilm_ratings=
lua/script_manager/contrib/geoJSON_export=
lua/script_manager/contrib/geoToolbox=
lua/script_manager/contrib/gimp=
lua/script_manager/contrib/gpx_export=
lua/script_manager/contrib/hugin=
lua/script_manager/contrib/image_stack=
lua/script_manager/contrib/image_time=
lua/script_manager/contrib/kml_export=
lua/script_manager/contrib/passport_guide=
lua/script_manager/contrib/pdf_slideshow=
lua/script_manager/contrib/photils=
lua/script_manager/contrib/quicktag=
lua/script_manager/contrib/rate_group=
lua/script_manager/contrib/rename-tags=
lua/script_manager/contrib/select_untagged=
lua/script_manager/contrib/slideshowMusic=
lua/script_manager/contrib/transfer_hierarchy=
lua/script_manager/contrib/video_ffmpeg=
lua/script_manager/examples/api_version=
lua/script_manager/examples/darkroom_demo=
lua/script_manager/examples/gettextExample=
lua/script_manager/examples/hello_world=
lua/script_manager/examples/lighttable_demo=
lua/script_manager/examples/moduleExample=
lua/script_manager/examples/multi_os=
lua/script_manager/examples/panels_demo=
lua/script_manager/examples/preferenceExamples=
lua/script_manager/examples/printExamples=
lua/script_manager/examples/running_os=
lua/script_manager/installed_repos=1,lua-scripts
lua/script_manager/main_menu_action=3
lua/script_manager/num_buttons=10
lua/script_manager/official/check_for_updates=
lua/script_manager/official/copy_paste_metadata=
lua/script_manager/official/delete_long_tags=
lua/script_manager/official/delete_unused_tags=
lua/script_manager/official/enfuse=
lua/script_manager/official/generate_image_txt=
lua/script_manager/official/image_path_in_ui=
lua/script_manager/official/import_filter_manager=
lua/script_manager/official/import_filters=
lua/script_manager/official/save_selection=
lua/script_manager/official/selection_to_pdf=
lua/script_manager/tools/executable_manager=
lua/script_manager/tools/gen_i18n_mo=
lua/script_manager/tools/get_lib_manpages=
lua/script_manager/tools/get_libdoc=
lua/script_manager/update_script_choices=1