← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 2065616] Re: apport hook AttributeError: 'UAConfig' object has no attribute 'data_path'

 

This bug was fixed in the package ubuntu-advantage-tools - 32.1

---------------
ubuntu-advantage-tools (32.1) oracular; urgency=medium

  * d/apparmor: allow access for /etc/os-release on all supported
    profiles (LP: #2065573)
  * apport: get path for timer job status from the correct place (LP: #2065616)

 -- Lucas Moura <lucas.moura@xxxxxxxxxxxxx>  Tue, 14 May 2024 11:22:35
+0200

** Changed in: ubuntu-advantage-tools (Ubuntu Oracular)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/2065616

Title:
  apport hook  AttributeError: 'UAConfig' object has no attribute
  'data_path'

Status in ubuntu-advantage-tools package in Ubuntu:
  Fix Released
Status in ubuntu-advantage-tools source package in Xenial:
  Fix Committed
Status in ubuntu-advantage-tools source package in Bionic:
  Fix Committed
Status in ubuntu-advantage-tools source package in Focal:
  Fix Committed
Status in ubuntu-advantage-tools source package in Jammy:
  Fix Committed
Status in ubuntu-advantage-tools source package in Mantic:
  Fix Committed
Status in ubuntu-advantage-tools source package in Noble:
  Fix Committed
Status in ubuntu-advantage-tools source package in Oracular:
  Fix Released

Bug description:
  [ Impact ]

  The apport hook for ubuntu-advantage-tools is crashing:
  ```
  # ubuntu-bug ubuntu-advantage-tools
  (...)
  .............ERROR: hook /usr/share/apport/package-hooks/source_ubuntu-advantage-tools.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/package-hooks/source_ubuntu-advantage-tools.py", line 29, in add_info
      os.path.basename(cfg.data_path("jobs-status")),
  AttributeError: 'UAConfig' object has no attribute 'data_path'
  ...
  ```
  This produces incomplete bug reports.

  
  [ Test Plan ]

  - run `ubuntu-bug ubuntu-advantage-tools`
  - it should not crash, and you should be able to produce a complete bug report

  [ Where problems could occur ]
  The apport hook is already crashing, meaning it's not collecting all the information we want. Another regression here would not make things worse.

  [ Other Info ]
  Not at this time.


  [ Original Description ]

  In Pro v32, from jammy-proposed, when running `ubuntu-bug ubuntu-
  advantage-tools`:

  # ubuntu-bug ubuntu-advantage-tools

  *** Collecting problem information

  The collected information can be sent to the developers to improve the
  application. This might take a few minutes.
  .............ERROR: hook /usr/share/apport/package-hooks/source_ubuntu-advantage-tools.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook
      symb['add_info'](report, ui)
    File "/usr/share/apport/package-hooks/source_ubuntu-advantage-tools.py", line 29, in add_info
      os.path.basename(cfg.data_path("jobs-status")),
  AttributeError: 'UAConfig' object has no attribute 'data_path'
  ...

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