Package Details: python2-docutils 0.18.1-1

Git Clone URL: https://aur.archlinux.org/python2-docutils.git (read-only, click to copy)
Package Base: python2-docutils
Description: Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX (0.18.x is the last version supporting Python 2)
Upstream URL: http://docutils.sourceforge.net
Licenses: custom
Submitter: LaughingMan
Maintainer: LaughingMan
Last Packager: LaughingMan
Votes: 1
Popularity: 0.167254
First Submitted: 2021-11-30 06:18 (UTC)
Last Updated: 2021-12-10 07:25 (UTC)

Latest Comments

LaughingMan commented on 2021-12-10 10:29 (UTC)

Can't reproduce, sorry :/

dreieck commented on 2021-12-09 22:06 (UTC)

check() fails for me:

Testing Docutils 0.18.1 with Python 2.7.18 on 2021-12-09 at 23:02:30
OS: Linux 5.15.0-pf2-longcmdline-custom #1 SMP PREEMPT Fri, 26 Nov 2021 20:37:11 +0000 (linux2, Linux-5.15.0-pf2-longcmdline-custom-x86_64-with-glibc2.2.5)
Working directory: /[...]/python2-docutils/src/docutils-0.18.1/test
Docutils package: /[...]/python2-docutils/src/docutils-0.18.1/docutils
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................EEEEE..................................................................................................................................................ss...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_invalid_raw_xml (test_writers.test_docutils_xml.DocutilsXMLTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 187, in test_invalid_raw_xml
    result = publish_xml(settings, invalid_raw_xml_source)
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 133, in publish_xml
    settings_overrides=settings)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 417, in publish_string
    enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 665, in publish_programmatically
    output = pub.publish(enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 220, in publish
    output = self.writer.write(self.document, self.destination)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/__init__.py", line 78, in write
    self.translate()
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 69, in translate
    self.document.walkabout(visitor)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/nodes.py", line 199, in walkabout
    if child.walkabout(visitor):
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/nodes.py", line 191, in walkabout
    visitor.dispatch_visit(self)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/nodes.py", line 2033, in dispatch_visit
    return method(node)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 191, in visit_raw
    col_num, line_num, node.astext())
TypeError: %d format: a number is required, not NoneType

======================================================================
ERROR: test_publish (test_writers.test_docutils_xml.DocutilsXMLTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 161, in test_publish
    result = publish_xml(settings, source)
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 133, in publish_xml
    settings_overrides=settings)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 417, in publish_string
    enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 665, in publish_programmatically
    output = pub.publish(enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 220, in publish
    output = self.writer.write(self.document, self.destination)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/__init__.py", line 78, in write
    self.translate()
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 68, in translate
    self.visitor = visitor = self.translator_class(self.document)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 119, in __init__
    self.xmlparser.setContentHandler(self.the_handle)
  File "/usr/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 128, in setContentHandler
    self._reset_cont_handler()
  File "/usr/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 234, in _reset_cont_handler
    self._cont_handler.processingInstruction
AttributeError: 'NoneType' object has no attribute 'ProcessingInstructionHandler'

======================================================================
ERROR: test_publish_indents (test_writers.test_docutils_xml.DocutilsXMLTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 167, in test_publish_indents
    result = publish_xml(settings, source)
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 133, in publish_xml
    settings_overrides=settings)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 417, in publish_string
    enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 665, in publish_programmatically
    output = pub.publish(enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 220, in publish
    output = self.writer.write(self.document, self.destination)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/__init__.py", line 78, in write
    self.translate()
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 68, in translate
    self.visitor = visitor = self.translator_class(self.document)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 119, in __init__
    self.xmlparser.setContentHandler(self.the_handle)
  File "/usr/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 128, in setContentHandler
    self._reset_cont_handler()
  File "/usr/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 234, in _reset_cont_handler
    self._cont_handler.processingInstruction
AttributeError: 'NoneType' object has no attribute 'ProcessingInstructionHandler'

======================================================================
ERROR: test_publish_newlines (test_writers.test_docutils_xml.DocutilsXMLTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 173, in test_publish_newlines
    result = publish_xml(settings, source)
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 133, in publish_xml
    settings_overrides=settings)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 417, in publish_string
    enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 665, in publish_programmatically
    output = pub.publish(enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 220, in publish
    output = self.writer.write(self.document, self.destination)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/__init__.py", line 78, in write
    self.translate()
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 68, in translate
    self.visitor = visitor = self.translator_class(self.document)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 119, in __init__
    self.xmlparser.setContentHandler(self.the_handle)
  File "/usr/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 128, in setContentHandler
    self._reset_cont_handler()
  File "/usr/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 234, in _reset_cont_handler
    self._cont_handler.processingInstruction
AttributeError: 'NoneType' object has no attribute 'ProcessingInstructionHandler'

======================================================================
ERROR: test_raw_xml (test_writers.test_docutils_xml.DocutilsXMLTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 178, in test_raw_xml
    result = publish_xml(self.settings, raw_xml_source)
  File "/[...]/python2-docutils/src/docutils-0.18.1/test/test_writers/test_docutils_xml.py", line 133, in publish_xml
    settings_overrides=settings)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 417, in publish_string
    enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 665, in publish_programmatically
    output = pub.publish(enable_exit_status=enable_exit_status)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/core.py", line 220, in publish
    output = self.writer.write(self.document, self.destination)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/__init__.py", line 78, in write
    self.translate()
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 68, in translate
    self.visitor = visitor = self.translator_class(self.document)
  File "/[...]/python2-docutils/src/docutils-0.18.1/docutils/writers/docutils_xml.py", line 119, in __init__
    self.xmlparser.setContentHandler(self.the_handle)
  File "/usr/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 128, in setContentHandler
    self._reset_cont_handler()
  File "/usr/lib/python2.7/site-packages/_xmlplus/sax/expatreader.py", line 234, in _reset_cont_handler
    self._cont_handler.processingInstruction
AttributeError: 'NoneType' object has no attribute 'ProcessingInstructionHandler'

----------------------------------------------------------------------
Ran 1486 tests in 13.450s

FAILED (errors=5, skipped=2)
Elapsed time: 14.423 seconds
==> ERROR: A failure occurred in check().