Error running launch_hits example
See original GitHub issueHi,
I came over your simple-amt and found it really interesting. I tried to run the launch_hits example
python launch_hits.py \
--html_template=hit_templates/image_sentence.html \
--hit_properties_file=hit_properties/image_sentence.json \
--input_json_file=examples/image_sentence/example_input.txt \
--hit_ids_file=examples/image_sentence/hit_ids.txt
,however, there is an exception from jinja.
Traceback (most recent call last):
File "launch_hits.py", line 42, in <module>
html = template.render(template_params)
File "~/simple-amt/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
return self.environment.handle_exception(exc_info, True)
File "~/simple-amt/.env/local/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
reraise(exc_type, exc_value, tb)
File "./hit_templates/image_sentence.html", line 55, in top-level template code
{% include "simpleamt.html" %}
File "~/simple-amt/.env/local/lib/python2.7/site-packages/jinja2/loaders.py", line 178, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: simpleamt.html
Thanks, Peratham
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
Adobe Analytics - Adobe Experience Platform Mobile SDKs
Launch hit delay ... The number of seconds to wait before Analytics launch hits are sent from the SDK. Ensure that this setting...
Read more >Child Actor Component keeps corrupting it's parent actor .uasset
The project will be running fine (opening, closing, compiling, PIE with no problems), but once this crash happens the project will REFUSE to ......
Read more >Fault Intolerance - Spin
To give a very simple example of an incomplete program specification, ... It doesn't happen very often, but each spacecraft we launch hits...
Read more >Stop Using User Research to Confirm Your Hypotheses - Sprig
In the long run, you'll do yourself a favor by collecting, analyzing, and responding to a ... You use a small or skewed...
Read more >Error in running samples - Jaspersoft Community
Error in running samples. Posted on November 14, 2006 at 7:10pm. I am newbie to jasper reports. I have installed Jasper report 1.2.7,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I made a change to image_sentence.json. Somehow the country property needs a list instead of a string. Right now things work fine.
"country": ["US"],
I changed line 55 in image_sentence.html from
{% include "simpleamt.html" %}
to{% include "hit_templates/simpleamt.html" %}
but now I got this error instead.