Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when use --report-html #25

Closed
dunossauro opened this issue Aug 27, 2018 · 4 comments
Closed

Error when use --report-html #25

dunossauro opened this issue Aug 27, 2018 · 4 comments

Comments

@dunossauro
Copy link

Hello everybody.

I'm trying use HTML report using the flag --report-html and receive a template not found. I find the template on master branch and a found the instruction:

templates_path = os.path.join(os.path.dirname(__file__), 'templates')

I'm use the version:

$ mut.py --version
mut.py 0.5.1
  File "/.../.local/share/virtualenvs/venv/lib/python3.6/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: detail.html

After that a try clone the repository and paste the templates path in my venv and works good.

After that a check the setup file and maybe can include the sub-path using package_data parameter in setup.py to copy templates path.

Thanks a lot for library and sorry for my english.

❤️

@konradhalas
Copy link
Contributor

@dunossauro thank you for your report! I will check it, I thought it should works after I added templates to MANIFEST.in file.

@phihos could you also reproduce this issue?

@phihos
Copy link
Collaborator

phihos commented Aug 29, 2018

Yes I can reproduce it. @dunossauro Thanks for reporting. I will get to the bottom of this.

@phihos phihos closed this as completed in 1157a95 Sep 26, 2018
phihos added a commit that referenced this issue Sep 26, 2018
Add templates to package_data in setup.py (fixes #25)
@jbean96
Copy link

jbean96 commented Apr 10, 2019

Sorry to re-open this. But I just did a pip install mutpy and it doesn't come with the templates folder. Perhaps the package didn't get updated on PyPI since this fix?

By the way the version that was installed was 0.5.1 and my environment has Python 3.6.8

@phihos
Copy link
Collaborator

phihos commented Apr 16, 2019

Can you try it with the new v0.6.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants