Debian Bug report logs - #692285
python-docutils: FTBFS with Python 3.3: TypeError: must be Element, not _ElementInterfaceWrapper

version graph

Package: src:python-docutils; Maintainer for src:python-docutils is Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>;

Reported by: Jakub Wilk <jwilk@debian.org>

Date: Sun, 4 Nov 2012 17:42:05 UTC

Severity: serious

Tags: upstream

Found in version python-docutils/0.9.1-2

Fixed in version python-docutils/0.10-3

Done: Jakub Wilk <jwilk@debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://sourceforge.net/p/docutils/bugs/200/

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, jwilk@debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#692285; Package src:python-docutils. (Sun, 04 Nov 2012 17:42:07 GMT) (full text, mbox, link).


Message #3 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jakub Wilk <jwilk@debian.org>
To: submit@bugs.debian.org
Subject: python-docutils: FTBFS with Python 3.3: TypeError: must be Element, not _ElementInterfaceWrapper
Date: Sun, 4 Nov 2012 18:39:18 +0100
Source: python-docutils
Version: 0.9.1-2
Severity: important
Tags: upstream
User: debian-python@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



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#692285; Package src:python-docutils. (Sun, 04 Nov 2012 17:57:12 GMT) (full text, mbox, link).


Message #6 received at 692285@bugs.debian.org (full text, mbox, reply):

From: Jakub Wilk <jwilk@debian.org>
To: 692285@bugs.debian.org
Subject: Re: Bug#692285: python-docutils: FTBFS with Python 3.3: TypeError: must be Element, not _ElementInterfaceWrapper
Date: Sun, 4 Nov 2012 18:53:41 +0100
* Jakub Wilk <jwilk@debian.org>, 2012-11-04, 18:39:
>I can reproduce this failure with upstream Python 3.3.0 and Docutils 
>from upstream svn (R).

I meant: ... svn (R7535).

-- 
Jakub Wilk



Set Bug forwarded-to-address to 'http://sourceforge.net/tracker/?func=detail&aid=3555164&group_id=38414&atid=422030'. Request was from Jakub Wilk <jwilk@debian.org> to control@bugs.debian.org. (Mon, 05 Nov 2012 09:36:03 GMT) (full text, mbox, link).


Changed Bug forwarded-to-address to 'http://sourceforge.net/p/docutils/bugs/200/' from 'http://sourceforge.net/tracker/?func=detail&aid=3555164&group_id=38414&atid=422030' Request was from Jakub Wilk <jwilk@debian.org> to control@bugs.debian.org. (Fri, 15 Mar 2013 23:03:18 GMT) (full text, mbox, link).


Severity set to 'serious' from 'important' Request was from Jakub Wilk <jwilk@debian.org> to control@bugs.debian.org. (Tue, 07 May 2013 15:18:04 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Jakub Wilk <jwilk@debian.org> to control@bugs.debian.org. (Thu, 16 May 2013 00:09:04 GMT) (full text, mbox, link).


Reply sent to Jakub Wilk <jwilk@debian.org>:
You have taken responsibility. (Thu, 16 May 2013 22:21:12 GMT) (full text, mbox, link).


Notification sent to Jakub Wilk <jwilk@debian.org>:
Bug acknowledged by developer. (Thu, 16 May 2013 22:21:12 GMT) (full text, mbox, link).


Message #19 received at 692285-close@bugs.debian.org (full text, mbox, reply):

From: Jakub Wilk <jwilk@debian.org>
To: 692285-close@bugs.debian.org
Subject: Bug#692285: fixed in python-docutils 0.10-3
Date: Thu, 16 May 2013 22:18:29 +0000
Source: python-docutils
Source-Version: 0.10-3

We believe that the bug you reported is fixed in the latest version of
python-docutils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 692285@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jakub Wilk <jwilk@debian.org> (supplier of updated python-docutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 16 May 2013 23:43:41 +0200
Source: python-docutils
Binary: python-docutils python3-docutils docutils-common docutils-doc
Architecture: source all
Version: 0.10-3
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Changed-By: Jakub Wilk <jwilk@debian.org>
Description: 
 docutils-common - text processing system for reStructuredText - common data
 docutils-doc - text processing system for reStructuredText - documentation
 python-docutils - text processing system for reStructuredText (implemented in Pytho
 python3-docutils - text processing system for reStructuredText (implemented in Pytho
Closes: 692285 692286 708159 708565
Changes: 
 python-docutils (0.10-3) unstable; urgency=low
 .
   [ Dmitry Shachnev ]
   * Rename debian/x-rst.xml to debian/docutils.xml.
 .
   [ Jakub Wilk ]
   * Add patch (strict-csv-parser.diff) to make the CSV parser stricter
     (closes: #692286).
   * Add patch (python3-pil-no-bytestrings.diff) not to pass byte strings to
     PIL.Image.open() when running under Python 3.X (closes: #708159).
   * Add patch (python3.3-odt-writer.diff) to port the ODT writer to Python 3.3
     ElementTree API (closes: #692285).
   * Add patch (unknown-url-exc-use-repr.diff) to make the test suite expect
     that urllib.requests in Python ≥ 3.3.2 use repr() when reporting unknown
     URLs (closes: #708565).
   * Add Forwarded and Last-Update fields to all patch headers that were
     missing them.
   * Refresh patches.
Checksums-Sha1: 
 cb0d73bfab4c70bc44af4f3acfe602d23557372f 2445 python-docutils_0.10-3.dsc
 a5b7049c35f3cf587017c0d6cd2fc4be082a7730 36997 python-docutils_0.10-3.debian.tar.gz
 035af24d19feefce1f9b2a5ac8de4cfe3f9c9823 428016 python-docutils_0.10-3_all.deb
 7751a8bc54f25f47a8e28085c28c697e5f94d3a9 427510 python3-docutils_0.10-3_all.deb
 ef6907d9d383e5ee1641374646874d2bc6478eff 210192 docutils-common_0.10-3_all.deb
 bc3e73e0c0a54c95775d3998a675c9e456a07c5b 1321090 docutils-doc_0.10-3_all.deb
Checksums-Sha256: 
 80637fc2e936449fd11146ca6398bc028da22604d37029d0f7e20c4599ece226 2445 python-docutils_0.10-3.dsc
 693df6d95b4aaa02fb66866997c5e02e9ca370ebb190bdc87157eaa439a76c60 36997 python-docutils_0.10-3.debian.tar.gz
 095ed25e939592f3dcb2cfa07fcc2ed6d61fb856a54357a20e4784956a4fffab 428016 python-docutils_0.10-3_all.deb
 b503b40883c10c2f925729cbb2eb82907891bc3b62f1e5ce6a3391958939c501 427510 python3-docutils_0.10-3_all.deb
 46d1dbebb8369f56657c5a8611dc98dbc280e21ce15205c3807852b04098d268 210192 docutils-common_0.10-3_all.deb
 914443d73f4ae611bb4108a6b718f6422dc738a5a1233bdbf4ad3d2f520808b7 1321090 docutils-doc_0.10-3_all.deb
Files: 
 181774351e8551ffd64cb646f85debf6 2445 python optional python-docutils_0.10-3.dsc
 282191df10cdfb258263c83c0f7041dc 36997 python optional python-docutils_0.10-3.debian.tar.gz
 52c718ee8b863ca55704b290e6752b2d 428016 python optional python-docutils_0.10-3_all.deb
 924e3c58168b56b4c56bcc074cc76ecb 427510 python optional python3-docutils_0.10-3_all.deb
 b93416ec02c2b8c1796c01743dd36008 210192 python optional docutils-common_0.10-3_all.deb
 23dfdb38d703e75b1e83c0e3f92f2c50 1321090 doc optional docutils-doc_0.10-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJRlVYjAAoJEC1Os6YBVHX1b2wP+gLEb921QRlqC3vhvlGgV8Ls
j3+NHdBjtEuOcF4/00kL+gmb7dxuTdnXitJO1sI8OVHMjyw8EWnBPq/J1Z7WEbb0
fQjcbkglcDfXS9YvJDceNxBSjE7G6sAxXFTdEl09vt8F9Yx+2Bdw80ts91U9zaW9
sI9AEjK1ZntMFY04XuXroEjCB0/KShmZXzfB+emABm+IuMve2cIGbmrplm+Hnw4j
IFhE643RuEpOQ6ITnOM6bYK+1cAOLBaBcMjB3QEhxLaRJdVjicmSrvD5lhAeu6VS
gzWiSJCVxHy1X42Re3pOBoI3JF1l4YQ2bdyWCRQae6blP7UkRCnTbuikZzuqueRe
U2AixLIVhllGPyxity3zdM/cDTqDmJw5MfPZ2DCksy0zdoYQq/dAe3T8ofH9HEnn
WYeYGdKPGKWa3U4wUIICPYtn0GaQV99VGzgYiCqJNF80OKqwNuooALoTTFKVYQqK
z5yqCv3ddWCfCKE72ujv4MvRwRBP2KNzXoy7gjB1uxfboJr8q8tUJmALBuqrU9OI
bEnS2+2xoNyYOER9j3v/ZyQWVYUDJi9xofKTYD/pfHJXk7RZTqrSmZavWs6lQFDD
PjI8/cB+86YDpzqbTVFa2Ua01/RPsphriD87zrNmPmAt46UTKfaREaejLesOR88W
qAKLcLDL5zmXJnDoaXDY
=zZjb
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 14 Jun 2013 08:06:50 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 12 10:39:45 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.