Traceback (most recent call last):


 "/var/www/venv/tfn/bin/weasyprint", line 6, in <module>

from weasyprint.__main__ import main


 "/var/www/venv/tfn/lib/python3.6/site-packages/weasyprint/__init__.py", line 394, in <module>

from .css import preprocess_stylesheet
# noqa


 "/var/www/venv/tfn/lib/python3.6/site-packages/weasyprint/css/__init__.py", line 25, in <module>

from . import computed_values


 "/var/www/venv/tfn/lib/python3.6/site-packages/weasyprint/css/computed_values.py", line 21, in <module>

from .utils import (


 "/var/www/venv/tfn/lib/python3.6/site-packages/weasyprint/css/utils.py", line 20, in <module>

from ..images import LinearGradient, RadialGradient


 "/var/www/venv/tfn/lib/python3.6/site-packages/weasyprint/images.py", line 17, in <module>

import cairosvg.parser


 "/var/www/venv/tfn/lib/python3.6/site-packages/cairosvg/__init__.py", line 41, in <module>

from . import surface
# noqa


 "/var/www/venv/tfn/lib/python3.6/site-packages/cairosvg/surface.py", line 27, in <module>

from .defs import (


 "/var/www/venv/tfn/lib/python3.6/site-packages/cairosvg/defs.py", line 24, in <module>

from .bounding_box import calculate_bounding_box, is_non_empty_bounding_box


 "/var/www/venv/tfn/lib/python3.6/site-packages/cairosvg/bounding_box.py", line 28, in <module>

from .parser import Tree


 "/var/www/venv/tfn/lib/python3.6/site-packages/cairosvg/parser.py", line 28, in <module>

from defusedxml import ElementTree


 "/var/www/venv/tfn/lib/python3.6/site-packages/defusedxml/ElementTree.py", line 62, in <module>

_XMLParser, _iterparse, _IterParseIterator, ParseError = _get_py3_cls()


 "/var/www/venv/tfn/lib/python3.6/site-packages/defusedxml/ElementTree.py", line 56, in _get_py3_cls

_IterParseIterator = pure_pymod._IterParseIterator
AttributeError: module 'xml.etree.ElementTree' has no attribute '_IterParseIterator'

Traceback (most recent call last):


 "/nix/store/nl9a0l5dvrc3c8y8110qihfcbdzgy5zl-python3.6-flask-0.12/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/nix/store/nl9a0l5dvrc3c8y8110qihfcbdzgy5zl-python3.6-flask-0.12/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/nix/store/nhg8sdk9nwqkghk9xwwb69dybjxbj1gz-python3.6-flask-restplus-0.10.1/lib/python3.6/site-packages/flask_restplus/api.py", line 313, in wrapper

resp = resource(*args, **kwargs)


 "/nix/store/nl9a0l5dvrc3c8y8110qihfcbdzgy5zl-python3.6-flask-0.12/lib/python3.6/site-packages/flask/views.py", line 84, in view

return self.dispatch_request(*args, **kwargs)


 "/nix/store/nhg8sdk9nwqkghk9xwwb69dybjxbj1gz-python3.6-flask-restplus-0.10.1/lib/python3.6/site-packages/flask_restplus/resource.py", line 44, in dispatch_request

resp = meth(*args, **kwargs)


 "/nix/store/nhg8sdk9nwqkghk9xwwb69dybjxbj1gz-python3.6-flask-restplus-0.10.1/lib/python3.6/site-packages/flask_restplus/marshalling.py", line 110, in wrapper

return marshal(resp, self.fields, self.envelope, mask)


 "/nix/store/nhg8sdk9nwqkghk9xwwb69dybjxbj1gz-python3.6-flask-restplus-0.10.1/lib/python3.6/site-packages/flask_restplus/marshalling.py", line 54, in marshal

for k, v in list(fields.items()))
AttributeError: 'SchemaModel' object has no attribute 'items'
