No Lua or Python in Gimp 2.99

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

No Lua or Python in Gimp 2.99

Ofnuts-2
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 <module>
         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:    [hidden email]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list
Reply | Threaded
Open this post in threaded view
|

Re: No Lua or Python in Gimp 2.99

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:    [hidden email]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list
Reply | Threaded
Open this post in threaded view
|

Re: No Lua or Python in Gimp 2.99

Ofnuts-2
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:    [hidden email]
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list