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

TypeError: load() missing 1 required positional argument: 'Loader' #10

Closed
exhuma opened this issue Aug 11, 2023 · 0 comments · Fixed by #11
Closed

TypeError: load() missing 1 required positional argument: 'Loader' #10

exhuma opened this issue Aug 11, 2023 · 0 comments · Fixed by #11

Comments

@exhuma
Copy link

exhuma commented Aug 11, 2023

Building the image from the current main branch (c62ab87) is non-functional due to a pyyaml exception. The exception appears when running the image that is built from the referenced branch and when a GET is executed on /.

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 2292, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1815, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1718, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.6/dist-packages/flask/_compat.py", line 35, in reraise
    raise value
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1813, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.6/dist-packages/flask/app.py", line 1799, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.6/dist-packages/flask/views.py", line 88, in view
    return self.dispatch_request(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/flask/views.py", line 158, in dispatch_request
    return meth(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/flasgger/base.py", line 204, in get
    optional_fields, self.process_doc)
  File "/usr/local/lib/python3.6/dist-packages/flasgger/utils.py", line 132, in get_specs
    method, sanitizer, endpoint=rule.endpoint, verb=verb)
  File "/usr/local/lib/python3.6/dist-packages/flasgger/utils.py", line 528, in parse_docstring
    swag = yaml.load(full_doc[yaml_sep + 4:])
TypeError: load() missing 1 required positional argument: 'Loader'
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

Successfully merging a pull request may close this issue.

1 participant