Maybe 20.04 has an old version of Lua and a newer one is needed? Have you tried darktable -d lua
?
https://docs.darktable.org/lua/stable/lua.scripts.manual/troubleshooting/
Maybe 20.04 has an old version of Lua and a newer one is needed? Have you tried darktable -d lua
?
https://docs.darktable.org/lua/stable/lua.scripts.manual/troubleshooting/
Yes, see it’s included in my message and I update LUA to latest version (See im my message).
I only see that you updated the Lua scripts; it is my understanding that darktable also needs the Lua interpreter/runtime, specifically version 5.4: darktable 3.8 user manual - overview
Lua 5.4 seems to be available since Ubuntu 21.04 only:
https://packages.ubuntu.com/search?keywords=lua5.4&searchon=names
lua5.3 on 20.04 native, as of dpkg -l | grep lua
make sure you have the latest version of the OBS package. early versions lacked lua support
lua package is at the latest, still don’t lua in preference and in lightable on the left side of the screen
jacques@borg:~/Downloads $ sudo apt install lua5.4
Reading package lists… Done
Building dependency tree
Reading state information… Done
lua5.4 is already the newest version (5.4.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
jacques@borg:~/Downloads $ lua
Lua 5.4.2 Copyright (C) 1994-2020 Lua.org, PUC-Rio
the latest version of the OBS darktable package. or what ever your source is.
darktable -d lua
from a terminal should tell you more.
jacques@borg:~/Downloads darktable -d lua jacques@borg:~/Downloads
Darktable GUI Start, still no script
OK. I’m on Ubuntu 21.10.
kofa@eagle:~$ dpkg -l|grep lua
ii liblua5.1-0:amd64 5.1.5-8.1build4 amd64 Shared library for the Lua interpreter version 5.1
ii liblua5.2-0:amd64 5.2.4-1.1build3 amd64 Shared library for the Lua interpreter version 5.2
ii liblua5.3-0:amd64 5.3.3-1.1ubuntu2 amd64 Shared library for the Lua interpreter version 5.3
ii liblua5.3-dev:amd64 5.3.3-1.1ubuntu2 amd64 Development files for the Lua language version 5.3
ii liblua5.4-0:amd64 5.4.2-2 amd64 Shared library for the Lua interpreter version 5.4
ii liblua5.4-dev:amd64 5.4.2-2 amd64 Development files for the Lua language version 5.4
ii lua5.4
I’ve built darktable from source.
Lua-related entries in darktable build log:
kofa@eagle:~/.config/darktable$ grep -i lua /tmp/l
-- Lua support: Enabled
* Lua54 (required version >= 5.4)
[ 3%] Building C object bin/external/LuaAutoC/CMakeFiles/lautoc.dir/lautoc.c.o
[ 55%] Building C object bin/CMakeFiles/lib_darktable.dir/lua/cairo.c.o
...
[ 59%] Building C object bin/CMakeFiles/lib_darktable.dir/lua/widget/widget.c.o
-- Installing: /home/kofa/darktable-master/share/darktable/lua
-- Installing: /home/kofa/darktable-master/share/darktable/lua/darktable
-- Installing: /home/kofa/darktable-master/share/darktable/lua/darktable/debug.lua
-- Installing: /home/kofa/darktable-master/share/darktable/luarc
Cleaning my Lua-related darktable config:
kofa@eagle:~/.config/darktable$ rm -rf lua*
kofa@eagle:~/.config/darktable$ grep -vi lua darktablerc >darktablerc-lua
kofa@eagle:~/.config/darktable$ mv darktablerc-lua darktablerc
Launching darktable with the -d lua
option outputs:
kofa@eagle:~$ /home/kofa/darktable-master/bin/darktable -d lua
[imageio_load_module_format] failed to open `avif': (null)
1.214323 LUA ERROR : cannot open /home/kofa/.config/darktable/luarc: No such file or directory
The Lua script installer is present in the bottom-left corner:
Opening it:
After clicking execute, I get:
The console shows:
Cloning into '/home/kofa/.config/darktable/lua'...
remote: Enumerating objects: 3871, done.
remote: Counting objects: 100% (419/419), done.
remote: Compressing objects: 100% (283/283), done.
remote: Total 3871 (delta 222), reused 266 (delta 132), pack-reused 3452
Receiving objects: 100% (3871/3871), 1.18 MiB | 7.21 MiB/s, done.
Resolving deltas: 100% (2479/2479), done.
I could now work with scripts, the manager looks like:
luarc
has been created:
$ cat ~/.config/darktable/luarc
require "tools/script_manager"
Let’s see what happens if you execute the same commands.
I don’t see lua support on OpenSUsE Leap 15.3 either. On looking a bit farther, this showed up:
> darktable --version
this is darktable 3.8.0~git50.9716a5a5f0-lp153.72.1
copyright (c) 2009-2022 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 disabled
Colord support enabled
gPhoto2 support enabled
GraphicsMagick support enabled
ImageMagick support disabled
OpenEXR support enabled
So not too surprising that I can’t get Lua to work. Probable cause: no Lua 5.4 available in my OS version
@jadupl2: What do you get when you issue the same command? Lua can be disabled at compile (build) time, too:
If you build yourself, did you try setting
option(DONT_USE_INTERNAL_LUA "Never fall back to the intree copy of lua" OFF)
in DefineOptions.cmake
? This works for me on Ubuntu 20.04 having LUA 5.3 installed.
No, I use a pre-build binary from Index of /repositories/graphics:/darktable:/stable/openSUSE_Leap_15.3. That’s the latest version of the distrubution, btw.
I may have to switch to building dt myself, perhaps (not felt the need to do so, so far).
I can understand distributions hesitating to switch to a new version of a library after the distribution is published. And I can understand the developers wanting to use the newest library versions. What I don’t really like is the lack of communication about disabled features (it tends to waste the time of the users).
But that’s the responsability of whoever creates the package for a distribution, it’s out of the control of the developers.
we will need to check if the stable snapshot had a rebuild after the lua fixes.
@darix: last version I can see (and installed) is 3.8.0~git50.9716a5a5f0-lp153.72.1
, build on monday 03 janv. 2022 08:56:56 from source package darktable-3.8.0~git50.9716a5a5f0-lp153.72.1
a new build just started. check if that fixes your issue.
give darktable-3.8.0~git56.35947d74e7-lp153.73.1 a try.
Then get involved and improve things.
Just installed it, and that did the trick.
Thank you very much.
I Get the same thing, LUA is Disable ?? How can we enable it ?
jacques@borg:~ $ darktable --version
this is darktable 3.8.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 disabled <<<<<<<
Colord support enabled
gPhoto2 support enabled
GraphicsMagick support enabled
ImageMagick support disabled
OpenEXR support enabled
jacques@borg:~ $