will not load "KeyError"

Bug #1740434 reported by Frank Dvorak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
parcel-tracker
New
Undecided
Unassigned

Bug Description

I get the following error when trying to load parcel-tracker

/usr/lib/python2.7/dist-packages/parcel_tracker/__init__.py:26: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk # pylint: disable=E0611
/usr/lib/python2.7/dist-packages/gevent/builtins.py:93: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  result = _import(*args, **kwargs)
/usr/lib/python2.7/dist-packages/gevent/builtins.py:93: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.
  result = _import(*args, **kwargs)
Traceback (most recent call last):
  File "/usr/bin/parcel-tracker", line 49, in <module>
    parcel_tracker.main()
  File "/usr/lib/python2.7/dist-packages/parcel_tracker/__init__.py", line 53, in main
    window = ParcelTrackerWindow.ParcelTrackerWindow()
  File "/usr/lib/python2.7/dist-packages/parcel_tracker_lib/Window.py", line 51, in __new__
    new_object.finish_initializing(builder)
  File "/usr/lib/python2.7/dist-packages/parcel_tracker/ParcelTrackerWindow.py", line 76, in finish_initializing
    self.fill_parcels_list()
  File "/usr/lib/python2.7/dist-packages/parcel_tracker/ParcelTrackerWindow.py", line 141, in fill_parcels_list
    [self.insert_parcel_to_list(code, parcel) for code, parcel in self.parcels.iteritems()]
  File "/usr/lib/python2.7/dist-packages/parcel_tracker/ParcelTrackerWindow.py", line 135, in insert_parcel_to_list
    self.fix_parcels_list()
  File "/usr/lib/python2.7/dist-packages/parcel_tracker/ParcelTrackerWindow.py", line 162, in fix_parcels_list
    parcel = self.parcels[i[self.LIST_POSTCODE]]
KeyError: '\xe2\x80\x8b9274890204310802645956'

tried apt-get purge and autoclean then reinstall and it will not work still.

Revision history for this message
Frank Dvorak (fdvorak) wrote :

I got the program to load, but it takes some work and I have to do it in terminal. Sometimes I have to use "sudo apt-get remove parcel-tracker && sudo apt-get purge parcel-tracker && sudo apt-get autoremove" in order for it to work and it will only load in terminal. I also have a problem were USPS will not work and displays errors in the terminal. I do not know what is going on but these problems just started all the sudden after I tried to clone my drive with a drive cloner that failed to clone the drive. Every thing else is fine except my parcel tracker. I do not know why the very latest version will not load and why I am getting these errors unless I use the command I listed and then run it from terminal or use the older version and just launch it in terminal. IF i used the icon it will not work and oif I use the newest version it will not work at all and give me that error unless I remove and reinstall and run from terminal right after.

Revision history for this message
Vsevolod Velichko (torkvemada) wrote :

It seems that your parcels list became corrupted.
Try to execute in your terminal: "gsettings reset-recursively net.launchpad.parcel-tracker"

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.