swestdijk / nvpy Goto Github PK
View Code? Open in Web Editor NEWThis project forked from cpbotha/nvpy
Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
License: Other
This project forked from cpbotha/nvpy
Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.
License: Other
I found nvpy-example.cfg, copied it to ~/.nvpy.cfg, and changed these two lines:
notes_as_txt = 1
txt_path = Dropbox/notes
I then ran nvpy.py and it tried to log in to SimpleNote, so I figured I was doing something wrong. I looked through the code and in nvpy.py the notes_as_txt attribute was getting set properly to 1. I followed it through a bit to note_db.py where notes_as_txt was still set to 1.
The 'txtfiles' list properly reads the list of my text files and it logs the message about "new text files found, starting a full sync" but then it goes off to SimpleNote and fails because it can't log in.
I tried deleting the simplenote user/pass entries from ~/.nvpy.cfg but that didn't help.
Dump:
File "/usr/local/bin/nvpy", line 9, in <module>
load_entry_point('nvpy==0.9.1', 'gui_scripts', 'nvpy')()
File "/usr/local/lib/python2.7/dist-packages/nvpy/nvpy.py", line 624, in main
controller = Controller()
File "/usr/local/lib/python2.7/dist-packages/nvpy/nvpy.py", line 262, in __init__
self.sync_full()
File "/usr/local/lib/python2.7/dist-packages/nvpy/nvpy.py", line 608, in sync_full
sync_from_server_errors = self.notes_db.sync_full()
File "/usr/local/lib/python2.7/dist-packages/nvpy/notes_db.py", line 506, in sync_full
uret = self.simplenote.update_note(n)
File "/usr/local/lib/python2.7/dist-packages/nvpy/simplenote.py", line 123, in update_note
note["content"] = unicode(note["content"], 'utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0x93 in position 743: invalid start byte
The first time I ran nvpy against my directory of text notes, it gave me a message like this on exit:
"Are you sure you want to exit? I'm still saving 2896 notes."
Is this a lingering attempt to sync to SimpleNote?
I didn't get this error the second time I ran nvpy.
Possibly because my notes are all ASCII text notes? I got this when pressing CTRL-M to see Markdown preview.
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1413, in call
return self.func(*args)
File "/home/ilesm/projects/nvpy-swestdijk/nvpy/view.py", line 902, in cmd_markdown
self.notify_observers('command:markdown', None)
File "/home/ilesm/projects/nvpy-swestdijk/nvpy/utils.py", line 177, in notify_observers
o(self, evt_type, evt)
File "/home/ilesm/projects/nvpy-swestdijk/nvpy/nvpy.py", line 409, in observer_view_markdown
fn = self.helper_markdown_to_html()
File "/home/ilesm/projects/nvpy-swestdijk/nvpy/nvpy.py", line 353, in helper_markdown_to_html
html = markdown.markdown(c)
File "/usr/local/lib/python2.7/dist-packages/markdown/init.py", line 401, in markdown
return md.convert(text)
File "/usr/local/lib/python2.7/dist-packages/markdown/init.py", line 271, in convert
source = unicode(source)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128). -- Note: Markdown only accepts unicode input!
nvpy currently uses the first line for the title when importing notes which doesn't play nicely with Notational Velocity's setup.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.