handle_io_errors

296 views
Skip to first unread message

Cameron Sim

unread,
Apr 3, 2015, 4:13:46 PM4/3/15
to sphin...@googlegroups.com
Did the following...
pip install Sphinx
sphinx-quickstart
make html...

and got the below...please help.

# Sphinx version: 1.2.3

# Python version: 2.7.9

# Docutils version: 0.13 repository

# Jinja2 version: 2.7.3

# Loaded extensions:

#   sphinx.ext.autodoc from /Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/ext/autodoc.pyc

#   sphinx.ext.oldcmarkup from /Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/ext/oldcmarkup.pyc

Traceback (most recent call last):

  File "/Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/cmdline.py", line 254, in main

    app.build(force_all, filenames)

  File "/Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/application.py", line 220, in build

    self.builder.build_update()

  File "/Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 214, in build_update

    'out of date' % len(to_build))

  File "/Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 234, in build

    purple, length):

  File "/Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 134, in status_iterator

    for item in iterable:

  File "/Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/environment.py", line 478, in update_generator

    self.read_doc(docname, app=app)

  File "/Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/environment.py", line 626, in read_doc

    pub.set_source(None, src_path)

  File "/Users/cameronsim/anaconda/lib/python2.7/site-packages/docutils/core.py", line 183, in set_source

    encoding=self.settings.input_encoding)

  File "/Users/cameronsim/anaconda/lib/python2.7/site-packages/sphinx/environment.py", line 597, in __init__

    FileInput.__init__(self_, *args, **kwds)

TypeError: __init__() got an unexpected keyword argument 'handle_io_errors'

Guenter Milde

unread,
Apr 12, 2015, 6:01:06 AM4/12/15
to sphin...@googlegroups.com
On 2015-04-03, Cameron Sim wrote:

> [-- Type: text/plain, Encoding: --]

> Did the following...
> pip install Sphinx
> sphinx-quickstart
> make html...

> and got the below...please help.

> # Sphinx version: 1.2.3

> # Python version: 2.7.9

> # Docutils version: 0.13 repository

Changes Since 0.12
==================

* docutils/io.py

- removed the `handle_io_errors` option from io.FileInput/Output.

This change was announced in March 2012 and `handle_io_errors` is ignored
since then.

However, as Sphinx still sets it, it is now reincluded (deprecated and
without any effect) in the repository.


Updating Docutils to the latest repository status should solve the issue.

Günter

Takayuki Shimizukawa

unread,
Apr 12, 2015, 6:05:31 AM4/12/15
to sphin...@googlegroups.com
Thanks Günter, please see also: https://github.com/sphinx-doc/sphinx/issues/1834


--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Guenter Milde

unread,
Apr 13, 2015, 4:54:01 AM4/13/15
to sphin...@googlegroups.com
Dear Takayuki,

On 2015-04-12, Takayuki Shimizukawa wrote:

> Thanks Günter, please see also:
> https://github.com/sphinx-doc/sphinx/issues/1834

Thank you for fixing.

Docutils will postpone the removal of handle_io_errors to 0.14 or 0.15 in
order to get a smooth transition for users.

Günter

Takayuki Shimizukawa

unread,
Apr 13, 2015, 5:07:59 AM4/13/15
to sphin...@googlegroups.com
On Mon, Apr 13, 2015 at 5:54 PM Guenter Milde <mi...@users.sf.net> wrote:
Docutils will postpone the removal of handle_io_errors to 0.14 or 0.15 in
order to get a smooth transition for users.

Great! Thanks!!
 
Reply all
Reply to author
Forward
0 new messages