Closed utapyngo closed 11 years ago
How do you run the script?
~$ 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)
You are probably running the old script (installed with the wrong setup.py). Try running just
wsd -o smell.html file_to_check.tex
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
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 .
It looks like the old version of wsd.py
is lying directly in your lib\site-packages
. Remove it (together with other old files).
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 .
@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