Re: [xml2rfc] url

Randy Bush <randy@psg.com> Sun, 07 July 2019 17:29 UTC

Return-Path: <randy@psg.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 1FEEA12004F for <xml2rfc@ietfa.amsl.com>; Sun, 7 Jul 2019 10:29:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.9
X-Spam-Level:
X-Spam-Status: No, score=-6.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, 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 QC68MG_6ffhr for <xml2rfc@ietfa.amsl.com>; Sun, 7 Jul 2019 10:29:17 -0700 (PDT)
Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:8006::18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 12105120043 for <xml2rfc@ietf.org>; Sun, 7 Jul 2019 10:29:16 -0700 (PDT)
Received: from localhost ([127.0.0.1] helo=ryuu.rg.net) by ran.psg.com with esmtp (Exim 4.90_1) (envelope-from <randy@psg.com>) id 1hkAyQ-0004nt-Pl for xml2rfc@ietf.org; Sun, 07 Jul 2019 17:29:15 +0000
Date: Sun, 07 Jul 2019 10:29:14 -0700
Message-ID: <m2pnmlsqhh.wl-randy@psg.com>
From: Randy Bush <randy@psg.com>
To: XML2RFC Interest Group <xml2rfc@ietf.org>
In-Reply-To: <m2v9wermlb.wl-randy@psg.com>
References: <m2v9wermlb.wl-randy@psg.com>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/26.2 Mule/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset="US-ASCII"
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/pfgnGLnNis8JV9olD4x45IkenBU>
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 17:29:19 -0000

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