Re: [xml2rfc] url

Henrik Levkowetz <henrik@levkowetz.com> Sun, 07 July 2019 19:32 UTC

Return-Path: <henrik@levkowetz.com>
X-Original-To: xml2rfc@ietfa.amsl.com
Delivered-To: xml2rfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 258AA120041 for <xml2rfc@ietfa.amsl.com>; Sun, 7 Jul 2019 12:32:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ch8Oy4Sywf-R for <xml2rfc@ietfa.amsl.com>; Sun, 7 Jul 2019 12:32:47 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [IPv6:2001:1890:126c::1:2a]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C0831120033 for <xml2rfc@ietf.org>; Sun, 7 Jul 2019 12:32:47 -0700 (PDT)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:58031 helo=tannat.localdomain) by zinfandel.tools.ietf.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1hkCtw-0000iH-Kn; Sun, 07 Jul 2019 12:32:46 -0700
To: Randy Bush <randy@psg.com>, XML2RFC Interest Group <xml2rfc@ietf.org>
References: <m2v9wermlb.wl-randy@psg.com> <m2pnmlsqhh.wl-randy@psg.com>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <5a9aae82-6051-6f6e-f217-af06cb0a7ffa@levkowetz.com>
Date: Sun, 07 Jul 2019 21:32:33 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <m2pnmlsqhh.wl-randy@psg.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="hJ0elMmrTQxAlPi02vo9js65IBk4CXGWw"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: xml2rfc@ietf.org, randy@psg.com
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000)
X-SA-Exim-Scanned: Yes (on zinfandel.tools.ietf.org)
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/DI7khjkR15SNLl5As_bDcprC8T0>
Subject: Re: [xml2rfc] url
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <xml2rfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc/>
List-Post: <mailto:xml2rfc@ietf.org>
List-Help: <mailto:xml2rfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 07 Jul 2019 19:32:51 -0000

Hi Randy,

Thanks for the traceback.  Will debug, fix, and let you know about
possible workarounds.

	Henrik

On 2019-07-07 19:29, Randy Bush wrote:
> xml2rfc 2.23.0
> 
> this diagnostic is a bit obscrure
> 
> $ xml2rfc draft-ietf-lsvr-l3dl.xml --html --text
> Parsing file draft-ietf-lsvr-l3dl.xml
> Traceback (most recent call last):
>   File "/usr/local/bin/xml2rfc", line 10, in <module>
>     sys.exit(main())
>   File "/Library/Python/2.7/site-packages/xml2rfc/run.py", line 389, in main
>     xmlrfc = parser.parse(remove_pis=options.remove_pis, normalize=True)
>   File "/Library/Python/2.7/site-packages/xml2rfc/parser.py", line 618, in parse
>     include=True, line_no=getattr(element, 'sourceline', 0))
>   File "/Library/Python/2.7/site-packages/xml2rfc/parser.py", line 240, in getReferenceRequest
>     result = self.cache(path)
>   File "/Library/Python/2.7/site-packages/xml2rfc/parser.py", line 347, in cache
>     hash = '-'+base64.urlsafe_b64encode(hashlib.sha1(query)) if query else ''
>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/base64.py", line 101, in urlsafe_b64encode
>     return b64encode(s, '-_')
>   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/base64.py", line 53, in b64encode
>     encoded = binascii.b2a_base64(s)[:-1]
> TypeError: must be string or buffer, not _hashlib.HASH
> make: *** [all] Error 1
> 
> 
> source is at
> https://git.rg.net/randy/draft-l3dl/src/master/draft-ietf-lsvr-l3dl.xml
> 
> randy
> 
> _______________________________________________
> xml2rfc mailing list
> xml2rfc@ietf.org
> https://www.ietf.org/mailman/listinfo/xml2rfc
>