Hey guys. I was about to install the Lua scripts but I can’t get it to do so. Git is installed (Windows 11 Pro) and I have the most recent DT version. The error I got the first time trying was that I need to update the LUA Api… the second time I tried after turning on the debug was this one. Can anyone help?
you probably want to mention which darktable version you have. which script you try to install. and which version of the script.
DT version 4.6.1, I just need the script that lets me open files in external editors. I have no clue which version of the script. I thought this was a straight forward process since I saw the button on the bottom left of DT.
I ran into this, it’s because the auto-script installation stuff pulls from the master
branch of the scripts, which as of I guess quite recently requires 9.3.0.
You can fix this by checking out the API-9.2.0
branch instead.
maybe a better approach would be to have a DT 4.6 branch and the script manager default to the major.minor branch of the darktable by default. that would make it more userfriendly
@darix and @stefan I have no clue what you mean Im just a simple user that knows nothing about GIT or scripts. Can anyone tell me how to get it to work in simple words please?
So I’m not too familiar with Windows, but if you can take a look at this: darktable lua documentation - installation and follow the Windows instructions.
It asks you to do this (in a git-enabled command prompt, which I think you should have something in your start menu for, if you installed git?):
cd %LOCALAPPDATA%\darktable
git clone https://github.com/darktable-org/lua-scripts.git lua
However, since you ran the automated version it will have already run that git command, so I think you can do this:
cd %LOCALAPPDATA%\darktable\lua
git checkout API-9.2.0
And git should make some positive sounding noises about that working. Then boot darktable and you should be good to go.
Alternatively, if git on windows comes with some kind of GUI (eg app) you can just navigate it to that directory and use the GUI to change the branch. I’m not familiar though.
JFYI @wpferguson just submitted some related changes in
please see this comment in the bug
You are the man! That totally worked. Got the Windows installer for GIT, ran it, opened the GIT console and added your lines and upon opening Darktable, all scripts were loaded and I can activate whatever I need! THANK YOU!