Unable to build docs in Python 3: encoding error

Issue #318 new
Joel Cross
created an issue

I receive the following error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/cmdline.py", line 304, in main
    app.build(args.force_all, filenames)
  File "/usr/lib/python3/dist-packages/sphinx/application.py", line 325, in build
    self.builder.build_all()
  File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 295, in build_all
    self.build(None, summary='all source files', method='all')
  File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 351, in build
    updated_docnames = set(self.env.update(self.config, self.srcdir, self.doctreedir))
  File "/usr/lib/python3/dist-packages/sphinx/environment/__init__.py", line 565, in update
    self._read_serial(docnames, self.app)
  File "/usr/lib/python3/dist-packages/sphinx/environment/__init__.py", line 584, in _read_serial
    self.read_doc(docname, app)
  File "/usr/lib/python3/dist-packages/sphinx/environment/__init__.py", line 659, in read_doc
    doctree = read_doc(self.app, self, self.doc2path(docname))
  File "/usr/lib/python3/dist-packages/sphinx/io.py", line 294, in read_doc
    pub.publish()
  File "/usr/lib/python3/dist-packages/docutils/core.py", line 218, in publish
    self.apply_transforms()
  File "/usr/lib/python3/dist-packages/docutils/core.py", line 199, in apply_transforms
    self.document.transformer.apply_transforms()
  File "/usr/lib/python3/dist-packages/sphinx/transforms/__init__.py", line 96, in apply_transforms
    Transformer.apply_transforms(self)
  File "/usr/lib/python3/dist-packages/docutils/transforms/__init__.py", line 171, in apply_transforms
    transform.apply(**kwargs)
  File "/usr/lib/python3/dist-packages/sphinx/transforms/__init__.py", line 129, in apply
    ref.replace_self(nodes.Text(text, text))
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 339, in __new__
    raise TypeError('expecting str data, not bytes')
TypeError: expecting str data, not bytes