Comment 0 for bug 1031876

Revision history for this message
Chris Wilson (notgary-deactivatedaccount) wrote : Crash on startup when no ~/.config/accomplishments/.accomplishments present

After installing the latest daily build, I followed the instructions on this part of the wiki to clean out my settings before starting, which included the deletion on several files and folders. When subsequently trying to start accomplishments-viewer, I get the following output:

notgary@ubuntu:~/Other Projects$ accomplishments-viewer
ERROR:root:Could not find any typelib for GwibberGtk
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `EditExtrainfoDialog' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/AccomplishmentsViewerWindow.py", line 861, in opp_app_updated
    self.update_views(None)
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/AccomplishmentsViewerWindow.py", line 751, in update_views
    icon = GdkPixbuf.Pixbuf.new_from_file_at_size(str(acc["iconpath"]), 90, 90)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 72, in constructor
    return info.invoke(cls, *args, **kwargs)
gi._glib.GError: Failed to open file '/home/notgary/.cache/accomplishments/trophyimages/ubuntu-community/askubuntu-bronze-opportunity.png': No such file or directory
Traceback (most recent call last):
  File "/usr/bin/accomplishments-viewer", line 42, in <module>
    accomplishments_viewer.main()
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/__init__.py", line 40, in main
    window = AccomplishmentsViewerWindow.AccomplishmentsViewerWindow()
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer_lib/Window.py", line 35, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/AccomplishmentsViewerWindow.py", line 241, in finish_initializing
    self.check_and_ask_for_info()
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/AccomplishmentsViewerWindow.py", line 297, in check_and_ask_for_info
    self.check_for_extra_info_required()
  File "/usr/lib/python2.7/dist-packages/accomplishments_viewer/AccomplishmentsViewerWindow.py", line 1030, in check_for_extra_info_required
    self.libaccom.write_config_file_item("config", "extrainfo_seen", 1)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.IOError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.7/dist-packages/accomplishments/daemon/dbusapi.py", line 144, in write_config_file_item
  File "/usr/lib/python2.7/dist-packages/accomplishments/daemon/api.py", line 508, in write_config_file_item
    value))
IOError: [Errno 2] No such file or directory: '/home/notgary/.config/accomplishments/.accomplishments'

The last line indicates that there should be some sort of check carried out for the existence of the .accomplishments file before attempting to open it, creating it if it fails.