Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-flatten-cylinder
#11
(05-06-2025, 02:14 PM)rich2005 Wrote:
(05-06-2025, 01:29 PM)n4mwd Wrote: Thanks for creating that plugin.  However, I'm having trouble getting it to run on two different GIMP 2.10 installations.  I downloaded the ZIP file, extracted the .py file to the GIMP/Plug-Ins folder as directed, restarted GIMP and nothing changed.  There was no extra menu option under Filters->Map.

Can anyone help me with this installation problem?

Which version(s) of linux are you using ?  Gimp 2.10 uses python 2.7 (which is deprecated) and recent Linux only includes python 3. 

You can easily tell if python 2.7 is supported, Open Gimp 2.10,  look in the Filters Menu, and if python 2.7 is supported by Gimp, near the bottom is a Python-fu entry. 

Work-arounds, 
A flatpak Gimp 2.10 includes python 2.7
how to tell what version of python im running
There are appimage add-ons for ubuntu (and debian) linux 

There is this appimage which includes python
https://github.com/ivan-hc/GIMP-appimage...ous-hybrid

Thanks for the reply.  I'm running on MX Linux which doesn't seem very well supported even though it is debian based.  There is no python-fu listed.  I opened a terminal an ran "python3 -V" which returned "Python 3.9.2".  And a little research shows that as I type this, the latest version of python is 3.13.3. 

I've had pretty good results running flatpaks before.  I don't know anything about appimages.  Another option might be to try to get it running on a windows machine.  If it works, I could unwrap my coffee cans and then copy them back to my Linux machine.

The MX Linux package installer hasn't worked for some time now.  It keeps fussing about dependencies and then wont let me install them.  Flatpaks do seem to work though.  There is one listed in the package handler, but I'm not sure if its the one you speak of.  How do I tell?  If not, where do I get the good one?

UPDATE: No luck on the windows machines around here.  They are running python 3+.  However, as strange as it sounds, I found a little raspberry Pi running both GIMP 2.10 and python 2.7.  I copied the .py file in the plug-ins directory and it too did not list anything in the filters.  There is no python-fu listed either.  I did check for a fact that it is running python version 2.7.16.  One odd thing is that gimp seems to run faster on the PI than the windows machines.  It is a PI 3B.
Reply
#12
(05-06-2025, 02:14 PM)rich2005 Wrote: Work-arounds, 
A flatpak Gimp 2.10 includes python 2.7

There are appimage add-ons for ubuntu (and debian) linux 

There is this appimage which includes python
https://github.com/ivan-hc/GIMP-appimage...ous-hybrid

I went back to a windows machine that is running gimp 2.10 and gmic.  While it has python3+, it still shows python-fu in the menu.  So I copied the .py file to the directory and the plug in now works.  Unfortunately, my can photos have rounded tops and bottoms which are a problem for the plug in.  The plug in worked except for that.  I'm currently trying to use cage transform to straighten it out.  It is an old photo that I don't have any control over how it was shot.

Anyhow, thanks for the help.
Reply
#13
(05-06-2025, 11:33 PM)n4mwd Wrote:
(05-06-2025, 02:14 PM)rich2005 Wrote: Work-arounds, 
A flatpak Gimp 2.10 includes python 2.7

There are appimage add-ons for ubuntu (and debian) linux 

There is this appimage which includes python
https://github.com/ivan-hc/GIMP-appimage...ous-hybrid

I went back to a windows machine that is running gimp 2.10 and gmic.  While it has python3+, it still shows python-fu in the menu.  So I copied the .py file to the directory and the plug in now works.  Unfortunately, my can photos have rounded tops and bottoms which are a problem for the plug in.  The plug in worked except for that.  I'm currently trying to use cage transform to straighten it out.  It is an old photo that I don't have any control over how it was shot.

Anyhow, thanks for the help.

Just a quick update.  On the windows machine, it is definitely running Python 3+ when I run it from the dos box, but when I go into GIMP and start the python-fu console, it clearly shows Python 2.7.  Just a guess, but I suspect that windows GIMP has python 2.7 embedded in the installation.

As far as this plug in, it works as described, but it falls short in the fact that close up photos have rounded tops and bottoms which mess everything up.  In my case, I don't have the original object, so photographing it properly is not an option.  If I did have it, I would use the scanner trick.  That is, I roll the can across the flatbed scanner at the same speed as the scan head.  It takes a lot of timing to get it right, but I have done it before and it works great.
Reply


Forum Jump: