missing Styles module in lighttable?

Am I missing something here? The Styles module below History Stack – shouldn’t it be there? According to the manual, yes!

2021-11-03_11-52

True, I’ve never been a big user of styles, so this is why I only realized its absence now – but now that I have finally streamlined my processing I wanted to test batch processing from lighttable…

this is latest stable release, 3.6.1

There are some other modules there that aren’t present as standard (tagging addon, image time, auto group, rename tag) - I assume they’re Lua things. Could you have hidden it with Lua somehow? Perhaps try disabling Lua and restart to see what happens.

thanks Chris. the style module was still being hidden even after deactivating all lua modules.

What I did was to copy my darktablerc somewhere else so that dt had to recreate the config file; after that, the Style module shows up!

Probably nothing to do with lua but with old config settings.

Anyway, this led me to discover some more issues with lua:

(base) 16:28:07 aadm@psion:~/.config/darktable/lua$ darktable -d lua
2,314666 LUA ERROR API Version: 7.0.0
deleting tag `darktable|problem|history-compress'
13,483682 LUA ERROR: script_manager.lua: activate: 345: Error loading official/check_for_updates 
13,483761 LUA ERROR: script_manager.lua: activate: 346: Error message: ./official/check_for_updates.lua:32: module 'ssl.https' not found:
	no field package.preload['ssl.https']
	no file '/usr/local/share/lua/5.3/ssl/https.lua'
	no file '/usr/local/share/lua/5.3/ssl/https/init.lua'
	no file '/usr/local/lib/lua/5.3/ssl/https.lua'
	no file '/usr/local/lib/lua/5.3/ssl/https/init.lua'
	no file '/usr/share/lua/5.3/ssl/https.lua'
	no file '/usr/share/lua/5.3/ssl/https/init.lua'
	no file './ssl/https.lua'
	no file './ssl/https/init.lua'
	no file '/usr/share/darktable/lua/ssl/https.lua'
	no file '/home/aadm/.config/darktable/lua/ssl/https.lua'
	no file '/usr/local/lib/lua/5.3/ssl/https.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.3/ssl/https.so'
	no file '/usr/lib/lua/5.3/ssl/https.so'
	no file '/usr/local/lib/lua/5.3/loadall.so'
	no file './ssl/https.so'
	no file '/usr/local/lib/lua/5.3/ssl.so'
	no file '/usr/lib/x86_64-linux-gnu/lua/5.3/ssl.so'
	no file '/usr/lib/lua/5.3/ssl.so'
	no file '/usr/local/lib/lua/5.3/loadall.so'
	no file './ssl.so' 

the first error msg about LUA API comes from the script examples/api_version, and the second from official/check_for_updates.

I wonder what are the problems here. In my ~/.config/darktable/lua directory I have set the master branch correctly:

(base) 16:29:41 aadm@psion:~/.config/darktable/lua$ git branch
  API-7.0.0-dev
* master

Maybe Bill has the solution? @wpferguson

This isn’t actually an error. The script was written when the only way to output to the console was using the darktable.print_error() function with prefaces all output with ERROR.

the check_for_updates.lua script requires lua modules (ssl.https and cjson) that are external. To get them you can install luarocks and then install the missing modules.

Now, for the missing styles module. In your darktablerc file there should be a line
plugins/lighttable/1/styles_visible=TRUE
In your darktablerc file that line is set to FALSE, which is why you don’t see it.

contrib/AutoGrouper.lua used to hide the styles module, but I fixed that on 8/31.

1 Like

Bill – thanks for the info and explanations!

I checked the old darktablerc and there was in fact the styles_visible=FALSE setting!

Once again, the support and help is so wonderful here.