[Bug 2081948] [NEW] import current_news crashes

errors.ubuntu.com bug bridge 2081948 at bugs.launchpad.net
Wed Sep 25 07:28:28 UTC 2024


Public bug reported:

Traceback (most recent call last):
  File "/usr/bin/update-manager", line 118, in <module>
    app.start_update()
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 223, in start_update
    self.start_available()
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 246, in start_available
    pane = self._make_available_pane(self.cache.install_count
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 320, in _make_available_pane
    return UpdatesAvailable(self, header, desc, need_reboot)
  File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 371, in __init__
    from uaclient.api.u.apt_news.current_news.v1 import current_news
  File "/usr/lib/python3/dist-packages/uaclient/api/u/apt_news/current_news/v1.py", line 10, in <module>
    class CurrentNewsResult(DataObject, AdditionalInfo):
  File "/usr/lib/python3/dist-packages/uaclient/api/u/apt_news/current_news/v1.py", line 12, in CurrentNewsResult
    Field(
TypeError: __init__() got an unexpected keyword argument 'doc'

------------

The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager.  This problem was most recently seen with package version 1:20.04.10.21, the problem page at https://errors.ubuntu.com/problem/de1d76ce88835b9399b705a382248ad8be0efff4 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 and are a software developer, you can request it at http://forms.canonical.com/reports/.

** Affects: ubuntu-advantage-tools (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: update-manager (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: ubuntu-advantage-tools (Ubuntu Focal)
     Importance: Undecided
         Status: New

** Affects: update-manager (Ubuntu Focal)
     Importance: High
         Status: Confirmed


** Tags: focal

-- 
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/2081948

Title:
  import current_news crashes

Status in ubuntu-advantage-tools package in Ubuntu:
  New
Status in update-manager package in Ubuntu:
  New
Status in ubuntu-advantage-tools source package in Focal:
  New
Status in update-manager source package in Focal:
  Confirmed

Bug description:
  Traceback (most recent call last):
    File "/usr/bin/update-manager", line 118, in <module>
      app.start_update()
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 223, in start_update
      self.start_available()
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 246, in start_available
      pane = self._make_available_pane(self.cache.install_count
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 320, in _make_available_pane
      return UpdatesAvailable(self, header, desc, need_reboot)
    File "/usr/lib/python3/dist-packages/UpdateManager/UpdatesAvailable.py", line 371, in __init__
      from uaclient.api.u.apt_news.current_news.v1 import current_news
    File "/usr/lib/python3/dist-packages/uaclient/api/u/apt_news/current_news/v1.py", line 10, in <module>
      class CurrentNewsResult(DataObject, AdditionalInfo):
    File "/usr/lib/python3/dist-packages/uaclient/api/u/apt_news/current_news/v1.py", line 12, in CurrentNewsResult
      Field(
  TypeError: __init__() got an unexpected keyword argument 'doc'

  ------------

  The Ubuntu Error Tracker has been receiving reports about a problem regarding update-manager.  This problem was most recently seen with package version 1:20.04.10.21, the problem page at https://errors.ubuntu.com/problem/de1d76ce88835b9399b705a382248ad8be0efff4 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 and are a software developer, you can request it at http://forms.canonical.com/reports/.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2081948/+subscriptions




More information about the foundations-bugs mailing list