Re: [darktable-user] Starting Lua

2017-04-07 Thread Christian Kanzian

Hi,

Am 2017-04-07 07:09, schrieb David Vincent-Jones:

It appears that the lua version that I am running is creating the
problems that I have with the plugins.
LUA ERROR API Version: 5.0.0-dev
LUA ERROR Module selection_to_pdf is not compatible with API 5.0.0-dev
LUA ERROR Module official/selection_to_pdf is not compatible with API
5.0.0-


That is the darktable internal LUA-API version, which is different from 
the LUA libs installed on your system.

E.g. on Debian testing it is liblua-5.3.0.

Most of the scripts/plugins still should work.
At least they did it for me in the past after internal version upgrades.


What lua version should I be running ... if this requires a special
repository for openSUSE 42.2 possibly somebody can point me in the
correct direction.


You can fix this in the scripts. Search for following line in 
"official/selection_to_pdf.lua":


"dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0})"

and add API version {5,0,0} at the end like this

"dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0},{5,0,0})"

The error should disappear.



Thank you

David



@Tobias this time hopefully correct. my bad!

Christian



On 04/04/2017 10:02 AM, Coding Dave wrote:


Just open each lua script with a text editor and read the specific
how to.

Am 04.04.2017 18:11 schrieb "Colin Adams"
:

In the case of Gimp, it's a target option in the export module.

On Tue, 4 Apr 2017 at 17:10 David Vincent-Jones 
wrote:

Thanks for both responses  yes, I have done all that.  AFAIK
everything is installed correctly.

Now, how do I call/start Gimp or any of the other plugins from
darktable? That is the question.

David

On 04/04/2017 08:34 AM, Tobias Ellinghaus wrote:

Am Dienstag, 4. April 2017, 14:41:05 CEST schrieb Christian Kanzian:

Hi,

Am 2017-04-03 18:42, schrieb David Vincent-Jones:

I appear to have all of the Lua material correctly in place .. my
only
question is how do I start any of the scripts/plugins?

Well, they are loaded on startup, if you add them to your
"~/.config/darktable/luarc"
like "require lua/gimp" assuming that the script "gimp.lua" is in
dir
"~/.config/lua".


That should be
   require "gimp"
with "gimp.lua" being in "~/.config/darktable/lua/"


You can check for errors if you start:

"darktable -d lua"

You also need to check, if darktable has been build with lua
support.


Do I start from the normal dt interface or through the console?

Lots of Lua documentation but starting a process is somehow
omitted.

David


Christian


Tobias

 


darktable user mailing list to unsubscribe send a mail to
darktable-user+unsubscr...@lists.darktable.org


darktable user mailing list to unsubscribe send a mail to
darktable-user+unsubscr...@lists.darktable.org


darktable user mailing list to unsubscribe send a mail to
darktable-user+unsubscr...@lists.darktable.org


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Starting Lua

2017-04-06 Thread David Vincent-Jones
It appears that the lua version that I am running is creating the
problems that I have with the plugins.

LUA ERROR API Version: 5.0.0-dev
LUA ERROR Module selection_to_pdf is not compatible with API 5.0.0-dev
LUA ERROR Module official/selection_to_pdf is not compatible with API 5.0.0-

What lua version should I be running ... if this requires a special
repository for openSUSE 42.2 possibly somebody can point me in the
correct direction.

Thank you

David


On 04/04/2017 10:02 AM, Coding Dave wrote:
> Just open each lua script with a text editor and read the specific how
> to. 
>
> Am 04.04.2017 18:11 schrieb "Colin Adams"  >:
>
> In the case of Gimp, it's a target option in the export module.
>
> On Tue, 4 Apr 2017 at 17:10 David Vincent-Jones
> > wrote:
>
> Thanks for both responses  yes, I have done all that. 
> AFAIK everything is installed correctly.
>
> Now, how do I call/start Gimp or any of the other plugins from
> darktable? That is the question.
>
> David
>
>
> On 04/04/2017 08:34 AM, Tobias Ellinghaus wrote:
>> Am Dienstag, 4. April 2017, 14:41:05 CEST schrieb Christian Kanzian:
>>> Hi,
>>>
>>> Am 2017-04-03 18:42, schrieb David Vincent-Jones:
 I appear to have all of the Lua material correctly in place .. my 
 only
 question is how do I start any of the scripts/plugins?
>>> Well, they are loaded on startup, if you add them to your
>>> "~/.config/darktable/luarc"
>>> like "require lua/gimp" assuming that the script "gimp.lua" is in 
>>> dir
>>> "~/.config/lua".
>> That should be
>>require "gimp"
>> with "gimp.lua" being in "~/.config/darktable/lua/"
>>
>>> You can check for errors if you start:
>>>
>>> "darktable -d lua"
>>>
>>> You also need to check, if darktable has been build with lua 
>>> support.
>>>
 Do I start from the normal dt interface or through the console?

 Lots of Lua documentation but starting a process is somehow 
 omitted.

 David
>>> Christian
>> Tobias
>
>
> 
> 
> darktable user mailing list to unsubscribe send a mail to
> darktable-user+unsubscr...@lists.darktable.org
> 
>
>
> 
> 
> darktable user mailing list to unsubscribe send a mail to
> darktable-user+unsubscr...@lists.darktable.org
> 
>



darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org

Re: [darktable-user] Starting Lua

2017-04-04 Thread Coding Dave
Just open each lua script with a text editor and read the specific how to.

Am 04.04.2017 18:11 schrieb "Colin Adams" :

> In the case of Gimp, it's a target option in the export module.
>
> On Tue, 4 Apr 2017 at 17:10 David Vincent-Jones 
> wrote:
>
>> Thanks for both responses  yes, I have done all that.  AFAIK
>> everything is installed correctly.
>>
>> Now, how do I call/start Gimp or any of the other plugins from darktable?
>> That is the question.
>>
>> David
>>
>> On 04/04/2017 08:34 AM, Tobias Ellinghaus wrote:
>>
>> Am Dienstag, 4. April 2017, 14:41:05 CEST schrieb Christian Kanzian:
>>
>> Hi,
>>
>> Am 2017-04-03 18:42, schrieb David Vincent-Jones:
>>
>> I appear to have all of the Lua material correctly in place .. my only
>> question is how do I start any of the scripts/plugins?
>>
>>
>> Well, they are loaded on startup, if you add them to your
>> "~/.config/darktable/luarc"
>> like "require lua/gimp" assuming that the script "gimp.lua" is in dir
>> "~/.config/lua".
>>
>>
>> That should be
>>require "gimp"
>> with "gimp.lua" being in "~/.config/darktable/lua/"
>>
>>
>> You can check for errors if you start:
>>
>> "darktable -d lua"
>>
>> You also need to check, if darktable has been build with lua support.
>>
>>
>> Do I start from the normal dt interface or through the console?
>>
>> Lots of Lua documentation but starting a process is somehow omitted.
>>
>> David
>>
>>
>> Christian
>>
>>
>> Tobias
>>
>>
>>
>> 
>> darktable user mailing list to unsubscribe send a mail to
>> darktable-user+unsubscr...@lists.darktable.org
>>
>
> 
> darktable user mailing list to unsubscribe send a mail to
> darktable-user+unsubscr...@lists.darktable.org
>


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org

Re: [darktable-user] Starting Lua

2017-04-04 Thread Colin Adams
In the case of Gimp, it's a target option in the export module.

On Tue, 4 Apr 2017 at 17:10 David Vincent-Jones  wrote:

> Thanks for both responses  yes, I have done all that.  AFAIK
> everything is installed correctly.
>
> Now, how do I call/start Gimp or any of the other plugins from darktable?
> That is the question.
>
> David
>
> On 04/04/2017 08:34 AM, Tobias Ellinghaus wrote:
>
> Am Dienstag, 4. April 2017, 14:41:05 CEST schrieb Christian Kanzian:
>
> Hi,
>
> Am 2017-04-03 18:42, schrieb David Vincent-Jones:
>
> I appear to have all of the Lua material correctly in place .. my only
> question is how do I start any of the scripts/plugins?
>
>
> Well, they are loaded on startup, if you add them to your
> "~/.config/darktable/luarc"
> like "require lua/gimp" assuming that the script "gimp.lua" is in dir
> "~/.config/lua".
>
>
> That should be
>require "gimp"
> with "gimp.lua" being in "~/.config/darktable/lua/"
>
>
> You can check for errors if you start:
>
> "darktable -d lua"
>
> You also need to check, if darktable has been build with lua support.
>
>
> Do I start from the normal dt interface or through the console?
>
> Lots of Lua documentation but starting a process is somehow omitted.
>
> David
>
>
> Christian
>
>
> Tobias
>
>
>
> 
> darktable user mailing list to unsubscribe send a mail to
> darktable-user+unsubscr...@lists.darktable.org
>


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org

Re: [darktable-user] Starting Lua

2017-04-04 Thread David Vincent-Jones
Thanks for both responses  yes, I have done all that.  AFAIK
everything is installed correctly.

Now, how do I call/start Gimp or any of the other plugins from
darktable? That is the question.

David


On 04/04/2017 08:34 AM, Tobias Ellinghaus wrote:
> Am Dienstag, 4. April 2017, 14:41:05 CEST schrieb Christian Kanzian:
>> Hi,
>>
>> Am 2017-04-03 18:42, schrieb David Vincent-Jones:
>>> I appear to have all of the Lua material correctly in place .. my only
>>> question is how do I start any of the scripts/plugins?
>> Well, they are loaded on startup, if you add them to your
>> "~/.config/darktable/luarc"
>> like "require lua/gimp" assuming that the script "gimp.lua" is in dir
>> "~/.config/lua".
> That should be
>require "gimp"
> with "gimp.lua" being in "~/.config/darktable/lua/"
>
>> You can check for errors if you start:
>>
>> "darktable -d lua"
>>
>> You also need to check, if darktable has been build with lua support.
>>
>>> Do I start from the normal dt interface or through the console?
>>>
>>> Lots of Lua documentation but starting a process is somehow omitted.
>>>
>>> David
>> Christian
> Tobias



darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



Re: [darktable-user] Starting Lua

2017-04-04 Thread Tobias Ellinghaus
Am Dienstag, 4. April 2017, 14:41:05 CEST schrieb Christian Kanzian:
> Hi,
> 
> Am 2017-04-03 18:42, schrieb David Vincent-Jones:
> > I appear to have all of the Lua material correctly in place .. my only
> > question is how do I start any of the scripts/plugins?
> 
> Well, they are loaded on startup, if you add them to your
> "~/.config/darktable/luarc"
> like "require lua/gimp" assuming that the script "gimp.lua" is in dir
> "~/.config/lua".

That should be
   require "gimp"
with "gimp.lua" being in "~/.config/darktable/lua/"

> You can check for errors if you start:
> 
> "darktable -d lua"
> 
> You also need to check, if darktable has been build with lua support.
> 
> > Do I start from the normal dt interface or through the console?
> > 
> > Lots of Lua documentation but starting a process is somehow omitted.
> > 
> > David
> 
> Christian

Tobias

signature.asc
Description: This is a digitally signed message part.


Re: [darktable-user] Starting Lua

2017-04-04 Thread Christian Kanzian

Hi,

Am 2017-04-03 18:42, schrieb David Vincent-Jones:

I appear to have all of the Lua material correctly in place .. my only
question is how do I start any of the scripts/plugins?


Well, they are loaded on startup, if you add them to your 
"~/.config/darktable/luarc"
like "require lua/gimp" assuming that the script "gimp.lua" is in dir 
"~/.config/lua".


You can check for errors if you start:

"darktable -d lua"

You also need to check, if darktable has been build with lua support.



Do I start from the normal dt interface or through the console?

Lots of Lua documentation but starting a process is somehow omitted.

David



Christian




darktable user mailing list to unsubscribe send a mail to
darktable-user+unsubscr...@lists.darktable.org


darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org



[darktable-user] Starting Lua

2017-04-03 Thread David Vincent-Jones
I appear to have all of the Lua material correctly in place .. my only
question is how do I start any of the scripts/plugins?

Do I start from the normal dt interface or through the console?

Lots of Lua documentation but starting a process is somehow omitted.

David



darktable user mailing list
to unsubscribe send a mail to darktable-user+unsubscr...@lists.darktable.org