cpbotha / nvpy

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
Other
849 stars 114 forks source link

Migrate to the Simperium API #159

Closed yuuki0xff closed 5 years ago

yuuki0xff commented 6 years ago

https://simplenote.com/developers/

yuuki0xff commented 5 years ago

Oops! The Legacy API will stop on October 1, 2018! I will immediately contact SimpleNote support team to get the api key.

ghost commented 5 years ago

I'm so glad you're taking care of this. nvpy is a fantastic program.

yuuki0xff commented 5 years ago

Thanks. I'm glad to hear that.

1 weeks have passed since I contacted. Bit I have not received reply. I contacted again.

yuuki0xff commented 5 years ago

API migration is almost completed. I'm testing the sync behavior.

yuuki0xff commented 5 years ago

Something is wrong... :thinking:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/opt/nvpy/lib/python2.7/lib-tk/Tkinter.py", line 1547, in __call__
    return self.func(*args)
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/view.py", line 1665, in handler_search_entry
    utils.KeyValueObject(value=self.search_entry_var.get()))
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/utils.py", line 212, in notify_observers
    o(self, evt_type, evt)
  File "./nvpy/nvpy.py", line 650, in observer_view_change_entry
    self.notes_list_model.set_list(nn)
  File "./nvpy/nvpy.py", line 222, in set_list
    self.notify_observers('set:list', None)
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/utils.py", line 212, in notify_observers
    o(self, evt_type, evt)
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/view.py", line 1834, in observer_notes_list
    self.set_notes(notes_list_model.list)
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/view.py", line 1936, in set_notes
    self.notes_list.append(o.note, utils.KeyValueObject(tagfound=o.tagfound))
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/view.py", line 455, in append
    modifydate = float(note.get('modifydate'))
TypeError: float() argument must be a string or a number
Exception in Tkinter callback
Traceback (most recent call last):
  File "/opt/nvpy/lib/python2.7/lib-tk/Tkinter.py", line 1547, in __call__
    return self.func(*args)
  File "/opt/nvpy/lib/python2.7/lib-tk/Tkinter.py", line 596, in callit
    func(*args)
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/view.py", line 1547, in handler_housekeeper
    self.notify_observers('keep:house', None)
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/utils.py", line 212, in notify_observers
    o(self, evt_type, evt)
  File "./nvpy/nvpy.py", line 595, in observer_view_keep_house
    nsaved = self.notes_db.save_threaded()
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/notes_db.py", line 568, in save_threaded
    if Note(n).need_save:
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/notes_db.py", line 1026, in need_save
    return float(self['modifydate']) > savedate or float(self['syncdate']) > savedate
KeyError: 'modifydate'
Traceback (most recent call last):
  File "./nvpy/nvpy.py", line 837, in <module>
    main()
  File "./nvpy/nvpy.py", line 833, in main
    controller.main_loop()
  File "./nvpy/nvpy.py", line 381, in main_loop
    self.view.main_loop()
  File "/home/yuuki/repository/github.com/cpbotha/nvpy/nvpy/view.py", line 1837, in main_loop
    self.root.mainloop()
  File "/opt/nvpy/lib/python2.7/lib-tk/Tkinter.py", line 1135, in mainloop
    self.tk.mainloop(n)
  File "/opt/nvpy/lib/python2.7/lib-tk/Tkinter.py", line 1542, in __call__
    def __call__(self, *args):
KeyboardInterrupt
yuuki0xff commented 5 years ago

I can't be reproduced after deleting all local notes. I think this error was caused by broken notes. I will merge because this feature seem to be working.