From shankargiri at gmail.com Sun Nov 6 22:17:06 2011 From: shankargiri at gmail.com (Shankar Giri Venkita Giri) Date: Sun, 6 Nov 2011 16:17:06 -0500 Subject: [Pygui] Bugs in PyGUI 2.5.3 in windows Message-ID: <15009EE4-CA9E-4F74-82BB-DA5F476A8CED@gmail.com> I'm building a PyGUI application in Mac OS X, but tried to run it in windows. Found a few bugs when running PyGUI 2.5.3 in windows. 1. ButtonBases.py Missing a package import: from GUI.GControls import Control as GControl 2. Font.py In the following section of code: #pywin32_info = api.GetFileVersionInfo(api.__file__, '\\') #pywin32_build = pywin32_info['FileVersionLS'] >> 16 #if pywin32_build <= 212: # win_height_sign = 1 #else: win_height_sign = -1 The latest pywin32 dlls don't seem to have a resource section. Hence the api.GetFileVersionInfo() throws an exception. Since we have come a long way from build 212, I guess we can just use the else part directly or else catch the exception and proceed. I could run my python GUI application in windows only after I fixed these two problems. From bhargav.1191 at gmail.com Tue Nov 22 23:45:34 2011 From: bhargav.1191 at gmail.com (Bhargav Mangipudi) Date: Wed, 23 Nov 2011 04:15:34 +0530 Subject: [Pygui] Problem with PyGUI on Ubuntu 11.10 Message-ID: Hello I am using PyGUI for writing a GUI for a checkers program. I have installed PyGUI version 2.5.3 from the tarball on the homepage. When I try to import the library in python, I get the following error: /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed import gobject._gobject /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: specified class size for type `PyGtkGenericCellRenderer' is smaller than the parent type's `GtkCellRenderer' class size from gtk import _gtk /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed from gtk import _gtk [1] 3181 segmentation fault python grid_view.py I have the following configuration: gtk: v2.24.6, pygtk: v2.24.0. What could be the possible reasons for this error, Also how could I resolve it? Please help. Bhargav Mangipudi Final Year Undergraduate Department of Computer Science Indian Institute of Technology Ropar -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg.ewing at canterbury.ac.nz Thu Nov 24 22:40:01 2011 From: greg.ewing at canterbury.ac.nz (Greg Ewing) Date: Fri, 25 Nov 2011 10:40:01 +1300 Subject: [Pygui] Problem with PyGUI on Ubuntu 11.10 In-Reply-To: References: Message-ID: <4ECEB9B1.9070308@canterbury.ac.nz> Bhargav Mangipudi wrote: > /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: > g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' > failed > import gobject._gobject > /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: > specified class size for type `PyGtkGenericCellRenderer' is smaller than > the parent type's `GtkCellRenderer' class size > from gtk import _gtk > /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: > g_type_get_qdata: assertion `node != NULL' failed > from gtk import _gtk > [1] 3181 segmentation fault python grid_view.py I have no idea what's happening there. It looks like your gtk or pygtk installation is messed up somehow. You could try asking about this on the pygtk list. -- Greg From shankargiri at gmail.com Fri Nov 25 21:06:57 2011 From: shankargiri at gmail.com (Shankar Giri Venkita Giri) Date: Fri, 25 Nov 2011 15:06:57 -0500 Subject: [Pygui] Problem with PyGUI on Ubuntu 11.10 In-Reply-To: References: Message-ID: I'm facing the same problem. I tried some extensive debugging using gdb with debugging symbols for libgtk, even libc. Strangely enough, this actually looks like a stack corruption in glibc. Program received signal SIGSEGV, Segmentation fault. _IO_vfprintf_internal (s=0x7fffff7ff640, format= 0x7ffff5991732 "%s: assertion `%s' failed", ap=0x7fffff7ff7f8) at vfprintf.c:1325 This probably implies a memory leak or stack corruption somewhere in glibc. In gdb, setting a breakpoint at this line causes almost 90,000 hits before it segfaults. Therefore, IMHO, its a stack corruption happening deep inside glibc (I could be wrong). Regards, Shankar On Nov 25, 2011, at 6:00 AM, pygui-request at python.org wrote: > Send Pygui mailing list submissions to > pygui at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/pygui > or, via email, send a message with subject or body 'help' to > pygui-request at python.org > > You can reach the person managing the list at > pygui-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Pygui digest..." > > > Today's Topics: > > 1. Re: Problem with PyGUI on Ubuntu 11.10 (Greg Ewing) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 25 Nov 2011 10:40:01 +1300 > From: Greg Ewing > To: Bhargav Mangipudi > Cc: pygui at python.org > Subject: Re: [Pygui] Problem with PyGUI on Ubuntu 11.10 > Message-ID: <4ECEB9B1.9070308 at canterbury.ac.nz> > Content-Type: text/plain; charset=UTF-8; format=flowed > > Bhargav Mangipudi wrote: > >> /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: >> g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' >> failed >> import gobject._gobject >> /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: >> specified class size for type `PyGtkGenericCellRenderer' is smaller than >> the parent type's `GtkCellRenderer' class size >> from gtk import _gtk >> /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: >> g_type_get_qdata: assertion `node != NULL' failed >> from gtk import _gtk >> [1] 3181 segmentation fault python grid_view.py > > I have no idea what's happening there. It looks like your gtk > or pygtk installation is messed up somehow. You could try asking > about this on the pygtk list. > > -- > Greg > > > ------------------------------ > > _______________________________________________ > Pygui mailing list > Pygui at python.org > http://mail.python.org/mailman/listinfo/pygui > > > End of Pygui Digest, Vol 18, Issue 3 > ************************************