Quick add feature: traceback

6 views
Skip to first unread message

Jostein Berntsen

unread,
Nov 20, 2010, 4:13:08 AM11/20/10
to notetaking...@googlegroups.com
The quick add option seems to work right the first time, but the second
time I use it nts gives this traceback:

jostein@josteinb:~/.nts/data> n.py -q
Traceback (most recent call last):
File "/usr/local/bin/n.py", line 5, in <module>
pkg_resources.run_script('nts==67', 'n.py')
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 489, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1207, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.6/site-packages/nts-67-py2.6.egg/EGG-INFO/scripts/n.py", line 17, in <module>
main()
File "/usr/local/lib/python2.6/site-packages/nts-67-py2.6.egg/EGG-INFO/scripts/n.py", line 14, in main
nts.ntsData.main()
File "/usr/local/lib/python2.6/site-packages/nts-67-py2.6.egg/nts/ntsData.py", line 952, in main
get_note(True)
File "/usr/local/lib/python2.6/site-packages/nts-67-py2.6.egg/nts/ntsData.py", line 800, in get_note
noteAdd(rp, lines)
File "/usr/local/lib/python2.6/site-packages/nts-67-py2.6.egg/nts/ntsData.py", line 648, in noteAdd
fo.writelines(["%s\n" % x.rstrip('\n') for x in new_lines])
File "/usr/lib/python2.6/codecs.py", line 690, in writelines
return self.writer.writelines(list)
File "/usr/lib/python2.6/codecs.py", line 359, in writelines
self.write(''.join(list))
File "/usr/lib/python2.6/codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)

Jostein


Dan Graham

unread,
Nov 20, 2010, 10:01:11 AM11/20/10
to Note Taking Simplified
This is the same as the add problem. Fixed (hopefully) in 68.

Jostein Berntsen

unread,
Nov 20, 2010, 10:11:31 AM11/20/10
to Note Taking Simplified
Tested v.68 and this seems to work fine for both the add and quick add
features now. Thanks!


Jostein

> --
> You received this message because you are subscribed to the Google Groups "Note Taking Simplified" group.
> To post to this group, send email to notetaking...@googlegroups.com.
> To unsubscribe from this group, send email to notetakingsimpli...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/notetakingsimplified?hl=en.
>

Reply all
Reply to author
Forward
0 new messages