I’m trying to set up Lua scripts, with the Lua Script Installer dropdown in Darktable, and keep running into the same message in the UI – “Please install git and make sure it is in your path.”
I’m on Ubuntu 20.04.5 LTS.
I’ve installed Git on my machine and have been using it to update repos without issue. I’m running version 2.25.1.
The path to Git, typing the ‘which git’ command, is ‘/usr/bin/git’.
I added a .bash_profile for my user and added the explicit path to git, even though the existing path points to /usr/bin. (export PATH="/usr/bin/git:$PATH")
I saved it with ‘source ~/.bash_profile,’ as well as added that command to my .bashrc so it updates the path on every startup.
The resulting $PATH is ‘/usr/bin/git:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin’.
I’ve restarted and reinstalled, and still Darktable doesn’t recognize Git.
compile options:
bit depth is 64 bit
normal build
SSE2 optimized codepath enabled
OpenMP support enabled
OpenCL support enabled
Lua support enabled, API version 8.0.0
Colord support disabled
gPhoto2 support enabled
GraphicsMagick support enabled
ImageMagick support disabled
OpenEXR support enabled
I should note that I just installed Darktable on my Mac and did the Lua scripts installation without issue.
I deleted the database lock and ran ‘darktable -d lua’ again. Then, tried to execute the install scripts from the GUI. Here’s the resulting console message:
(darktable:6676): GLib-GIO-WARNING **: 08:24:30.447: Error creating IO channel for /proc/self/mountinfo: Permission denied (g-file-error-quark, 2)
[lib_load_module] failed to open `gamepad’: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
10.254318 LUA ERROR : cannot open /home/jblack/snap/darktable/85/luarc: No such file or directory
As the snap package is highly containerized, it can cause the problems you’re seeing as the program by default can’t access anything outside its container.
The software manager GUI on normal Ubuntu can install both from apt repos and snap apps. I would guess the version on the official repos is lower and Ubuntu is installing the snap by default.
There should be an option to force the installation of one or the other, but it’s been a while since I’ve used vanilla Ubuntu so I can’t tell you how. In any case, if the version on Ubuntu repos is too old you may be better served by the OBS repository.