$ electrum -g gtk Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/electrum", line 204, in <module> gui.main(url) File "/usr/lib64/python2.7/site-packages/electrum_gui/gtk.py", line 1310, in main action = self.restore_or_create() File "/usr/lib64/python2.7/site-packages/electrum_gui/gtk.py", line 1351, in restore_or_create return restore_create_dialog() File "/usr/lib64/python2.7/site-packages/electrum_gui/gtk.py", line 90, in restore_create_dialog flags=Gtk.DialogFlags.MODAL|Gtk.DialogFlags.NO_SEPARATOR, AttributeError: type object 'GtkDialogFlags' has no attribute 'NO_SEPARATOR' Reproducible: Always Steps to Reproduce: 1.electrum -g gtk Actual Results: Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/electrum", line 204, in <module> gui.main(url) File "/usr/lib64/python2.7/site-packages/electrum_gui/gtk.py", line 1310, in main action = self.restore_or_create() File "/usr/lib64/python2.7/site-packages/electrum_gui/gtk.py", line 1351, in restore_or_create return restore_create_dialog() File "/usr/lib64/python2.7/site-packages/electrum_gui/gtk.py", line 90, in restore_create_dialog flags=Gtk.DialogFlags.MODAL|Gtk.DialogFlags.NO_SEPARATOR, AttributeError: type object 'GtkDialogFlags' has no attribute 'NO_SEPARATOR' Expected Results: GTK UI appears
> Gtk.DialogFlags.NO_SEPARATOR That's kind of a porting bug. This flag isn't valid for gtk3. So, an upstream bug.
Filed issue upstream: https://github.com/spesmilo/electrum/issues/673 Will update once I hear back from them. Otherwise this package doesn't seem to currently work with GTK under the normal Gentoo emerge process. Any hints on a workaround are appreciated.
Upstream said that they recently moved to gtk3 and closed the issue. I'm assuming this package needs to be updated to reflect that. Is this correct or is there some way for me to force gtk3 to be selected? I poked around the Gentoo docs, but the only real insight I got was from the policies page which said that each package is responsible for selecting the right gtk slot. (please forgive the ignorance on my part, I'm still learning about portage)
(In reply to Alexander Matviychuk from comment #3) > Upstream said that they recently moved to gtk3 and closed the issue. I'm > assuming this package needs to be updated to reflect that. Is this correct > or is there some way for me to force gtk3 to be selected? > > I poked around the Gentoo docs, but the only real insight I got was from the > policies page which said that each package is responsible for selecting the > right gtk slot. (please forgive the ignorance on my part, I'm still learning > about portage) Can you try 1.9.7 which is previous to that commit and see if it works. I'm using pygtk:2 which is the python bindings for gtk+:2 so you may have in fact uncovered the problem.
(In reply to Anthony Basile from comment #4) > (In reply to Alexander Matviychuk from comment #3) > > Upstream said that they recently moved to gtk3 and closed the issue. I'm > > assuming this package needs to be updated to reflect that. Is this correct > > or is there some way for me to force gtk3 to be selected? > > > > I poked around the Gentoo docs, but the only real insight I got was from the > > policies page which said that each package is responsible for selecting the > > right gtk slot. (please forgive the ignorance on my part, I'm still learning > > about portage) > > Can you try 1.9.7 which is previous to that commit and see if it works. I'm > using pygtk:2 which is the python bindings for gtk+:2 so you may have in > fact uncovered the problem. You can also try installing pygobject since it provides gtk+:3 python bindings.
(In reply to Alexander Matviychuk from comment #2) > Filed issue upstream: https://github.com/spesmilo/electrum/issues/673 > > Will update once I hear back from them. Otherwise this package doesn't seem > to currently work with GTK under the normal Gentoo emerge process. > > Any hints on a workaround are appreciated. The upstream is clueless here - this is a case of a bad port. In gtk2 GtkDialog has “has-separator” property, in gtk3 that property has been removed. The proper fix is to remove 'Gtk.DialogFlags.NO_SEPARATOR'.
- I already installed pygobject to get past the first error I got which was along the lines of "failed to import gi module". Installing pygobject fixed that but gave me the current issue, "'GtkDialogFlags' has no attribute 'NO_SEPARATOR'" - I uninstalled pygobject and downgraded to electrum-1.9.7 and it works like a charm. This only affects 1.9.8. So it appears that this is indeed an upstream issue. I will update the electrum devs with the new findings and hope they can fix it. At this point my understanding is there is nothing we can do to fix this error.
Well, OK, there has been a mid-air collision here - comment 6 was after I've read the initial upstream reply, before I've noticed that a few hours later they did fix this problem in the commit mentioned in issue opened by the reporter.
(In reply to Rafał Mużyło from comment #8) > Well, OK, there has been a mid-air collision here - comment 6 was after I've > read the initial upstream reply, before I've noticed that a few hours later > they did fix this problem in the commit mentioned in issue opened by the > reporter. Well I still need to fix the dependencies but there is something else going on. Hopefull the upstream commit fixes it. What's the commit url?
This is the commit they mentioned: https://github.com/spesmilo/electrum/commit/9facf2687ae0a1a697673192bd538550690708bf But that commit doesn't fix the issue. Rafał Mużyło is right, they still need to remove "Gtk.DialogFlags.NO_SEPARATOR" according to the gtk docs: https://developer.gnome.org/gtk3/unstable/gtk-migrating-2-to-3.html#id-1.6.3.3.4
Just to beat this dead horse into the ground. Here is what I did to get 1.9.8 to work: 1) emerge electrum -> complains about missing import gi 2) emerge pygobject -> complains about NO_SEPARATOR 3) vi /usr/lib64/python2.7/site-packages/electrum_gui/gtk.py -> Removed the "|Gtk...NO_SEPARATOR" flag, saved file. Electrum 1.9.8 now runs like a champ and has a nice gtk3 look. Hope this helps fix the package until the offical repo gets fixed.
(In reply to Alexander Matviychuk from comment #11) > Just to beat this dead horse into the ground. Here is what I did to get > 1.9.8 to work: > > 1) emerge electrum > -> complains about missing import gi > 2) emerge pygobject > -> complains about NO_SEPARATOR > 3) vi /usr/lib64/python2.7/site-packages/electrum_gui/gtk.py > -> Removed the "|Gtk...NO_SEPARATOR" flag, saved file. > > Electrum 1.9.8 now runs like a champ and has a nice gtk3 look. Hope this > helps fix the package until the offical repo gets fixed. I can make these changes while we wait for upstream.
So, shall anyone fix dependencies or maybe file a separate bug for this?
This should be fixed with 1.9.8-r1. Can you test and reopen if there's still a problem.