Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/sphinx/cmdline.py", line 306, in main

app.build(opts.force_all, filenames)


 "/usr/lib/python3.6/site-packages/sphinx/application.py", line 338, in build

self.builder.build_update()


 "/usr/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 323, in build_update

self.build(['__all__'], to_build)


 "/usr/lib/python3.6/site-packages/sphinx/builders/__init__.py", line 394, in build

self.write(docnames, list(updated_docnames), method)


 "/usr/lib/python3.6/site-packages/sphinx/builders/manpage.py", line 102, in write

docwriter.write(largetree, destination)


 "/usr/lib/python3.6/site-packages/docutils/writers/__init__.py", line 80, in write

self.translate()


 "/usr/lib/python3.6/site-packages/sphinx/writers/manpage.py", line 45, in translate

self.document.walkabout(visitor)


 "/usr/lib/python3.6/site-packages/docutils/nodes.py", line 174, in walkabout

if child.walkabout(visitor):


 "/usr/lib/python3.6/site-packages/docutils/nodes.py", line 174, in walkabout

if child.walkabout(visitor):


 "/usr/lib/python3.6/site-packages/docutils/nodes.py", line 174, in walkabout

if child.walkabout(visitor):

[Previous line repeated 3 more times]


 "/usr/lib/python3.6/site-packages/docutils/nodes.py", line 166, in walkabout

visitor.dispatch_visit(self)


 "/usr/lib/python3.6/site-packages/docutils/nodes.py", line 1882, in dispatch_visit

return method(node)


 "/usr/lib/python3.6/site-packages/docutils/writers/manpage.py", line 622, in visit_entry

'"table cell spanning" not supported', base_node=node)


 "/usr/lib/python3.6/site-packages/docutils/utils/__init__.py", line 220, in warning

return self.system_message(self.WARNING_LEVEL, *args, **kwargs)


 "/usr/lib/python3.6/site-packages/docutils/utils/__init__.py", line 191, in system_message

self.stream.write(msg.astext() + '\n')


 "/usr/lib/python3.6/site-packages/docutils/utils/error_reporting.py", line 203, in write

self.encoding_errors))


 "/usr/lib/python3.6/site-packages/sphinx/util/nodes.py", line 45, in write

self.warnfunc(self._re.sub(b'\1:', text), None, '')
TypeError: cannot use a string pattern on a bytes-like object

Traceback (most recent call last):


 "/Users/vishalnagda/development/4front-backend/app/client_app/views.py", line 1741, in export_partner_pdf

pdf = pisa.pisaDocument(BytesIO(html.encode("ISO-8859-1")), result)


 "/Users/vishalnagda/.virtualenvs/4front-backend/lib/python3.7/site-packages/xhtml2pdf/document.py", line 97, in pisaDocument

encoding, context=context, xml_output=xml_output)


 "/Users/vishalnagda/.virtualenvs/4front-backend/lib/python3.7/site-packages/xhtml2pdf/document.py", line 59, in pisaStory

pisaParser(src, context, default_css, xhtml, encoding, xml_output)


 "/Users/vishalnagda/.virtualenvs/4front-backend/lib/python3.7/site-packages/xhtml2pdf/parser.py", line 759, in pisaParser

pisaLoop(document, context)


 "/Users/vishalnagda/.virtualenvs/4front-backend/lib/python3.7/site-packages/xhtml2pdf/parser.py", line 700, in pisaLoop

pisaLoop(node, context, path, **kw)


 "/Users/vishalnagda/.virtualenvs/4front-backend/lib/python3.7/site-packages/xhtml2pdf/parser.py", line 644, in pisaLoop

pisaLoop(nnode, context, path, **kw)


 "/Users/vishalnagda/.virtualenvs/4front-backend/lib/python3.7/site-packages/xhtml2pdf/parser.py", line 644, in pisaLoop

pisaLoop(nnode, context, path, **kw)


 "/Users/vishalnagda/.virtualenvs/4front-backend/lib/python3.7/site-packages/xhtml2pdf/parser.py", line 644, in pisaLoop

pisaLoop(nnode, context, path, **kw)

[Previous line repeated 7 more times]


 "/Users/vishalnagda/.virtualenvs/4front-backend/lib/python3.7/site-packages/xhtml2pdf/parser.py", line 577, in pisaLoop

CSS2Frag(context, kw, isBlock)


 "/Users/vishalnagda/.virtualenvs/4front-backend/lib/python3.7/site-packages/xhtml2pdf/parser.py", line 356, in CSS2Frag

c.frag.width = "".join(toList(c.cssAttr["width"][0]))
TypeError: 'CSSTerminalFunction' object is not subscriptable
