update-manager needs gir1.2-unity-3.0 to run

Bug #823935 reported by Luis Medinas
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Robert Roth

Bug Description

I didn't have unity installed thus no gir1.2-unity-3.0 and update-manager crashed.

update-manager
ERROR:root:Could not find any typelib for Unity
WARNING:root:can not import unity GI cannot import name Unity
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 108, in <module>
    app = UpdateManager(data_dir, options)
  File "/usr/lib/python2.7/dist-packages/UpdateManager/UpdateManager.py", line 278, in __init__
    self.install_backend = backend.get_backend(self.window_main)
  File "/usr/lib/python2.7/dist-packages/UpdateManager/backend/__init__.py", line 49, in get_backend
    return InstallBackendAptdaemon(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/UpdateManager/backend/InstallBackendAptdaemon.py", line 23, in __init__
    self.unity = UnitySupport()
TypeError: __init__() takes exactly 2 arguments (1 given)

To fix the issue i installed gir1.2-unity-3.0 but i don't think update-manager should depend on unity to run.

Related branches

Robert Roth (evfool)
Changed in update-manager (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Robert Roth (evfool)
Changed in update-manager (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Robert Roth (evfool)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.152.12

---------------
update-manager (1:0.152.12) oneiric; urgency=low

  [ Michael Vogt ]
  * AutoUpgradeTester/UpgradeTestBackendQemu.py:
    - add NonInterative/AddRepoUpgradeImmediately option that allows
      installing test package *before* the test upgrade runs (useful
      for e.g. testing a new apt or dpkg)

  [ Robert Roth ]
  * Added default value to be able to start UpdateManager without
    having gir-unity installed (LP: #823935)
  * Fixed changelog test with the new wording
  * Specify default -1 length for terminal response (LP: #817785)
 -- Michael Vogt <email address hidden> Thu, 11 Aug 2011 17:58:35 +0200

Changed in update-manager (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Bob Wanamaker (rlw-nycap) wrote :

The error message still appears running update-manager (1:0.156.14.12) for precise but the program doesn't crash. The error message is eliminated loading gir1.2-unity-5.0 and gir1.2-dee-1.0. May need a patch to eliminate the search for a once dependent library.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.