GithubHelp home page GithubHelp logo

swestdijk / nvpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cpbotha/nvpy

1.0 1.0 1.0 1.1 MB

Simplenote syncing note-taking application, inspired by Notational Velocity and ResophNotes, but uglier and cross-platformerer.

License: Other

Python 100.00%

nvpy's People

Contributors

brettchalupa avatar cpbotha avatar stefanv avatar swestdijk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

divinedominion

nvpy's Issues

Still trying to sync to SimpleNote

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.

Crash due to bad text byte sequence

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

"Still saving <n> Notes"

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.

"Markdown only accepts unicode input"

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!

Get Note Title from Filename

nvpy currently uses the first line for the title when importing notes which doesn't play nicely with Notational Velocity's setup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.