Re: why no glade module for python 3?

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

 



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 <pgaltieri@xxxxxxxxx> 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 <module>

    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.< /p>

 

Paolo

 

<b>Doug Lindquist</b>

<br />

Independent Youth Pastor/Counsellor

<br />

<i>doug.lindquist@xxxxxxxxxxxxxx</i>

<br />

<br />

Cell (814) 366-1397

<br />

<br />

http://facebook.com/douglindquist

<br />

Twitter @DouglasLindquis

<br />

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux