gi._glib.GError: Icon 'deb' not present in theme

Bug #873114 reported by Steve Langasek
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apturl (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Trying to reproduce bug #872146, apturl fails for me with this error:

Traceback (most recent call last):
  File "/usr/bin/apturl-gtk", line 48, in <module>
    sys.exit(apturl.main())
  File "/usr/lib/python2.7/dist-packages/AptUrl/AptUrl.py", line 172, in main
    apturl_list = self.parseArgs()
  File "/usr/lib/python2.7/dist-packages/AptUrl/AptUrl.py", line 151, in parseArgs
    "%s" % str(e))
  File "/usr/lib/python2.7/dist-packages/AptUrl/gtk/GtkUI.py", line 53, in error
    d = self._get_dialog(Gtk.MessageType.ERROR, summary, msg)
  File "/usr/lib/python2.7/dist-packages/AptUrl/gtk/GtkUI.py", line 46, in _get_dialog
    d.set_icon(Gtk.IconTheme.get_default().load_icon('deb', 16, False))
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
gi._glib.GError: Icon 'deb' not present in theme

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: apturl 0.5ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Wed Oct 12 15:31:54 2011
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apturl
UpgradeStatus: Upgraded to oneiric on 2011-09-23 (19 days ago)

Revision history for this message
Steve Langasek (vorlon) wrote :
Revision history for this message
volinthius (volinthius) wrote :

Similar specs (11.10, x86-64) and fixed this by using lookup_icon() instead load_icon() in usr/lib/python2.7/dist-packages/AptUrl/gtk/GtkUI.py. See attached patch for fix.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apturl (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "apturl-deb-icon-lookup.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
volinthius (volinthius) wrote :

Removed the patch because the fix was invalid.

Revision history for this message
Brian Murray (brian-murray) wrote :

The test case from bug 872146 has the following command 'apturl apt:skype:i386'. Using the same command in Precise I was unable to recreate this bug. Are you still able to?

tags: removed: patch
Changed in apturl (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apturl (Ubuntu) because there has been no activity for 60 days.]

Changed in apturl (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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