Re: Piping or redirecting n.py output

17 views
Skip to first unread message

Alexander Wagner

unread,
Jul 6, 2012, 2:50:41 AM7/6/12
to Note Taking Simplified
Sorry, that went straight to Dan rather than the email list.

On 6/07/12 3:45 PM, Alexander Wagner wrote:
> Hi Dan,
>
> Piping or redirecting output from n.py -f <word> -dn with n = 2, 3, 6,
> and 7 does not work on my Mac. Is this a known issue?
>
> E.g.
>
> $ n.py -f visit -d3 | grep connect
> Traceback (most recent call last):
> File "/Library/Frameworks/Python.framework/Versions/2.7/bin/n.py",
> line 5, in <module>
> pkg_resources.run_script('nts==82', 'n.py')
> File "build/bdist.macosx-10.6-intel/egg/pkg_resources.py", line 489,
> in run_script
> File "build/bdist.macosx-10.6-intel/egg/pkg_resources.py", line
> 1207, in run_script
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nts-82-py2.7.egg/EGG-INFO/scripts/n.py",
> line 17, in <module>
> main()
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nts-82-py2.7.egg/EGG-INFO/scripts/n.py",
> line 14, in main
> nts.ntsData.main()
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nts-82-py2.7.egg/nts/ntsData.py",
> line 1010, in main
> print_tree(lofl)
> File
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nts-82-py2.7.egg/nts/ntsData.py",
> line 542, in print_tree
> print line
> UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 828-830: ordinal not in range(128)
>
> Many thanks,
> Alex

Reply all
Reply to author
Forward
0 new messages