** Description changed:

+ [ 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")),
+   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'
  ...

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

Title:
  apport hook  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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to