Hi Jayesh, On Dec 3, 2007 4:49 PM, Jayesh Salvi <jayeshsalvi@xxxxxxxxx> wrote: > Hi, > > I am trying to see what all methods gimpfu.pdb offers, by running dir() > operation on it. But it crashes as follows: > > [jayesh@localhost plug-ins]$ > PYTHONPATH=$PYTHONPATH:/usr/lib64/gimp/2.0/python python > Python 2.5 (r25:51908, Apr 10 2007, 10:27:40) > [GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import gimpfu > >>> dir(gimpfu.pdb) > > LibGimpBase-ERROR **: gimp_wire_write_msg: the wire protocol has not been > initialized > aborting... > Aborted > > [jayesh@localhost plug-ins]$ rpm -qf /usr/lib64/gimp/2.0/python > gimp-2.4.2-1.fc7 > > > Does anyone know if this is known error? Well, I know that it doesn't happen for me. dir(pdb) works fine for me. However, I don't make the mistake of thinking that I can import gimpfu from an instance of Python that is not running under GIMP. Try typing the same thing from the Python console in GIMP, and see the difference. Anyway -- You cannot get a list of operations in the pdb by running dir() on it -- you only get the methods that allow you to do things with the pdb. dir(pdb) == ['__class__', '__delattr__', '__doc__', '__getattribute__', '__getitem__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'query'] As you can see, 'query' is the only method of the pdb object. pdb.query('') will get you a list of all pdb entries that you can call. you can filter for specific names like this: pdb.query('image') will get you a list including only the entries with 'image' in their name. _______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer