Checkbox only recommends python-apport, so it should still run if uninstalled

Bug #430103 reported by Marc Tardif on 2009-09-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Low
Marc Tardif

Bug Description

Checkbox currently only recommends the python-apport package. If it is uninstalled, it will fail with the following traceback. Instead, it should make a best effort to use the apport.ui module only when it is available.

Traceback (most recent call last):
  File "./run", line 40, in <module>
    main()
  File "./run", line 35, in main
    application = manager.create_application(sys.argv)
  File "/home/cr3/src/checkbox/trunk/checkbox/application.py", line 142, in create_application
    return self.application_factory(config)
  File "/home/cr3/src/checkbox/trunk/checkbox/application.py", line 53, in __init__
    self.reactor, self.registry)
  File "/home/cr3/src/checkbox/trunk/checkbox/plugin.py", line 40, in __init__
    for module in section.load_modules():
  File "/home/cr3/src/checkbox/trunk/checkbox/component.py", line 157, in load_modules
    module = self.load_module(name)
  File "/home/cr3/src/checkbox/trunk/checkbox/component.py", line 112, in load_module
    exec open(filename) in globals
  File "./plugins/apport_prompt.py", line 21, in <module>
    from apport.ui import UserInterface
ImportError: No module named apport.ui

Related branches

Marc Tardif (cr3) on 2009-09-15
Changed in checkbox:
assignee: nobody → Marc Tardif (cr3)
importance: Undecided → Low
milestone: none → 0.8-alpha6
status: New → Fix Committed
Marc Tardif (cr3) on 2009-10-27
Changed in checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers