← 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'

 

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

** Also affects: ubuntu-advantage-tools (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: ubuntu-advantage-tools (Ubuntu Bionic)
   Importance: Undecided
       Status: New

** Also affects: ubuntu-advantage-tools (Ubuntu Oracular)
   Importance: Undecided
       Status: Confirmed

** Also affects: ubuntu-advantage-tools (Ubuntu Mantic)
   Importance: Undecided
       Status: New

** Also affects: ubuntu-advantage-tools (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Also affects: ubuntu-advantage-tools (Ubuntu Jammy)
   Importance: Undecided
       Status: New

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

-- 
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:
  Confirmed
Status in ubuntu-advantage-tools source package in Xenial:
  New
Status in ubuntu-advantage-tools source package in Bionic:
  New
Status in ubuntu-advantage-tools source package in Focal:
  New
Status in ubuntu-advantage-tools source package in Jammy:
  New
Status in ubuntu-advantage-tools source package in Mantic:
  New
Status in ubuntu-advantage-tools source package in Noble:
  New
Status in ubuntu-advantage-tools source package in Oracular:
  Confirmed

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