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

Add hook for flask_restx missing template files. #47

Closed
mrf345 opened this issue Sep 13, 2020 · 0 comments · Fixed by #48
Closed

Add hook for flask_restx missing template files. #47

mrf345 opened this issue Sep 13, 2020 · 0 comments · Fixed by #48
Labels

Comments

@mrf345
Copy link
Contributor

mrf345 commented Sep 13, 2020

Which library is the hook for?

flask_restx

Have you gotten the library to work with pyinstaller?

By adding a hook file to include the extension files.

Additional context

Traceback (most recent call last):
  File "flask/app.py", line 2292, in wsgi_app
  File "flask/app.py", line 1815, in full_dispatch_request
  File "flask_restx/api.py", line 639, in error_router
  File "flask/app.py", line 1718, in handle_user_exception
  File "flask/_compat.py", line 35, in reraise
  File "flask/app.py", line 1813, in full_dispatch_request
  File "flask/app.py", line 1799, in dispatch_request
  File "flask_restx/api.py", line 426, in render_doc
  File "flask_restx/apidoc.py", line 38, in ui_for
  File "flask/templating.py", line 134, in render_template
  File "jinja2/environment.py", line 869, in get_or_select_template
  File "jinja2/environment.py", line 830, in get_template
  File "jinja2/environment.py", line 804, in _load_template
  File "jinja2/loaders.py", line 113, in load
  File "flask/templating.py", line 58, in get_source
  File "flask/templating.py", line 86, in _get_source_fast
jinja2.exceptions.TemplateNotFound: swagger-ui.html
mrf345 added a commit to mrf345/pyinstaller-hooks-contrib that referenced this issue Sep 13, 2020
mrf345 added a commit to mrf345/pyinstaller-hooks-contrib that referenced this issue Sep 13, 2020
mrf345 added a commit to mrf345/pyinstaller-hooks-contrib that referenced this issue Sep 13, 2020
Legorooj pushed a commit that referenced this issue Sep 13, 2020
Resolves #47

Co-authored-by: Brénainn Woodsend <30940778+bwoodsend@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant