RSS/Atom feed Twitter
Site is read-only, email is disabled

What Python binary does GIMP use for its plug-ins on Mac OS X?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

What Python binary does GIMP use for its plug-ins on Mac OS X? Viet Nguyen 22 May 20:08
  What Python binary does GIMP use for its plug-ins on Mac OS X? scl 25 May 13:23
Viet Nguyen
2014-05-22 20:08:08 UTC (almost 10 years ago)

What Python binary does GIMP use for its plug-ins on Mac OS X?

Hi everyone,

I've got a toolbox plugin for image labeling for computer vision purposes: https://github.com/vietjtnguyen/gimp-image-labeling-toolbox

The plug-in depends on NumPy.

I do all of my development and testing thus far on Ubuntu 12.04 and have had no issues. However, I need to get my toolbox working on another person's machine. They have a MacBook Pro with Mac OS X 10.8. I'm having a tough time figuring out how to get NumPy on the machine in such a way that it will satisfy the dependency for my GIMP plug-in.

When I do a `print(sys.executable)` in my plug-in it shows that it is using a Python binary in the GIMP application contents (something like `/Applications/GIMP.app/Contents/MacOS/python`). I'm not sure if this is linked to another binary somewhere, but it concerns me because it appears that GIMP essentially comes with its own Python and it's not clear to me what the nature of such a prepackaged Python would be and how to install dependencies for it.

I tried finding some information about or questions about GIMP's relation to Python binaries but came up short.

- https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fmail.gnome.org%2Farchives%2Fgimp-developer-list%2F+python+binary&oq=site%3Ahttps%3A%2F%2Fmail.gnome.org%2Farchives%2Fgimp-developer-list%2F+python+binary&aqs=chrome..69i57j69i58.4546j0j8&sourceid=chrome&es_sm=0&ie=UTF-8 - http://www.gimp.org/docs/python/

I was hoping someone could help me out in not only solving my dependency problem but also help me in understanding what GIMP's relationship with Python is on each platform. On Ubuntu 12.04 it seems to nicely use my `/usr/bin/python`.

Is there a way to get GIMP to work with Anaconda? Can I replace GIMP's apparent Python binary on Mac OS X with a symlink to the Anaconda installed Python binary?

Thanks for the help!

Viet Nguyen

scl
2014-05-25 13:23:40 UTC (almost 10 years ago)

What Python binary does GIMP use for its plug-ins on Mac OS X?

Hi,

we use Python 2.7.
It's built in and you can find it all under GIMP.app/Contents/ ...
/MacOS/python
/Resources/lib/libpyglib-2.0-python.0.dylib /Resources/lib/libpython2.7.dylib
/Resources/lib/pygtk/
/Resources/lib/python2.7/

Kind regards,

Sven