lua-scripts icon indicating copy to clipboard operation
lua-scripts copied to clipboard

enfuseAdvanced won't load on Win10

Open MeisterKaos opened this issue 4 years ago • 3 comments

As discussed in https://discuss.pixls.us/t/lua-updates-for-darktable-3-6/25686 enfuseAdvanced does not load on my Windows 10 machine currently. To reproduce:

  1. Install darktable 3.6.0.1-win64 on Windows10.
  2. run darktable (with empty user folder) via cmd: "\Program Files\darktable\bin\darktable.exe" -d lua > log.txt
  3. Install lua scripts by clicking lua scripts installer > install scripts > execute
  4. The script manager appears, click start/stop scripts > contrib > enfuseAdvanced stopped
  5. See message "enfuseAdvanced failed to load" istead of "Loaded enfuseAdvanced "
  6. See log.txt: 4,671018 LUA ERROR : cannot open C:\Users\somme\AppData\Local\darktable\luarc: No such file or directory 33,279368 LUA found win search match C:\Program Files\Git\cmd\git.exe 85,188889 LUA ERROR: script_manager.lua: activate: 345: Error loading contrib/enfuseAdvanced 85,188984 LUA ERROR: script_manager.lua: activate: 346: Error message: ...e\AppData\Local\darktable/lua/contrib/enfuseAdvanced.lua:873: attempt to index a nil value (field '?')

Any other script within "contrib" loads as expected.

MeisterKaos avatar Jul 08 '21 11:07 MeisterKaos

Had you imported any images yet?

wpferguson avatar Jul 08 '21 17:07 wpferguson

I managed to reproduce this by deleting my database files and my darktablerc so that when darktable started it looked like a fresh install. I didn't import any images, started enfuseAdvanced, and it crashed because when it sets up the widgets it checks the path of the first image in the collection, and if no images have been imported, then no collection, thus no path, thus crash.

So if you have any images imported and showing in the lighttable then enfusedAdvanced will work, but this does need to be fixed.

wpferguson avatar Jul 08 '21 18:07 wpferguson

Yep, importing a few images solved the problem :) Then I could also use the executable manager to set destinations of enfuse etc.. However, I still think that previously, after loading enfuseAdvanced I could set these paths in the options menu which I would prefer. But nevermind, now it is working. Thanks for your effort!

MeisterKaos avatar Jul 08 '21 18:07 MeisterKaos