Re: [xml2rfc] Unable to run xml2rfc --help

Carsten Bormann <cabo@tzi.org> Mon, 28 December 2020 18:14 UTC

Return-Path: <cabo@tzi.org>
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 619CB3A0CD9 for <xml2rfc@ietfa.amsl.com>; Mon, 28 Dec 2020 10:14:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 bDq9mrXeknFZ for <xml2rfc@ietfa.amsl.com>; Mon, 28 Dec 2020 10:14:17 -0800 (PST)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 00A983A0CD8 for <xml2rfc@ietf.org>; Mon, 28 Dec 2020 10:14:16 -0800 (PST)
Received: from [192.168.217.124] (p548dca87.dip0.t-ipconnect.de [84.141.202.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4D4Qft55fbzypT; Mon, 28 Dec 2020 19:14:14 +0100 (CET)
Content-Type: multipart/alternative; boundary="Apple-Mail-49A360F4-54CE-48D2-9F0E-B7E486063C25"
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (1.0)
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <alpine.DEB.2.20.2012271600440.26613@maria.rogerprice.org>
Date: Mon, 28 Dec 2020 19:14:13 +0100
Cc: xml2rfc Mailing List <xml2rfc@ietf.org>
Message-Id: <2211713B-B2D0-4EF3-A0CE-A9C8DC38342F@tzi.org>
References: <alpine.DEB.2.20.2012271600440.26613@maria.rogerprice.org>
To: Roger Price <roger@rogerprice.org>
X-Mailer: iPhone Mail (18C66)
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/aIigTNfk2_tUKvqRIkz6eIyXvcA>
Subject: Re: [xml2rfc] Unable to run xml2rfc --help
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: Mon, 28 Dec 2020 18:14:21 -0000

Can only guess, but probably your locale isn’t en_US.UTF-8 which you may want to fix. 

Sent from mobile, sorry for terse

> On 28. Dec 2020, at 16:49, Roger Price <roger@rogerprice.org> wrote:
> 
> On Fri, 25 Dec 2020, Roger Price wrote:
> 
>> I downloaded xml2rfc onto a Debian Stretch machine and ran the command
>> 
>> xml2rfc --help
>> 
>> The result was
>> ...
>> File "/usr/lib/python3.5/sre_parse.py", line 575, in _parse
>>   raise source.error(msg, len(this) + 1 + len(that))
>> sre_constants.error: bad character range ”-“ at position 7
> 
> I went back to this problem.  xml2rfc --help still crashes, so I tried xml2rfc -h.  That worked, so I went back to xml2rfc --help which then worked correctly.
> 
> I then tried xml2rfc draft-davies-template-bare-07.xml : Python crashes with the same error message.  I tried xml2rfc --debug draft-davies-template-bare-07.xml and that worked. I tried xml2rfc --text draft-davies-template-bare-07.xml and Python crashed, so I tried xml2rfc draft-davies-template-bare-07.xml --text and that worked.
> 
> I repeated xml2rfc draft-davies-template-bare-07.xml --text and this time Python crashed with the usual error message.
> 
> It looks as if xml2rfc is relying on some work area which it assumes has some initial value, but in practice has a random value.
> 
> I get the same randomness with Python 3.5.3 and Python 3.8.1. Command uname -a reports Linux maria 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64 GNU/Linux
> 
> Roger_______________________________________________
> xml2rfc mailing list
> xml2rfc@ietf.org
> https://www.ietf.org/mailman/listinfo/xml2rfc