Add function in v.67

6 views
Skip to first unread message

Jostein Berntsen

unread,
Nov 20, 2010, 4:11:30 AM11/20/10
to notetaking...@googlegroups.com
The add function in the new version 67 seems to give this traceback? Am
I using this incorrectly?

----------------------------------------------------------------
Enter the number of an existing file or the relative path
of an new file to which the new note should be appended.
----------------------------------------------------------------
> test/tt.x
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 955, in main
get_note()
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 18: ordinal not in range(128)


Jostein


Dan Graham

unread,
Nov 20, 2010, 9:27:04 AM11/20/10
to Note Taking Simplified
Thanks for pointing this out. I forgot to apply 'encoding' to the
input lines. It should be fixed in 68 which is available now.
Reply all
Reply to author
Forward
0 new messages