[Python-modules-team] Bug#692285: python-docutils: FTBFS with Python 3.3: TypeError: must be Element, not _ElementInterfaceWrapper
Jakub Wilk
jwilk at debian.org
Sun Nov 4 17:39:18 UTC 2012
Source: python-docutils
Version: 0.9.1-2
Severity: important
Tags: upstream
User: debian-python at lists.debian.org
Usertags: python3.3
python-docutils FTBFS if built against Python 3.3:
| ======================================================================
| ERROR: test_odt_basic (test_writers.test_odt.DocutilsOdtTestCase)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/test_writers/test_odt.py", line 152, in test_odt_basic
| self.process_test('odt_basic.txt', 'odt_basic.odt',
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/test_writers/test_odt.py", line 105, in process_test
| settings_overrides=settings_overrides)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/core.py", line 418, in publish_string
| enable_exit_status=enable_exit_status)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/core.py", line 666, in publish_programmatically
| output = pub.publish(enable_exit_status=enable_exit_status)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/core.py", line 223, in publish
| output = self.writer.write(self.document, self.destination)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/__init__.py", line 80, in write
| self.translate()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 552, in translate
| self.assemble_my_parts()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 569, in assemble_my_parts
| s1 = self.get_stylesheet()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 616, in get_stylesheet
| s1 = self.visitor.setup_page()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 968, in setup_page
| self.add_header_footer(self.dom_stylesheet)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 1027, in add_header_footer
| nsdict=STYLES_NAMESPACE_DICT,
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 287, in SubElement
| parent.append(el)
| TypeError: must be Element, not _ElementInterfaceWrapper
|
| ======================================================================
| ERROR: test_odt_custom_headfoot (test_writers.test_odt.DocutilsOdtTestCase)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/test_writers/test_odt.py", line 167, in test_odt_custom_headfoot
| settings_overrides=settings_overrides,
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/test_writers/test_odt.py", line 105, in process_test
| settings_overrides=settings_overrides)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/core.py", line 418, in publish_string
| enable_exit_status=enable_exit_status)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/core.py", line 666, in publish_programmatically
| output = pub.publish(enable_exit_status=enable_exit_status)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/core.py", line 223, in publish
| output = self.writer.write(self.document, self.destination)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/__init__.py", line 80, in write
| self.translate()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 552, in translate
| self.assemble_my_parts()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 569, in assemble_my_parts
| s1 = self.get_stylesheet()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 616, in get_stylesheet
| s1 = self.visitor.setup_page()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 968, in setup_page
| self.add_header_footer(self.dom_stylesheet)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 1012, in add_header_footer
| nsdict=STYLES_NAMESPACE_DICT,
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 287, in SubElement
| parent.append(el)
| TypeError: must be Element, not _ElementInterfaceWrapper
|
| ======================================================================
| ERROR: test_odt_tables1 (test_writers.test_odt.DocutilsOdtTestCase)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/test_writers/test_odt.py", line 157, in test_odt_tables1
| self.process_test('odt_tables1.txt', 'odt_tables1.odt',
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/test3/test_writers/test_odt.py", line 105, in process_test
| settings_overrides=settings_overrides)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/core.py", line 418, in publish_string
| enable_exit_status=enable_exit_status)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/core.py", line 666, in publish_programmatically
| output = pub.publish(enable_exit_status=enable_exit_status)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/core.py", line 223, in publish
| output = self.writer.write(self.document, self.destination)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/__init__.py", line 80, in write
| self.translate()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 552, in translate
| self.assemble_my_parts()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 569, in assemble_my_parts
| s1 = self.get_stylesheet()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 616, in get_stylesheet
| s1 = self.visitor.setup_page()
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 968, in setup_page
| self.add_header_footer(self.dom_stylesheet)
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 1027, in add_header_footer
| nsdict=STYLES_NAMESPACE_DICT,
| File "/build/python-docutils-4yaKmK/python-docutils-0.9.1/build/py3/docutils/writers/odf_odt/__init__.py", line 287, in SubElement
| parent.append(el)
| TypeError: must be Element, not _ElementInterfaceWrapper
I can reproduce this failure with upstream Python 3.3.0 and Docutils
from upstream svn (R).
--
Jakub Wilk
More information about the Python-modules-team
mailing list