For a new darktable, a new script_manager

sorry to tell you, but again not fixed

do a type luarc and post the results please

entering ‘type luarc’ is followed by
=> bash: type: luarc: not found

the luarc file itself contains only

‘require tools/script_manager’ (no quotes)

You are on windows 10, but you are using a bash shell? So, the correct echo for a bash shell is

echo ‘require “tools/script_manager”’ > luarc

When you run darktable from the command line, you should run it from a windows command prompt otherwise the scripts will detect windows and send windows commands to the shell. If the shell is bash, then all the windows commands will fail.

I have no idea …

I use GIT Bash here

12282020_190802

and enter the following to launch darktable

I am doing this for a couple of years now and it worked all the time.

I have the same on my system. If you run darktable from the menu, then all the scripts will work fine. If you run darktable from a command line and the script tries to execute a system call it

  • may work
  • may not work
  • may work but in a really strange manner

I have the same shell installed on my windows system, so when I run darktable and want to look at the debugging output I start darktable in a windows command prompt with "C:\Program Files\darktable\bin\darktable.exe" -d lua > log.txt and then I have a bash shell running tail -f log.txt so I can see what’s happening.

I had first been testing using the bash shell only and just observing the output when I discovered that certain scripts that accessed the operating system didn’t do what I expected them to.

Anyway, did we get script_manager running?

Bill

Yes, script_manager is running now!
Thank you very much!

Only error message now is saying that ‘rename.lua’ is no longer working and I really liked the script.

What error message is it giving?

I was talking about the 'batch rename script’, file called ‘rename.lua’.

Error messages

22,897648 LUA ERROR: script_manager.lua: activate: 208: Error loading downloads/rename
22,897648 LUA ERROR: script_manager.lua: activate: 209: Error message: …\Haribo\AppData\Local\darktable/lua/downloads/rename.lua:76: attempt to concatenate a nil value (local ‘HOME’)

Here’s a fixed one…rename.zip (3.5 KB)

1 Like

Runnung again, excellent, thank you so much.

Wouldn’t it be smart to not only getting some hover over info but being able to select from these as renaming presets?

I’ll think about it. There might be a way to do this. If nothing else, I could save the previously used expressions and re-offer them.

Hi Bill-

A little late to the game, but I gave up waiting for Manjaro to release dt3.4 and installed from the AUR. I had previously installed a flatpack, and was unable (nor did I expect to) get the photils lua script going. I’ve removed the flatpak.

On the new install from the AUR, the script installer doesn’t show up in the initial launch of dt. My darktable RC has the following:

lua/_scripts_install/dont_show=FALSE
lua/_scripts_install/remind=
lua/executable_paths/gimp=
lua/executable_paths/mv=
lua/executable_paths/photils-cli=/home/marcs/Applications/photils-cli-linux-x86_64.AppImage
lua/photils/show_confidence=TRUE

I edited the path to the executable for photils-cli to reflect it’s location.

Not sure where to go from here, if it’s a problem with the AUR build, or what.
Advice would be appreciated, thanks.

Try running darktable from the command line with --version and see if lua support is compiled in. If so, run darktable -d lua, and see what the output is.

Hi Bill-

darktable --version

this is darktable 3.4.0
copyright (c) 2009-2021 johannes hanika
darktable-dev@lists.darktable.org

compile options:
bit depth is 64 bit
normal build
SSE2 optimized codepath enabled
OpenMP support enabled
OpenCL support enabled
Lua support enabled, API version 6.1.0
Colord support enabled
gPhoto2 support enabled
GraphicsMagick support enabled
ImageMagick support disabled
OpenEXR support enabled

I think that the problem is with this AUR build.
I’m on a test machine, and checked another Arch derivative distro (Garuda XFCE). It’s version of darktable is from the “official Repo Community”, and this darktable version shows the script manager in position as expected.

Guess I’ll just wait a bit longer for the Manjaro release before updating on my production machine. Thanks for your suggestion.

Lua support is compiled into darktable, so my guess is the lua library is not installed. Check if you have the lua 5.3 libraries installed.

Hi Bill-

Lua libraries installed. I re-read your first response, turns out the luarc file was missing. I copied/pasted the one from the flatpac, restarted and the script manager did show up, and I’m able to use photils as normal.

Thanks for your help, sorry I missed the second part of your recommedation.

1 Like

Sorry I found another one: ‘postsharpen.lua’ does not work anymore.

Does it need an update to work with the new Script Manager?

No, nothing has changed with it. What error did you get?

110,812505 LUA ERROR: script_manager.lua: activate: 208: Error loading downloads/postsharpen
110,812505 LUA ERROR: script_manager.lua: activate: 209: Error message: …ld\AppData\Local\darktable/lua/downloads/postsharpen.lua:57: attempt to concatenate a nil value (local ‘HOME’)