Skip to content

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

@exhuma

Description

@exhuma

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions