You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gs@s ~/scripts $ ./rank-writing.py *.md [ruby-2.1.2]
Traceback (most recent call last):
File "./rank-writing.py", line 56, in <module>
for tup in sorted(map(getSuggestions,args.files),reverse=True):
File "./rank-writing.py", line 53, in getSuggestions
suggestions = list(map(lambda x: getNumSuggestions(x,f_name),programs))
File "./rank-writing.py", line 53, in <lambda>
suggestions = list(map(lambda x: getNumSuggestions(x,f_name),programs))
File "./rank-writing.py", line 39, in getNumSuggestions
out = call(["diction","--suggest",f_name])
File "./rank-writing.py", line 28, in call
p = Popen(cmd,stdout=PIPE,stderr=PIPE)
File "/usr/lib/python3.4/subprocess.py", line 848, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.4/subprocess.py", line 1446, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'diction'
I tried using subset (--aspell, --write-good, --diction).
It would be nice if you had a dependencies section in the README for those interested in trying it out without much python knowledge.
Downloading and compiling aspell, diction, and write-good fixed the issue. aspell write-good diction
Activity
Update README and check for binaries for #2.
bamos commentedon Dec 13, 2014
Good idea! I've added a note to the README and have modified the source code
to give a sane error message if the programs are missing from the PATH.