GTG

Instead of pickle file use remote-ids to store relations

Bug #881956 reported by drorlev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Won't Fix
Medium
Unassigned

Bug Description

GTG should use remote ids to store relations instead of pickle files. It would be more reliable (it is stored in task data).

Original traceback:

Traceback (most recent call last):
  File "/usr/bin/gtg", line 69, in <module>
    sys.exit(GTG.gtg.main(options, args))
  File "/usr/share/gtg/GTG/gtg.py", line 114, in main
    ds, req = core_main_init(options, args)
  File "/usr/share/gtg/GTG/gtg.py", line 141, in core_main_init
    backends_list = BackendFactory().get_saved_backends_list()
  File "/usr/share/gtg/GTG/backends/__init__.py", line 177, in get_saved_backends_list
    self.restore_backend_from_xml(dic)
  File "/usr/share/gtg/GTG/backends/__init__.py", line 161, in restore_backend_from_xml
    dic["backend"] = module.Backend(dic)
  File "/usr/share/gtg/GTG/backends/backend_rtm.py", line 87, in __init__
    SyncEngine())
  File "/usr/share/gtg/GTG/backends/genericbackend.py", line 584, in _load_pickled_file
    return pickle.load(file)
  File "/usr/lib/python2.7/pickle.py", line 1378, in load
    return Unpickler(file).load()
  File "/usr/lib/python2.7/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib/python2.7/pickle.py", line 880, in load_eof
    raise EOFError
EOFError

Revision history for this message
Izidor Matušov (izidor) wrote :

I think this is because backend can't load an helper file. Try to remove your .local/share/gtg/backends directory:

mv .local/share/gtg/backends ~/backends-backup

Does it solve your problem? (I think that some tasks might now appear twice in your todo list)

Changed in gtg:
status: New → Incomplete
Revision history for this message
drorlev (dror-sign) wrote :

Thank you Izidor (yet again :-)

Your suggestion did the trick!

Everything seems to be working fine, there were no duplicates.

To be sure, for me, the problem is solved.

dror

Izidor Matušov (izidor)
summary: - GTG-daily won't start in Ubuntu 11.10 on old computer
+ GTG does not start without Backend's pickle file
Changed in gtg:
status: Incomplete → Confirmed
importance: Undecided → Critical
milestone: none → 0.3
Izidor Matušov (izidor)
description: updated
Izidor Matušov (izidor)
summary: - GTG does not start without Backend's pickle file
+ Instead of pickle file use remote-ids to store relations
description: updated
Changed in gtg:
assignee: nobody → Izidor Matušov (izidor)
Izidor Matušov (izidor)
Changed in gtg:
assignee: Izidor Matušov (izidor) → nobody
importance: Critical → Medium
milestone: 0.3 → 0.4
Jeff Fortin Tam (kiddo)
Changed in gtg:
status: Confirmed → Won't Fix
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.