I believe that an edge case scenario causes this crash
in .21, namely having an old version of the ubuntu-advantage-tools and 
update-manager installed
and then update the former via update-manager. 

When, after being done installing the update, update-manager recalculates
the view, it tries to import current_news again[3], and I figure that it is
importing a new current_news/v1.py[1] but keeping a reference to the old
data_types.py[2] (both provided by ubuntu-advantage-tools), which does not have 
the doc keyword argument.

The version .23 in proposed ignores exceptions to the current_news call,
so the solution to this bug is to just wait for it to be released.

[1]https://github.com/canonical/ubuntu-pro-client/blob/main/uaclient/api/u/apt_news/current_news/v1.py
[2]https://github.com/canonical/ubuntu-pro-client/blob/main/uaclient/data_types.py#L213
[3]https://git.launchpad.net/update-manager/tree/UpdateManager/UpdatesAvailable.py?h=ubuntu/focal#n370

** Changed in: ubuntu-advantage-tools (Ubuntu)
       Status: New => Invalid

** Changed in: ubuntu-advantage-tools (Ubuntu Focal)
       Status: New => Invalid

** Changed in: update-manager (Ubuntu Focal)
     Assignee: (unassigned) => Nathan Teodosio (nteodosio)

** Changed in: update-manager (Ubuntu Focal)
       Status: Confirmed => Fix Committed

** Changed in: update-manager (Ubuntu)
       Status: New => Fix Released

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

Title:
  import current_news crashes

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to