Comment 72 for bug 1013171

Revision history for this message
Edward Donovan (edward.donovan) wrote :

compiz needs the same one-line patch as the last few, and it has another issue, at least on my machine. It appears the 'source_compiz.py' hook needs this import:

  from apport.hookutils import *

And I've added that in my patch. Without it 'ubuntu-bug compiz' throws an exception, saying the function 'command_output' is not defined.

  ERROR: hook /usr/share/apport/package-hooks//source_compiz.py crashed:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/apport/report.py", line 799, in add_hooks_info
      symb['add_info'](self, ui)
    File "/usr/share/apport/package-hooks//source_compiz.py", line 18, in add_info
      report['CompizPlugins'] = command_output(['gconftool-2',
  NameError: global name 'command_output' is not defined

Some apport hooks have the import statement above. Some have just 'import apport.hookutils'. Only the former fixed this on my system. The latter seems to work fine for other packages, but not here. Maybe I'm misssing something; I didn't explore this any further. (Nor did I try to fix bug 777221 while I was in there. :)

Thanks.