Skip to content

Mention dependencies somewhere in readme #2

Closed

Description

@youanden
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

  1. bamos commented on Dec 13, 2014

    @bamos
    Owner

    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.

    $ PATH='' /usr/local/bin/python3 ./rank-writing.py rank-writing.py
    Error: 'aspell' not found on PATH. Please install.
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions