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

Gimp/Python import gimp fails

This discussion is connected to the gimp-user-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.

Gimp/Python import gimp fails smw 06 Dec 14:44
  Gimp/Python import gimp fails Chris Mohler 06 Dec 20:08
2008-12-06 14:44:25 UTC (about 16 years ago)
postings
2

Gimp/Python import gimp fails

Running WinXP and latest Gimp32 win install

I am trying to get python working with gimp. Everything has installed fine, but when doing "from gimpfu import *" I get the following error: Unhandled exception while debugging... Traceback (most recent call last):
File "C:\Program Files\GIMP\lib\gimp\2.0\python\gimpfu.py", line 74, in

import gimp ImportError: DLL load failed: The specified module could not be found.

it finds gimpfu, but fails when gimpfu imports gimp. gimp.pyd is in the python directory where the win32 install put it, but there is not gimp.py or gimp.pyo (as there is for gimpfu.

Any help is appreciated, I have worked on this for a couple days now and am getting nowhere.

Chris Mohler
2008-12-06 20:08:12 UTC (about 16 years ago)

Gimp/Python import gimp fails

On Sun, Dec 7, 2008 at 7:44 AM, Steven W. wrote:

Running WinXP and latest Gimp32 win install

I am trying to get python working with gimp. Everything has installed fine, but when doing "from gimpfu import *" I get the following error: Unhandled exception while debugging... Traceback (most recent call last):
File "C:\Program Files\GIMP\lib\gimp\2.0\python\gimpfu.py", line 74, in

import gimp ImportError: DLL load failed: The specified module could not be found.

it finds gimpfu, but fails when gimpfu imports gimp. gimp.pyd is in the python directory where the win32 install put it, but there is not gimp.py or gimp.pyo (as there is for gimpfu.

Any help is appreciated, I have worked on this for a couple days now and am getting nowhere.

Are you using the Python-Fu console (from within GIMP) or the Python prompt? AFAIK, you can't import gimp directly into python - you need to use python-fu to access the PDB.

Chris