From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030509 Description of problem: When trying to start redhat-config-services the program starts the window comes up and then immediately aborts with the following: (redhat-config-services:19583): libglade-WARNING **: Error loading image: Failed to open file '/usr/share/redhat-config-services/redhat-config-services.png': No such file or directory (redhat-config-services:19583): libglade-WARNING **: could not convert string to type `GdkPixbuf' for property `icon' Traceback (most recent call last): File "/usr/share/redhat-config-services/serviceconf.py", line 270, in changed self.set_text_buffer() File "/usr/share/redhat-config-services/serviceconf.py", line 277, in set_text_buffer self.txtBuffer.set_text(string.strip(x[2]),len(string.strip(x[2]))) TypeError: GtkTextBuffer.set_text() takes exactly 1 argument (2 given) Traceback (most recent call last): File "/usr/share/redhat-config-services/serviceconf.py", line 557, in ? main() File "/usr/share/redhat-config-services/serviceconf.py", line 544, in main Gui() File "/usr/share/redhat-config-services/serviceconf.py", line 217, in __init__ self.changed(self.clstServices.get_selection(), None) File "/usr/share/redhat-config-services/serviceconf.py", line 270, in changed self.set_text_buffer() File "/usr/share/redhat-config-services/serviceconf.py", line 277, in set_text_buffer self.txtBuffer.set_text(string.strip(x[2]),len(string.strip(x[2]))) TypeError: GtkTextBuffer.set_text() takes exactly 1 argument (2 given) Version-Release number of selected component (if applicable): redhat-config-servics-0.8.5-1 How reproducible: Always Steps to Reproduce: 1.Start redhat-config-services. 2.Program starts, window comes up and then aborts. 3. Actual Results: The program died. Expected Results: The window would have stayed open and the program would have run. Additional info: I am running pygtk2-1.99.16-3 and pygtk2-libglade-1.99.16-3, which I believe are causing the problem. The program did not abort before the upgrade to the 1.99.16 series.
It is running fine on my python-2.2.2-26. What version of Red Hat are you running on? Dan
I am running the latest (as of May 27, 2003) packages for Rawhide. This includes python-2.2.2-26, gnome-python2-1.99.14-5, gnome-python2-canvas-1.99.15-5, pygtk2-1.99.16-3, pygtk2-libglade-1.99.16-3, rhpl-0.101.1-1, and chkconfig-1.3.8-2.
Need some kind of compatibility until all systems upgraded to new api.
2002-12-28 James Henstridge <james.au> * gtk/gtk.override (_wrap_gtk_text_buffer_set_text): get rid of len argument all together. The first argument knows its length. This seems to be the change. I can add a compat function for this.
I built a compat version of that function into Rawhide. pygtk won't traceback.