[Bug 1703365] Re: /usr/bin/update-manager:AttributeError:<lambda>:on_settings_button_clicked:show_settings

Sebastien Bacher seb128 at ubuntu.com
Mon Aug 21 09:56:50 UTC 2017


the patch seems too much, software-properties-gtk works fine under
wayland it's just show_settings() in UpdateManager.py which creates the
issue

        cmd = ["/usr/bin/software-properties-gtk",
               "--open-tab", "2",
               "--toplevel", "%s" % self.get_window().get_xid()

the get_xid() is an x11 specific call, a better workaround would be to
just not add the toplevel argument when used under wayland

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1703365

Title:
  /usr/bin/update-
  manager:AttributeError:<lambda>:on_settings_button_clicked:show_settings

Status in update-manager package in Ubuntu:
  Triaged
Status in update-manager source package in Zesty:
  Confirmed

Bug description:
  Test Case:
  1. Launch update-manager and wait until the main UI is displayed (after sources are refreshed)
  2. Click on "Settings..."

  Expected result
  The Settings dialog is displayed

  Actual result
  It is not displayed and this crash occurs
  Traceback (most recent call last):             
    File "/usr/lib/python3/dist-packages/UpdateManager/Dialogs.py", line 112, in <lambda>        
      button.connect("clicked", lambda x: callback())                                            
    File "/usr/lib/python3/dist-packages/UpdateManager/Dialogs.py", line 127, in on_settings_button_clicked                                                                                     
      self.window_main.show_settings()           
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 196, in show_settings                                                                                            
      "--toplevel", "%s" % self.get_window().get_xid()                                           
  AttributeError: 'GdkWaylandWindow' object has no attribute 'get_xid' 


  The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager.  This problem was most recently seen with package version 1:17.04.3, the problem page at https://errors.ubuntu.com/problem/12e7e8364ae0ad1fe84dc3972adbc9506d7e2f71 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
  If you do not have access to the Ubuntu Error Tracker you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1703365/+subscriptions



More information about the foundations-bugs mailing list