software-store crashed with KeyError in <module>()

Bug #427621 reported by Jono Bacon
48
This bug affects 8 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: software-store

Apport crash.

ProblemType: Crash
Architecture: i386
Date: Thu Sep 10 13:12:12 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/share/software-store/software-store
InterpreterPath: /usr/bin/python2.6
Package: software-store 0.3.1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-store
ProcEnviron:
 LANGUAGE=en_US.UTF-8
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-10.31-generic
PythonArgs: ['/usr/bin/software-store']
SourcePackage: software-store
Title: software-store crashed with KeyError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/pygst.py", line 28, in <module>
     import sys
 KeyError: 'pygst'
Uname: Linux 2.6.31-10-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Jono Bacon (jonobacon) wrote :
tags: removed: need-duplicate-check
Connor Imes (ckimes)
visibility: private → public
Changed in software-store (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This sounds like your python stack was not in a consistent state. Did this happen during a upgrade? Is it reproducable? What does it print if you run it from the commandline?

Changed in software-store (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Stefan Ebner (sebner) wrote :

I can confirm and reproduce the error.
No updates or anything else. Everytime I start software-store it crashes (apport shows up)
*but* software-store doesn't crash really, I can continue using it without problems.

sebner@ubuntu:~$ software-store
0:00:00.022931240 16523 0x8ac32d0 ERROR pyplugin gstpythonplugin.c:267:pygst_require: the pygst module is not available!
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/pygst.py", line 28, in <module>
    import sys
KeyError: 'pygst'

Changed in software-store (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

@Stefan:
Thanks for confirming. What does happen if you run (in a terminal) the following commands:

$ python -c 'import sys'

$ python -c 'import gtk'

$ python -c 'import gst'

It should display nothing for all them but I wonder if that is the case for you as well?

Revision history for this message
Stefan Ebner (sebner) wrote :

Yep, you are right.
No output for any of these commands.

Revision history for this message
Stefan Ebner (sebner) wrote :
Download full text (5.4 KiB)

@Michael:
Interestingly I couldn't reproduce the error yesterday but today after a normal ubuntu start
the bug is still present. Dunno why it fails with pygst. I'm sure the --debug log doesn't show you anything new but I attached it nevertheless:

sebner@ubuntu:~$ software-store --debug
DEBUG:root:adding: Utility
DEBUG:root:adding: Accessibility
DEBUG:root:adding: Development
DEBUG:root:adding: Education
DEBUG:root:adding: Game
DEBUG:root:adding: Graphics
DEBUG:root:adding: Network
DEBUG:root:adding: AudioVideo
DEBUG:root:adding: Office
DEBUG:root:adding: System
DEBUG:root:adding: Application
DEBUG:root:System Tools applications-system Xapian::Query(((<alldocuments> AND ACsystem) AND_NOT ACgame))
DEBUG:root:Universal Access preferences-desktop-accessibility Xapian::Query(((<alldocuments> AND ACaccessibility) AND_NOT ACsettings))
DEBUG:root:Office applications-office Xapian::Query((<alldocuments> AND ACoffice))
DEBUG:root:Sound & Video applications-multimedia Xapian::Query((<alldocuments> AND ACaudiovideo))
DEBUG:root:Internet applications-internet Xapian::Query((<alldocuments> AND ACnetwork))
DEBUG:root:Programming applications-development Xapian::Query((<alldocuments> AND ACdevelopment))
DEBUG:root:Accessories applications-utilities Xapian::Query((((<alldocuments> AND ACutility) AND_NOT ACaccessibility) AND_NOT ACsystem))
DEBUG:root:Other applications-other Xapian::Query((((((((((((((<alldocuments> AND ACapplication) AND_NOT ACcore) AND_NOT ACscreensaver) AND_NOT ((<alldocuments> AND ACsystem) AND_NOT ACgame)) AND_NOT ((<alldocuments> AND ACaccessibility) AND_NOT ACsettings)) AND_NOT (<alldocuments> AND ACoffice)) AND_NOT (<alldocuments> AND ACaudiovideo)) AND_NOT (<alldocuments> AND ACnetwork)) AND_NOT (<alldocuments> AND ACdevelopment)) AND_NOT (((<alldocuments> AND ACutility) AND_NOT ACaccessibility) AND_NOT ACsystem)) AND_NOT (<alldocuments> AND ACgame)) AND_NOT (<alldocuments> AND ACgraphics)) AND_NOT (<alldocuments> AND ACeducation)))
DEBUG:root:Games applications-games Xapian::Query((<alldocuments> AND ACgame))
DEBUG:root:Graphics applications-graphics Xapian::Query((<alldocuments> AND ACgraphics))
DEBUG:root:Education applications-accessories Xapian::Query((<alldocuments> AND ACeducation))
DEBUG:root:view_switcher_activated: <ViewSwitcher object at 0x8de9194 (softwarestore+view+viewswitcher+ViewSwitcher at 0x8f13698)> 0
DEBUG:root:update_app_status_menu
DEBUG:root:CategoriesView.show() called
DEBUG:root:looking for '/usr/share/software-store//templates/CategoriesView.html'
DEBUG:root:icon: <GtkIconInfo at 0x9604a60> /usr/share/icons/gnome/scalable/categories/applications-utilities.svg
DEBUG:root:running script 'addCategory("Accessories","/usr/share/icons/gnome/scalable/categories/applications-utilities.svg")'
DEBUG:root:icon: <GtkIconInfo at 0x9604aa0> /usr/share/icons/Human/48x48/categories/applications-accessories.png
DEBUG:root:running script 'addCategory("Education","/usr/share/icons/Human/48x48/categories/applications-accessories.png")'
DEBUG:root:icon: <GtkIconInfo at 0x9604ae0> /usr/share/icons/Human/scalable/categories/applications-games.svg
DEBUG:root:running script 'addCategory("Games","/usr/share/icons/Human/scalable/cate...

Read more...

Michael Vogt (mvo)
Changed in software-store (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-store - 0.3.8

---------------
software-store (0.3.8) karmic; urgency=low

  * softwarestore/db/update.py:
    - ensure that empty strings are not tried to be translated
      (LP: #432995)
  * softwarestore/view/appdetailsview.py:
    - support config file prompts and media change requests
  * debian/control:
    - add dependency to python-aptdaemon-gtk for the media change
      dialog
  * softwarestore/view/dialogs.py:
    - new DetailsMessageDialog class
  * softwarestore/view/widgets/wkwidget.py:
    - disable webkit plugins (can cause hangs from flash player)
  * software-store:
    - import pygst with pygst.require to ensure that it does not
      fail later (LP: #427621)

 -- Michael Vogt <email address hidden> Tue, 22 Sep 2009 13:51:23 +0200

Changed in software-store (Ubuntu):
status: Fix Committed → Fix Released
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.