Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572660 - dev-python/click USE=doc - NameError: name 'unicode' is not defined
Summary: dev-python/click USE=doc - NameError: name 'unicode' is not defined
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 575536
Blocks:
  Show dependency tree
 
Reported: 2016-01-23 05:46 UTC by Andrey Grozin
Modified: 2016-02-24 08:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Grozin gentoo-dev 2016-01-23 05:46:09 UTC
* python3_5: running distutils-r1_run_phase python_compile_all
make -j8 -C docs html 
make: Entering directory '/var/tmp/portage/dev-python/click-6.2/work/click-6.2/docs'
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.3.4
making output directory...
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 23 source files that are out of date
updating environment: 23 added, 0 changed, 0 removed
reading sources... [  4%] advanced

Exception occurred:
  File "/var/tmp/portage/dev-python/click-6.2/work/click-6.2/docs/clickdoctools.py", line 73, in isolation
    if isinstance(input, unicode):
NameError: name 'unicode' is not defined
The full traceback has been saved in /var/tmp/portage/dev-python/click-6.2/temp/sphinx-err-76pjrmyl.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Makefile:40: recipe for target 'html' failed
make: *** [html] Error 1

/var/tmp/portage/dev-python/click-6.2/temp/sphinx-err-76pjrmyl.log:

# Sphinx version: 1.3.4
# Python version: 3.5.1 (CPython)
# Docutils version: 0.12 release
# Jinja2 version: 2.8
# Last messages:
#   Running Sphinx v1.3.4
#   making output directory...
#   loading pickled environment...
#   not yet created
#   building [mo]: targets for 0 po files that are out of date
#   building [html]: targets for 23 source files that are out of date
#   updating environment:
#   23 added, 0 changed, 0 removed
#   reading sources... [  4%] advanced
# Loaded extensions:
#   sphinx.ext.autodoc (1.3.4) from /usr/lib64/python3.5/site-packages/sphinx/ext/autodoc.py
#   clickdoctools (unknown version) from /var/tmp/portage/dev-python/click-6.2/work/click-6.2/docs/clickdoctools.py
#   alabaster (0.7.7) from /usr/lib64/python3.5/site-packages/alabaster/__init__.py
Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/sphinx/cmdline.py", line 244, in main
    app.build(opts.force_all, filenames)
  File "/usr/lib64/python3.5/site-packages/sphinx/application.py", line 266, in build
    self.builder.build_update()
  File "/usr/lib64/python3.5/site-packages/sphinx/builders/__init__.py", line 251, in build_update
    'out of date' % len(to_build))
  File "/usr/lib64/python3.5/site-packages/sphinx/builders/__init__.py", line 265, in build
    self.doctreedir, self.app))
  File "/usr/lib64/python3.5/site-packages/sphinx/environment.py", line 618, in update
    self._read_serial(docnames, app)
  File "/usr/lib64/python3.5/site-packages/sphinx/environment.py", line 638, in _read_serial
    self.read_doc(docname, app)
  File "/usr/lib64/python3.5/site-packages/sphinx/environment.py", line 791, in read_doc
    pub.publish()
  File "/usr/lib64/python3.5/site-packages/docutils/core.py", line 217, in publish
    self.settings)
  File "/usr/lib64/python3.5/site-packages/sphinx/environment.py", line 128, in read
    self.parse()
  File "/usr/lib64/python3.5/site-packages/docutils/readers/__init__.py", line 78, in parse
    self.parser.parse(self.input, document)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/__init__.py", line 172, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 170, in run
    input_source=document['source'])
  File "/usr/lib64/python3.5/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/usr/lib64/python3.5/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 2726, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection
    node=section_node, match_titles=True)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse
    node=node, match_titles=match_titles)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib64/python3.5/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/usr/lib64/python3.5/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 2726, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 395, in new_subsection
    node=section_node, match_titles=True)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 282, in nested_parse
    node=node, match_titles=match_titles)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib64/python3.5/site-packages/docutils/statemachine.py", line 239, in run
    context, state, transitions)
  File "/usr/lib64/python3.5/site-packages/docutils/statemachine.py", line 460, in check_line
    return method(match, context, next_state)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 2299, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 2311, in explicit_construct
    return method(self, expmatch)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 2054, in directive
    directive_class, match, type_name, option_presets)
  File "/usr/lib64/python3.5/site-packages/docutils/parsers/rst/states.py", line 2103, in run_directive
    result = directive_instance.run()
  File "/usr/lib64/python3.5/site-packages/sphinx/domains/__init__.py", line 197, in run
    return BaseDirective.run(self)
  File "/var/tmp/portage/dev-python/click-6.2/work/click-6.2/docs/clickdoctools.py", line 245, in run
    rv = runner.run('\n'.join(self.content))
  File "/var/tmp/portage/dev-python/click-6.2/work/click-6.2/docs/clickdoctools.py", line 186, in run
    'isolated_filesystem': isolated_filesystem,
  File "<docs>", line 1, in <module>
  File "/var/tmp/portage/dev-python/click-6.2/work/click-6.2/docs/clickdoctools.py", line 172, in invoke
    with isolation(input=input, env=env) as output:
  File "/usr/lib64/python3.5/contextlib.py", line 59, in __enter__
    return next(self.gen)
  File "/var/tmp/portage/dev-python/click-6.2/work/click-6.2/docs/clickdoctools.py", line 73, in isolation
    if isinstance(input, unicode):
NameError: name 'unicode' is not defined
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2016-01-25 08:31:26 UTC
commit bc36914096a67a2449d3a215b42c24e899dc3f2f
Author: Justin Lecher <jlec@gentoo.org>
Date:   Mon Jan 25 09:07:32 2016 +0100

    dev-python/click: Build docs using python2

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=572660

    Package-Manager: portage-2.2.27
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc36914096a67a2449d3a215b42c24e899dc3f2f
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-02-24 04:55:01 UTC
Same in stable 5.1. We apparently now need to stabilise something newer.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2016-02-24 08:44:24 UTC
(In reply to Jeroen Roovers from comment #2)
> Same in stable 5.1. We apparently now need to stabilise something newer.

commit de00f8e224cded2e844f11892a9eaea4c8251d33
Author: Justin Lecher <jlec@gentoo.org>
Date:   Wed Feb 24 09:44:03 2016 +0100

    dev-python/click: Build docs using python2

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=572660

    Package-Manager: portage-2.2.27
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de00f8e224cded2e844f11892a9eaea4c8251d33