johnjosephhorton / WritingSmellDetector

Writing Smell Detector is a tool to help find problems in your writing
Other
7 stars 2 forks source link

Added an entry point for the wsd script. #4

Closed utapyngo closed 11 years ago

johnjosephhorton commented 11 years ago

@utapyngo: Just merged this & re-ran setup.py install - got this error message:

Namespace(abspath=False, include_empty=False, indent=4, no_embed_css=False, outfile='smell.html', output_format='html', reftext=False, rules=[], text='results.tex') INFO: Loaded 21921 bytes from results.tex Traceback (most recent call last): File "/usr/local/bin/wsd.py", line 452, in sys.exit(main(parse_args())) File "/usr/local/bin/wsd.py", line 398, in main html = prulesets.to_html(not args.no_embed_css, args.include_empty) File "/usr/local/bin/wsd.py", line 241, in to_html template = env.get_template('template.html') File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 719, in get_template return self._load_template(name, self.make_globals(globals)) File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 693, in _load_template template = self.loader.load(self, name, globals) File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 115, in load source, filename, uptodate = self.get_source(environment, name) File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 180, in get_source raise TemplateNotFound(template) jinja2.exceptions.TemplateNotFound: template.html

utapyngo commented 11 years ago

How do you run the script?

johnjosephhorton commented 11 years ago

~$ wsd.py -o smell.html file_to_check.tex

(as opposed to the old python setup.py install way) which was:

WritingSmellDetector $ python wsd.py -o smell.html ~/file_to_check.tex

(which works fine)

utapyngo commented 11 years ago

You are probably running the old script (installed with the wrong setup.py). Try running just

wsd -o smell.html file_to_check.tex 
johnjosephhorton commented 11 years ago

dropped the .py, but getting a different error:

dell writeup (organize_discussion) $ wsd -o smell.html results.tex Traceback (most recent call last): File "/usr/local/bin/wsd", line 9, in load_entry_point('WritingSmellDetector==0.1', 'console_scripts', 'wsd')() TypeError: main() takes exactly 1 argument (0 given) dell writeup (organize_discussion) $

On Thu, Jun 13, 2013 at 10:27 AM, utapyngo notifications@github.com wrote:

You are probably running the old script (installed with the wrong setup.py). Try running just

wsd -o smell.html file_to_check.tex

— Reply to this email directly or view it on GitHubhttps://github.com/johnjosephhorton/WritingSmellDetector/pull/4#issuecomment-19408801 .

utapyngo commented 11 years ago

It looks like the old version of wsd.py is lying directly in your lib\site-packages. Remove it (together with other old files).

johnjosephhorton commented 11 years ago

yep - that solve it!

Can you apply to that job I posed? I'll take it from there.

On Thu, Jun 13, 2013 at 10:31 AM, utapyngo notifications@github.com wrote:

It looks like the old version of wsd.py is laying directly in your lib\site-packages. Remove it (together with other files).

— Reply to this email directly or view it on GitHubhttps://github.com/johnjosephhorton/WritingSmellDetector/pull/4#issuecomment-19409066 .