Lua updates for darktable 3.6

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

the lua scripts should be installed in whatever you specify as your configdir, in a directory named lua. The luarc file should be in the same configdir.

When you open darktable, at the lower left, is the module called “script manager” or “scripts installer”?

If things are there and not running correctly, you can rename or delete the luarc file and the lua directory and the next time you start darktable the scripts installer should appear and you can just have it reinstall the scripts and set up your luarc file for you.

That was my first thought. I have luarc and lua directory and scripts in the configdir.

But when I run darktable it does not load the scripts.

It only works when I run darktable with no arguments and the configdir in the derault LOCALAPPDATA directory.

When I run darktable with the configdir changed to were I want it, I can see the lua scripts installer.
I install the scripts using execute, but nothing changes.

I have tried to delete luarc and lua in the configdir with same results (I can see no error messages, but it does not seem to download the lua scripts).

If I run darktable without a custom configdir, I can install scripts and it changes to script manager.

It is quite strange.

I have tried to debug lua using -d lua in the command.

"C:\Program Files\darktable\bin\darktable.exe" --configdir "D:\Users\fernando\Documents\Documentos en la nube\darktable" -d lua >d:\kk.log

I have deleted luarc and lua in the configdir.
This is the output in the console when I try to execute the script installer.

C:\Program Files\darktable\bin>"C:\Program Files\darktable\bin\darktable.exe" --configdir "D:\Users\fernando\Documents\Documentos en la nube\darktable" -d lua >d:\kk.log
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
[dt_pthread_create] info: bumping pthread's stacksize from 0 to 2097152
El sistema no puede encontrar el archivo especificado.
El sistema no puede encontrar el archivo especificado.
fatal: Too many arguments.

usage: git clone [<options>] [--] <repo> [<dir>]

    -v, --verbose         be more verbose
    -q, --quiet           be more quiet
    --progress            force progress reporting
    --reject-shallow      don't clone shallow repository
    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --mirror              create a mirror repository (implies bare)
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as shared repository
    --recurse-submodules[=<pathspec>]
                          initialize submodules in the clone
    --recursive ...       alias of --recurse-submodules
    -j, --jobs <n>        number of submodules cloned in parallel
    --template <template-directory>
                          directory from which templates will be used
    --reference <repo>    reference repository
    --reference-if-able <repo>
                          reference repository
    --dissociate          use --reference only while cloning
    -o, --origin <name>   use <name> instead of 'origin' to track upstream
    -b, --branch <branch>
                          checkout <branch> instead of the remote's HEAD
    -u, --upload-pack <path>
                          path to git-upload-pack on the remote
    --depth <depth>       create a shallow clone of that depth
    --shallow-since <time>
                          create a shallow clone since a specific time
    --shallow-exclude <revision>
                          deepen history of shallow clone, excluding rev
    --single-branch       clone only one branch, HEAD or --branch
    --no-tags             don't clone any tags, and make later fetches not to follow them
    --shallow-submodules  any cloned submodules will be shallow
    --separate-git-dir <gitdir>
                          separate git dir from working tree
    -c, --config <key=value>
                          set config inside the new repository
    --server-option <server-specific>
                          option to transmit
    -4, --ipv4            use IPv4 addresses only
    -6, --ipv6            use IPv6 addresses only
    --filter <args>       object filtering
    --remote-submodules   any cloned submodules will use their remote-tracking branch
    --sparse              initialize sparse-checkout file to include only files at root

And this is the log (kk.log)

8.931786 LUA ERROR : cannot open D:\Users\fernando\Documents\Documentos en la nube\darktable\luarc: No such file or directory
12.224526 LUA ERROR : C:\Program Files\darktable\share\darktable\luarc:170: module 'tools/script_manager' not found:
        no field package.preload['tools/script_manager']
        no file 'C:\Program Files\darktable\bin\lua\tools/script_manager.lua'
        no file 'C:\Program Files\darktable\bin\lua\tools/script_manager\init.lua'
        no file 'C:\Program Files\darktable\bin\tools/script_manager.lua'
        no file 'C:\Program Files\darktable\bin\tools/script_manager\init.lua'
        no file 'C:\Program Files\darktable\bin\..\share\lua\5.3\tools/script_manager.lua'
        no file 'C:\Program Files\darktable\bin\..\share\lua\5.3\tools/script_manager\init.lua'
        no file '.\tools/script_manager.lua'
        no file '.\tools/script_manager\init.lua'
        no file 'C:\Program Files\darktable\share\darktable/lua/tools/script_manager.lua'
        no file 'D:\Users\fernando\Documents\Documentos en la nube\darktable/lua/tools/script_manager.lua'
        no file 'C:\Program Files\darktable\bin\tools/script_manager.dll'
        no file 'C:\Program Files\darktable\bin\..\lib\lua\5.3\tools/script_manager.dll'
        no file 'C:\Program Files\darktable\bin\loadall.dll'
        no file '.\tools/script_manager.dll'
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        C:\Program Files\darktable\share\darktable\luarc:170: in field 'installer'
        C:\Program Files\darktable\share\darktable\luarc:228: in function <C:\Program Files\darktable\share\darktable\luarc:227>
        [C]: in ?

It seems there is an error running git to download lua scripts (too many arguments).

It works when I try the same in the default configdir.

I tried using git clone to download the scripts and creating luarc in the configdir prior to running darktable with same results.

I see how you are running it. I will try and duplicate. I think it probably has something to do with the configdir being on the D: disk

1 Like

Have you bben able to replicate the problem?

I think it nay be a problem with spaces in the path too, or with / used in lunux and \ used in windows.

But prior version worked ok.

No, I was working on the add to library bug and the couldn’t build and run on windows 10 bug. Just finished with them, so now I’ll see about this

1 Like

Yes i have read about problems adding photos to the library. I haven’t met that bug yet.

In the spanish forum there are people asking about them, so as soon as there is a patch for the windows version i will post the link there.

Thank you a lot.

Hello.

I followed the instructions to tweak the CSS, but in my darktable configuration nothing have changed.

I’m using Fedora 34

Screenshot-20210831224151-354x438

Screenshot-20210831224054-366x743

Screenshot-20210831225023-675x277

click the action then select configure. Check the use color interface? box. Go back to start/stop scripts and page to a different page and it should be in color.

1 Like

It works, thanks you so much! :smiley: :+1:

I’ve to buy a new pair of glasses :grin:

1 Like