Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"in darktable preferences > lua options": I do not have such options, and documentation links are 404 #12

Closed
vitaly-zdanevich opened this issue Feb 11, 2024 · 11 comments

Comments

@vitaly-zdanevich
Copy link
Contributor

2024-feb-11--17-49-58_maim

Darktable version 4.4.2

@trougnouf
Copy link
Owner

Did you add dtmediawiki to your luarc file?

[trougnouf@bd ~]$ cat ~/.config/darktable/luarc 
require "contrib/dtMediaWiki/dtMediaWiki"

Is Lua properly installed and dtMediaWiki is in your darktable/lua/contrib directory? (eg /usr/share/darktable/lua/contrib/dtMediaWiki/)

If so you can run darktable as darktable -d lua and it should give you an error message describing what went wrong.

@vitaly-zdanevich
Copy link
Contributor Author

I checked your paths - yes and yes.

Tried darktable -d lua - empty terminal

@vitaly-zdanevich
Copy link
Contributor Author

OOps, I found that on my Gentoo - I need to enable Lua USE flag, will try now...
image

@vitaly-zdanevich
Copy link
Contributor Author

darktable -d lua:

     2.3450 LUA ERROR : ...e/darktable/lua/contrib/dtMediaWiki/lib/mediawikiapi.lua:18: module 'ssl.https' not found:
	no field package.preload['ssl.https']
	no file '/usr/share/lua/5.4/ssl/https.lua'
	no file '/usr/share/lua/5.4/ssl/https/init.lua'
	no file '/usr/lib64/lua/5.4/ssl/https.lua'
	no file '/usr/lib64/lua/5.4/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/vitaly/.config/darktable/lua/ssl/https.lua'
	no file '/dtMediaWiki/ssl/https.lua'
	no file '/usr/share/darktable/lua/contrib/dtMediaWiki/ssl/https.lua'
	no file '/usr/lib64/lua/5.4/ssl/https.so'
	no file '/usr/lib64/lua/5.4/loadall.so'
	no file './ssl/https.so'
	no file '/usr/lib64/lua/5.4/ssl.so'
	no file '/usr/lib64/lua/5.4/loadall.so'
	no file './ssl.so'

Darktable 4.6.0

@trougnouf
Copy link
Owner

trougnouf commented Feb 15, 2024

Do you have lua-sec installed? (It's one of the dependencies listed in the README)

@vitaly-zdanevich
Copy link
Contributor Author

On my Gentoo I emerged luasec 1.3.2 (the url is https://github.com/brunoos/luasec) but still the same error.

@trougnouf
Copy link
Owner

You should have the file /usr/share/lua/5.4/ssl/https.lua then. Maybe it's installed for a different lua version?

@vitaly-zdanevich
Copy link
Contributor Author

I have another version: 5.1

@trougnouf
Copy link
Owner

trougnouf commented Feb 20, 2024

Darktable uses Lua 5.4 so you would need that.

I don't know if you can get away with copying the content of /usr/share/lua/5.1 into /usr/share/lua/5.4 (They are not binaries and I believe that darktable has its own Lua 5.4 built-in so maybe?)

Or you may be able to compile with DONT_USE_INTERNAL_LUA set to OFF.

Either way it's an issue with Darktable (not supporting other versions of Lua) and Gentoo (not shipping Lua 5.4), there is nothing we can do here to fix your issue.

See also: https://discuss.pixls.us/t/really-no-chance-for-gentoo-and-lua-scripts/11865 and darktable-org/darktable#6768

@vitaly-zdanevich
Copy link
Contributor Author

Now I see it, is inputs width can be increased?
image

@trougnouf
Copy link
Owner

Now I see it, is inputs width can be increased? image

I don't think so. There is limited control in what we can do there (per the documentation on https://darktable-org.github.io/luadocs/lua.api.manual/darktable/darktable.preferences/ ). Maybe it would be done in darktable's CSS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants