Your message dated Thu, 11 Oct 2018 17:09:07 +0000
with message-id <e1gaesr-0004am...@fasolo.debian.org>
and subject line Bug#845987: fixed in planet-venus 0~git9de2109-4.1
has caused the Debian Bug report #845987,
regarding planet-venus: Fails with html5lib 0.999999999-1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
845987: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845987
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: planet-venus
Version: 0~git9de2109-4
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Dear Maintainer,

after updating python-html5lib to 0.999999999-1, planet-venus fails
with:

ERROR:planet.runner:TypeError: __init__() got an unexpected keyword argument 
'encoding'
ERROR:planet.runner:  File "/usr/lib/python2.7/dist-packages/planet/spider.py", 
line 484, in spiderPlanet
    writeCache(uri, feed_info, data)
ERROR:planet.runner:  File "/usr/lib/python2.7/dist-packages/planet/spider.py", 
line 293, in writeCache
    reconstitute.source(xdoc.documentElement,data.feed,data.bozo,format)
ERROR:planet.runner:  File 
"/usr/lib/python2.7/dist-packages/planet/reconstitute.py", line 240, in source
    content(xsource, 'subtitle', source.get('subtitle_detail',None), bozo)
ERROR:planet.runner:  File 
"/usr/lib/python2.7/dist-packages/planet/reconstitute.py", line 170, in content
    html = parser.parse(xdiv % detail.value, encoding="utf-8")
ERROR:planet.runner:  File 
"/usr/lib/python2.7/dist-packages/html5lib/html5parser.py", line 235, in parse
    self._parse(stream, False, None, *args, **kwargs)
ERROR:planet.runner:  File 
"/usr/lib/python2.7/dist-packages/html5lib/html5parser.py", line 85, in _parse
    self.tokenizer = _tokenizer.HTMLTokenizer(stream, parser=self, **kwargs)
ERROR:planet.runner:  File 
"/usr/lib/python2.7/dist-packages/html5lib/_tokenizer.py", line 36, in __init__
    self.stream = HTMLInputStream(stream, **kwargs)
ERROR:planet.runner:  File 
"/usr/lib/python2.7/dist-packages/html5lib/_inputstream.py", line 151, in 
HTMLInputStream
    return HTMLBinaryInputStream(source, **kwargs)
Traceback (most recent call last):
  File "/usr/bin/planet", line 143, in <module>
    doc = splice.splice()
  File "/usr/lib/python2.7/dist-packages/planet/splice.py", line 84, in splice
    reconstitute.source(xdoc.documentElement, data.feed, None, None)
  File "/usr/lib/python2.7/dist-packages/planet/reconstitute.py", line 240, in 
source
    content(xsource, 'subtitle', source.get('subtitle_detail',None), bozo)
  File "/usr/lib/python2.7/dist-packages/planet/reconstitute.py", line 170, in 
content
    html = parser.parse(xdiv % detail.value, encoding="utf-8")
  File "/usr/lib/python2.7/dist-packages/html5lib/html5parser.py", line 235, in 
parse
    self._parse(stream, False, None, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/html5lib/html5parser.py", line 85, in 
_parse
    self.tokenizer = _tokenizer.HTMLTokenizer(stream, parser=self, **kwargs)
  File "/usr/lib/python2.7/dist-packages/html5lib/_tokenizer.py", line 36, in 
__init__
    self.stream = HTMLInputStream(stream, **kwargs)
  File "/usr/lib/python2.7/dist-packages/html5lib/_inputstream.py", line 151, 
in HTMLInputStream
    return HTMLBinaryInputStream(source, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'encoding'

Fixing this results in another error regarding the sanitizer. See [1] and [2].

The attached patch makes planet-venus work again. It should probably be
incorporated into debian/patches/html5lib-no_XHTMLSerializer.patch.

Cheers,
sur5r

[1] https://github.com/html5lib/html5lib-python/issues/277
[2] https://github.com/html5lib/html5lib-python/issues/72



-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEe/X2rDZDH11A3BN6TPKyGPVNrj0FAlg65/MACgkQTPKyGPVN
rj1l6BAAqQyCb4TzzZ5ueiBhp5OTY7U5z+8SP4rquuD+4bMaSq6sZuDkwH/mk71E
+rXt5/EsUezRoIjvmRpOlP/1ANDNnidhoxz7OttHBiRWZQUZ/QG6HlSF4t3BOOUY
J87zTwMJJC0aM2CRod5K30EUX2eDnmbrEyMJ5DqL2aSl+V8I7tH+9ttTK7myeW25
C0y8S2D3GWCn3pjMh3PsKk6zEkX+3niERpXfXNHytlrYuBEJI4hG9xi6g7sHN9ds
dhaiopTbUonEQhHkpzKwmPc08IcMvwO/xTCecrtsiTGs1wRi5I7uxmRwySljVzDS
AuIm3cEz/Qy8SzDkDc7eWYrk7LxYE2vcJ4PZlNy75sSWoDsq0LYbmcHQq7vtrHhd
dlctzLSEx9v0MUtNcjz6iCCdFBnVdJS3VTLjCqmlt4p1c0LgbeZeuokmIhIb3s/Q
kClegb1wcuqcw3PKxMjZdUWEg7/gh84aDf/d2kb2+r+B54XXhysQM9eXpTPm24Hx
ushQZ99At/mxFEbY1UmlvUmMjfNdEV402riDUlKUGR7f+10dWvxY2cRRSZc+fXGj
cmAeT8xZa8aAZ2ou9Qmq/8/ixK9ez+A0VFgKBV69wqPzQx2fG3Omy3AY+/encjGp
cjF0QqpbRc5fswiNI9e7Y5b2E2R1kiSo6qduSB323ejYf0tQHAI=
=Lnir
-----END PGP SIGNATURE-----
--- a/planet/scrub.py	2016-02-17 00:00:00.000000000 +0100
+++ b/planet/scrub.py	2016-11-27 13:47:47.000000000 +0100
@@ -139,12 +139,12 @@
                         node['type']='text/html'
 
                 if not doc:
-                    from html5lib import html5parser, treebuilders, sanitizer
-                    p=html5parser.HTMLParser(tree=treebuilders.getTreeBuilder('dom'), tokenizer=sanitizer.HTMLSanitizer)
-                    doc = p.parseFragment(node['value'], encoding='utf-8')
+                    from html5lib import html5parser, treebuilders
+                    p=html5parser.HTMLParser(tree=treebuilders.getTreeBuilder('dom'))
+                    doc = p.parseFragment(node['value'])
 
                 from html5lib import treewalkers, serializer
                 walker = treewalkers.getTreeWalker('dom')(doc)
-                xhtml = serializer.HTMLSerializer(inject_meta_charset = False)
+                xhtml = serializer.HTMLSerializer(inject_meta_charset = False, sanitize=True)
                 tree = xhtml.serialize(walker, encoding='utf-8')
                 node['value'] = ''.join([str(token) for token in tree])
--- a/planet/reconstitute.py	2016-02-17 00:00:00.000000000 +0100
+++ b/planet/reconstitute.py	2016-11-27 13:47:50.000000000 +0100
@@ -167,7 +167,7 @@
 
     if detail.type.find('xhtml')<0 or bozo:
         parser = html5parser.HTMLParser(tree=treebuilders.getTreeBuilder('dom'))
-        html = parser.parse(xdiv % detail.value, encoding="utf-8")
+        html = parser.parse(xdiv % detail.value, override_encoding="utf-8")
         for body in html.documentElement.childNodes:
             if body.nodeType != Node.ELEMENT_NODE: continue
             if body.nodeName != 'body': continue

--- End Message ---
--- Begin Message ---
Source: planet-venus
Source-Version: 0~git9de2109-4.1

We believe that the bug you reported is fixed in the latest version of
planet-venus, 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 845...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jonas Smedegaard <d...@jones.dk> (supplier of updated planet-venus 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 01 Oct 2018 17:46:13 +0200
Source: planet-venus
Binary: planet-venus
Architecture: source all
Version: 0~git9de2109-4.1
Distribution: unstable
Urgency: medium
Maintainer: Python Applications Packaging Team 
<python-apps-t...@lists.alioth.debian.org>
Changed-By: Jonas Smedegaard <d...@jones.dk>
Description:
 planet-venus - aggregate feed generator
Closes: 824347 845987
Changes:
 planet-venus (0~git9de2109-4.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Modernize patch html5lib-no_XHTMLSerializer.
     Closes: Bug#845987. Thanks to Jakob Haufe.
   * Add patch django-setup.patch to fix setup django before use.
     Closes: Bug#824347. Thanks to Antoine Beaupré.
Checksums-Sha1:
 46cfbd846f462d84bf99351b3755a5e7acaea967 2205 planet-venus_0~git9de2109-4.1.dsc
 e701d5e3577ab8ec138c7368792cfda1e471b050 146320 
planet-venus_0~git9de2109-4.1.debian.tar.xz
 7dd5bf8cba69e020ff6e97cedc6b75c9195abc5b 188764 
planet-venus_0~git9de2109-4.1_all.deb
 2f12af10c9c6f571d4334f97fd6dc71f54ff577c 6339 
planet-venus_0~git9de2109-4.1_amd64.buildinfo
Checksums-Sha256:
 8482c32f71d256b8211b67dde7beb5c8433c34e1b6101039f3886993311367f0 2205 
planet-venus_0~git9de2109-4.1.dsc
 7337a4bbab78ded5a17721f7e9db66610034c0e93ca4828ac62e163a0598467c 146320 
planet-venus_0~git9de2109-4.1.debian.tar.xz
 09181453fdb731aa3b4ce237bd462f43c0adffdcec726ea35a6d9fc6ccc38ef4 188764 
planet-venus_0~git9de2109-4.1_all.deb
 d8c3af657bffb22111914921ae64e0193fe01bfc1b93fcdb2e05429fe8436168 6339 
planet-venus_0~git9de2109-4.1_amd64.buildinfo
Files:
 087614fa2522a014afc6ea5a944a652e 2205 python extra 
planet-venus_0~git9de2109-4.1.dsc
 72209db37cdaef225142cb9aac8eda0c 146320 python extra 
planet-venus_0~git9de2109-4.1.debian.tar.xz
 297900402144b093bc75015e89862504 188764 python extra 
planet-venus_0~git9de2109-4.1_all.deb
 f66826509cf58fa3b0e338a949996f4f 6339 python extra 
planet-venus_0~git9de2109-4.1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAluyQ1sACgkQLHwxRsGg
ASFGPg/9EFDbLw9ETrYaF8PQSewW1y8qOcvUzAn4LNZSqJiBDeTj89mmKoq0cTJv
s4tK1CNdK3zNDlEn5g1L46kdASHuQgI/Sw0D79r5ksikMthuAQ+zZdJkLHaHdUkY
qXQse6q81hUOO6lQ6fOVjPrlU/2FaiLzuP1wM3CB2RrEZfj3iq/9B7FrvdOdSTvd
nvfNOiVpFFYtxUc9RJgIijZmIxg1hVABWGIX5zMlkSCm14iNvBfTPhopT+52UrSv
wNgzB+LNfc++tOlZFuqNBYs3Cv8v7UjNPYXVddb9JhoR+AXrWGGHk2EBMX4Dgr8+
8dN720piFzfJL68gDEm4NCUWi6nwb/mqO1jP0JpkqW7qW1YHMV74de6M0NAUMxUr
I2Q5+Cco7Rrg/uqyu78o45KXmTUzIDlwbKj4pHIvRaKKWgTyfDIE7GkZ/8euhMis
6L22agcX5zwFS7sq4cGl4owMhvh9libLPFuV2WY8F++yndR8AQ8K2laALPEFj1dW
FC6YJmAt7z84NURdS+w70LYKILOWv3HHxUP4c5Lnzj7TFJQPU/rcpYJz61CJBfHN
OXnFmMLf7cmrEOAH/l03wdSaKZ0JbdOhormWoknRdu0WXrOJwORALdWNbTXDGjj0
CadIWqAlmsamtYtCD++5Lh3fWLWGqV1bNUUROHQM/S5X0PMdj1k=
=ZISj
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to