Re: why no glade module for python 3?
I just spent months updating the Griffith movie/dvd manager from python2 to python3. the glade package was moved. This is what you need now. import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk On Mon, 1 Feb 2021 16:18:26 -0800 Paolo Galtieri wrote: Folks, for years I've been using sbackup for doing my backups. I've tried others and none come close to being as easy to use as sbackup. Unfortunately there doesn't seem to be any further development occurring on it. It was written originally to work with python2 and I have managed to get it to work with python2 on FC31 and FC32. However, with the removal of most of the necessary python2 packages from FC33 it no longer works. So I tried to get it to run under python3, and the first problem I encountered is the following: Traceback (most recent call last): File "/usr/sbin/simple-backup-config", line 30, in import gtk.glade ImportError: No module named glade With python2 this module was located in /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/glade.so from package pygtk2-libglade-2.24.0-27.fc31.x86_64 This package does not exist in FC33 nor is there a corresponding package for FC33. So why is there no glade.so module/package for python2 or python3? Since there is no pygtk2-libglade in FC33 I tried to port it, but it fails if using with both python2 and python3 due to various errors, e.g. the following when using python3 File "/usr/share/pygobject/2.0/codegen/codegen.py", line 429 except argtypes.ArgTypeError, ex: ^ SyntaxError: invalid syntax make: *** [Makefile:1151: pango.c] Error 1 I don't want to try to port all the f31 python2 packages which are needed, I tried and it's a pain :( Any help is appreciated. Paolo Doug Lindquist Independent Youth Pastor/Counsellor doug.lindqu...@atlanticbb.net Cell (814) 366-1397 http://facebook.com/douglindquist Twitter @DouglasLindquis ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Re: why no glade module for python 3?
On Mon, 1 Feb 2021 at 20:18, Paolo Galtieri wrote: > Folks, >for years I've been using sbackup for doing my backups. I've tried > others and none come close to being as easy to use as sbackup. > Unfortunately there doesn't seem to be any further development occurring > on it. It was written originally to work with python2 and I have managed > to get it to work with python2 on FC31 and FC32. However, with the > removal of most of the necessary python2 packages from FC33 it no longer > works. So I tried to get it to run under python3, and the first problem > I encountered is the following: > > Traceback (most recent call last): >File "/usr/sbin/simple-backup-config", line 30, in > import gtk.glade > ImportError: No module named glade > > With python2 this module was located in > > /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/glade.so > > from package > > pygtk2-libglade-2.24.0-27.fc31.x86_64 > > This package does not exist in FC33 nor is there a corresponding package > for FC33. So why is there no glade.so module/package for python2 or > python3? > Because the names have been changed to protect the innocent? See https://python-gtk-3-tutorial.readthedocs.io/en/latest/builder.html?highlight=glade#creating-and-loading-the-glade-file . -- George N. White III ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
why no glade module for python 3?
Folks, for years I've been using sbackup for doing my backups. I've tried others and none come close to being as easy to use as sbackup. Unfortunately there doesn't seem to be any further development occurring on it. It was written originally to work with python2 and I have managed to get it to work with python2 on FC31 and FC32. However, with the removal of most of the necessary python2 packages from FC33 it no longer works. So I tried to get it to run under python3, and the first problem I encountered is the following: Traceback (most recent call last): File "/usr/sbin/simple-backup-config", line 30, in import gtk.glade ImportError: No module named glade With python2 this module was located in /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/glade.so from package pygtk2-libglade-2.24.0-27.fc31.x86_64 This package does not exist in FC33 nor is there a corresponding package for FC33. So why is there no glade.so module/package for python2 or python3? Since there is no pygtk2-libglade in FC33 I tried to port it, but it fails if using with both python2 and python3 due to various errors, e.g. the following when using python3 File "/usr/share/pygobject/2.0/codegen/codegen.py", line 429 except argtypes.ArgTypeError, ex: ^ SyntaxError: invalid syntax make: *** [Makefile:1151: pango.c] Error 1 I don't want to try to port all the f31 python2 packages which are needed, I tried and it's a pain :( Any help is appreciated. Paolo ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org