Public bug reported:

As we can see in bug 1581940 (attachment HookError_source_mdadm.py) the
apport package hook for mdadm causes a traceback.

Here's the Traceback:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 197, in _run_hook
    symb['add_info'](report, ui)
TypeError: add_info() takes 1 positional argument but 2 were given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport/report.py", line 202, in _run_hook
    symb['add_info'](report)
  File "/usr/share/apport/package-hooks/source_mdadm.py", line 53, in add_info
    report['initrd.files'] = get_initrd_files(initrd_re)
  File "/usr/share/apport/package-hooks/source_mdadm.py", line 30, in 
get_initrd_files
    out = cpio.communicate(fd.read())[0]
  File "/usr/lib/python3.5/subprocess.py", line 1065, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "/usr/lib/python3.5/subprocess.py", line 1681, in _communicate
    self._save_input(input)
  File "/usr/lib/python3.5/subprocess.py", line 1754, in _save_input
    self._input = self._input.encode(self.stdin.encoding)
AttributeError: 'bytes' object has no attribute 'encode'

** Affects: mdadm (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-hook-error xenial yakkety

** Tags added: xenial yakkety

** Summary changed:

- apport package hook for mdam causes a Traceback
+ apport package hook for mdadm causes a Traceback

** Tags added: apport-hook-error

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

Title:
  apport package hook for mdadm causes a Traceback

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1583279/+subscriptions

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

Reply via email to