Gimp-Forum.net
ofn-path-edits - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: ofn-path-edits (/Thread-ofn-path-edits)

Pages: 1 2 3 4


RE: ofn-path-edits - teapot - 10-04-2022

Thank you Ofnuts, it's working fine now  Smile


RE: ofn-path-edits - GreatCaptainA - 01-15-2023

On my system the ofn-path-edits is looking for python at /usr/bin/env/python which is not there.

I had to link it to one of these:
Code:
/usr/bin/python3
/usr/lib/python3
/etc/python3
/usr/share/python3

And after that i got this and it still didn't load.
Code:
Querying plug-in: '/home/alex/.config/GIMP/2.10/plug-ins/ofn-path-edits/ofn-path-edits.py'
 File "/home/alex/.config/GIMP/2.10/plug-ins/ofn-path-edits/ofn-path-edits.py", line 50
   print format % args
   ^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
Terminating plug-in: '/home/alex/.config/GIMP/2.10/plug-ins/ofn-path-edits/ofn-path-edits.py'

I commented out lines 48,49,50 and other similar errors kept comming.

Is there something wrong with my system or is it the plugin?


Code:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

gimp 2.10.30
Python 3.10.6



RE: ofn-path-edits - rich2005 - 01-15-2023

The default Gimp from the jammy 'buntu repo does not have the required gimp-python package. This used python 2, now deprecated python 3 is now default.

Two ways for jammy,

1. Use an appimage from https://github.com/TasMania17/Gimp-Appimages-Made-From-Debs/releases/tag/Gimp-Python2-AppImage-Launchers-for-Linux Make this executable, run it, it will find your Gimp installation, start Gimp and load python support. Ofnuts python plugins work as expected. I use this with kubuntu 22.04

2. Install the flatpak Gimp. Self contained comes with python 2. It is sandboxed so some issues, for example if you use a scanner, dependencies for some plugins. There are a few bespoke plugins for this version, resynthesizer, gmic ... but Ofnuts plugins work as expected.


RE: ofn-path-edits - Ofnuts - 01-15-2023

This is Gimp 2.10 so the plugin is expected to be executed by Python V2. But Python V2 is deprecated since 2020, so many distros (including Ubuntu) have

1. removed Python from the default install (but it can still be installed)
2. removed the Python support in Gimp (package gimp-python IIRC).

#1 is easy to fix by installing the Python v2 package. #2 may require to steal some debs from an earlier distro (Ubuntu 19.10 was probably the last to have it). See here.

Other ways to have the Python support is to install a flatpak distro (link in the Downloads page on Gimp.org), with some more hints here.

And as I heard there is also an AppImage.

(*) Gimp 2.99/3.0 will have Python v3 support, but current Python support is still too incomplete for many scripts.


RE: ofn-path-edits - rich2005 - 01-15-2023

(01-15-2023, 08:57 AM)Ofnuts Wrote: #1 is easy to fix by installing the Python v2 package. #2 may require to steal some debs from an earlier distro (Ubuntu 19.10 was probably the last to have it). See here.

Have you tried that fix ? While I have a kubuntu 20.04 working that way, 22.04 came with many dependency issues that just resulted in un-fixable broken packages. 

If you can give advice on the best packages to use.


RE: ofn-path-edits - Ofnuts - 01-15-2023

(01-15-2023, 09:06 AM)rich2005 Wrote:
(01-15-2023, 08:57 AM)Ofnuts Wrote: #1 is easy to fix by installing the Python v2 package. #2 may require to steal some debs from an earlier distro (Ubuntu 19.10 was probably the last to have it). See here.

Have you tried that fix ? While I have a kubuntu 20.04 working that way, 22.04 came with many dependency issues that just resulted in un-fixable broken packages. 

If you can give advice on the best packages to use.

Still on 20.04...


RE: ofn-path-edits - Ofnuts - 04-06-2023

Added a new Straighten tangents function to make sure that tangents are horizontally or vertically aligned with their anchor. SourceForge has been updated.


RE: ofn-path-edits - Ofnuts - 07-31-2023

Added some stats in Summary, and prevented said Summary to make the image "dirty" when running.