Re: Errors in python importing modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/18/18 08:28, Paco Garcia via gimp-developer-list wrote:
All the scripts in python that worked in previous versions of gimp have
stopped doing so in the new ones, the problem seems to be that there is
some change when importing external classes, there has been some change in the code that makes the call to external modules be different? In what way do you have to use "import" to make it work? There is some way to debug the
scripts using "--verbose" that returns more information about the error
than the one provided by the generic message "gimp-wire-read (): error"
Thanks in advance for any help to solve the problems.
Script that fails:
http://www.arakne.es/en/programming/python/gimp-plugin-shape-creator-v8/

Plenty of Python script still work... There is a problem in Windows with Python plugins that have their own UI written with pygtk, where you now need to import gimp stuff before pyGTK. In the mentioned script, I see "import gtk, gimpui,..." and maybe these should be reversed.

See https://gitlab.gnome.org/GNOME/gimp/issues/1510
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list



[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux