Re: [Gimp-developer] No Lua or Python in Gimp 2.99

2020-06-14 Thread Ofnuts

On 14/06/2020 20:20, Lloyd Konneker via gimp-developer-list wrote:

Try package lua-lgi

I think I had this same issue, and documented it at
https://wiki.gimp.org/wiki/Hacking:Problems_and_solutions#luajit:_...mp.2F2.99.2Fplug-ins.2Fgoat-exercise-lua.2Fgoat-exercise-lua.lua:22:_module_.27lgi.27_not_found


Ok, this fixes the lua part of the problem.

Then after that install I restarted Gimp, and Lua also had namespace
issues, but then looking closer I saw that JavaScript also had namespace
issues... But the Wiki page you pointed to had a similar question and
its answer helped me figure out that somehow the GI_TYPELIB_PATH wasn't
defined. After setting it to:

export
GI_TYPELIB_PATH="${GIMP_PREFIX}/lib/girepository-1.0:${GIMP_PREFIX}/lib/${arch}/girepository-1.0:$GI_TYPELIB_PATH"

... everything looks fine and dandy.

But this raises another question: I have three well-populated
"girepository-1.0" directories in /usr, how comes nothing seems to
define a GI_TYPELIB_PATH variable in the user environment?


Thanks to all.

___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] No Lua or Python in Gimp 2.99 (Ofnuts)

2020-06-14 Thread Lloyd Konneker via gimp-developer-list
Try package lua-lgi

I think I had this same issue, and documented it at
https://wiki.gimp.org/wiki/Hacking:Problems_and_solutions#luajit:_...mp.2F2.99.2Fplug-ins.2Fgoat-exercise-lua.2Fgoat-exercise-lua.lua:22:_module_.27lgi.27_not_found
:
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] No Lua or Python in Gimp 2.99

2020-06-14 Thread Ofnuts

On 14/06/2020 13:34, Michael Schumacher wrote:


On 6/14/20 1:16 PM, Ofnuts wrote:


This looks more like an environment problem (path?)

Any hints?

What environment variables do you have set for your prefix?



My environment looks like this, where `build` contains the sources and
`run` is where things get installed (I have a similar set up for 2.10):

/Gimp-dev/2.99
├── build
│   ├── babl
│   ├── gegl
│   ├── gimp
│   ├── libmypaint
│   └── mypaint-brushes
└── run
    ├── bin
    ├── etc
    ├── include
    ├── lib
    ├── libexec
    └── share

The whole thing runs quite smoothly except for these two problems. Gimp
prefix and possibly other relevant variables:

PWD=/Gimp-dev/2.99

GIMP_PREFIX=/Gimp-dev/2.99/run

PKG_CONFIG_PATH=/Gimp-dev/2.99/run/lib/x86_64-linux-gnu/pkgconfig:/Gimp-dev/2.99/run/share/x86_64-linux-gnu/pkgconfig:/Gimp-dev/2.99/run/lib/pkgconfig:/Gimp-dev/2.99/run/share/pkgconfig

ACLOCAL_FLAGS=-I /Gimp-dev/2.99/run/share/aclocal -I /usr/share/aclocal

LD_LIBRARY_PATH=/Gimp-dev/2.99/run/lib/x86_64-linux-gnu:/Gimp-dev/2.99/run/lib:/Gimp-dev/2.99/run/lib/x86_64-linux-gnu:/Gimp-dev/2.99/run/lib:

XDG_DATA_DIRS=/Gimp-dev/2.99/run/share:/usr/share:/Gimp-dev/2.99/run/share:/usr/share:/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop

PATH=/Gimp-dev/2.99/run/bin:/Gimp-dev/2.99/run/bin:/home/me/.local/bin:/home/me/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

In case it matters too, the python files in the "run" tree:

./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/spyro-plus/spyro-plus.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/palette-to-gradient/palette-to-gradient.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/foggify/foggify.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/python-console/python-console.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/python-console/pyconsole.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/palette-offset/palette-offset.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/py-slice/py-slice.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/file-openraster/file-openraster.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/gradients-save-as-css/gradients-save-as-css.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/goat-exercise-py3/goat-exercise-py3.py
./run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/colorxhtml/colorxhtml.py
./run/lib/gimp/2.99/plug-ins/spyro-plus/spyro-plus.py
./run/lib/gimp/2.99/plug-ins/palette-to-gradient/palette-to-gradient.py
./run/lib/gimp/2.99/plug-ins/foggify/foggify.py
./run/lib/gimp/2.99/plug-ins/python-console/python-console.py
./run/lib/gimp/2.99/plug-ins/python-console/pyconsole.py
./run/lib/gimp/2.99/plug-ins/palette-offset/palette-offset.py
./run/lib/gimp/2.99/plug-ins/py-slice/py-slice.py
./run/lib/gimp/2.99/plug-ins/file-openraster/file-openraster.py
./run/lib/gimp/2.99/plug-ins/gradients-save-as-css/gradients-save-as-css.py
./run/lib/gimp/2.99/plug-ins/colorxhtml/colorxhtml.py

___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


Re: [Gimp-developer] No Lua or Python in Gimp 2.99

2020-06-14 Thread Michael Schumacher



On 6/14/20 1:16 PM, Ofnuts wrote:

> This looks more like an environment problem (path?)
>
> Any hints?
What environment variables do you have set for your prefix?


--
Regards,
Michael
GPG: 96A8 B38A 728A 577D 724D 60E5 F855 53EC B36D 4CDD
___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list


[Gimp-developer] No Lua or Python in Gimp 2.99

2020-06-14 Thread Ofnuts

When I start a freshy pulled/compiled 2.99 on my Ubuntu 19.10, I get:

For Lua:

    luajit:
...mp/2.99/plug-ins/goat-exercise-lua/goat-exercise-lua.lua:22: module
'lgi' not found:
    no field package.preload['lgi']
    no file './lgi.lua'
    no file '/usr/share/luajit-2.1.0-beta3/lgi.lua'
    no file '/usr/local/share/lua/5.1/lgi.lua'
    no file '/usr/local/share/lua/5.1/lgi/init.lua'
    no file '/usr/share/lua/5.1/lgi.lua'
    no file '/usr/share/lua/5.1/lgi/init.lua'
    no file './lgi.so'
    no file '/usr/local/lib/lua/5.1/lgi.so'
    no file '/usr/lib/x86_64-linux-gnu/lua/5.1/lgi.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
    stack traceback:
    [C]: in function 'require'
...mp/2.99/plug-ins/goat-exercise-lua/goat-exercise-lua.lua:22: in main
chunk
    [C]: at 0x55864ba6d1d0
    GIMP-WARNING: gimp-2.99: gimp_wire_read(): error

As far as I can tell, I have lua5.1, liblua5.2-0:amd64, libluajit-5.1-2,
libluajit-5.1-common, lua5.1,luajit. I maybe missing lgi, but I cannot
find a  likely installation candidate for it?

For Python:

    Traceback (most recent call last):
    File
"/Gimp-dev/2.99/run/lib/x86_64-linux-gnu/gimp/2.99/plug-ins/goat-exercise-py3/goat-exercise-py3.py",
line 17, in 
    gi.require_version('Gimp', '3.0')
    File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in
require_version
    raise ValueError('Namespace %s not available' % namespace)
    ValueError: Namespace Gimp not available

This looks more like an environment problem (path?)

Any hints?




___
gimp-developer-list mailing list
List address:gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list