Re: [TOOLS-DEVELOPMENT] Preview release of Text Submission Converter, id2xml

Henrik Levkowetz <henrik@levkowetz.com> Mon, 15 May 2017 21:05 UTC

Return-Path: <henrik@levkowetz.com>
X-Original-To: tools-development@ietfa.amsl.com
Delivered-To: tools-development@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A9F21243F3 for <tools-development@ietfa.amsl.com>; Mon, 15 May 2017 14:05:16 -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] 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 yyMyLpnWVkKv for <tools-development@ietfa.amsl.com>; Mon, 15 May 2017 14:05:14 -0700 (PDT)
Received: from durif.tools.ietf.org (durif.tools.ietf.org [IPv6:2001:1900:3001:11::3d]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 69683129562 for <tools-development@ietf.org>; Mon, 15 May 2017 14:02:28 -0700 (PDT)
Received: from h-43-30.a357.priv.bahnhof.se ([79.136.43.30]:50032 helo=[192.168.1.120]) by durif.tools.ietf.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1dAN8N-0002Gj-8Z; Mon, 15 May 2017 14:02:28 -0700
To: Sandy Ginoza <sginoza@amsl.com>, Robert Sparks <rjsparks@nostrum.com>
References: <59198A25.9010206@levkowetz.com> <7B6CCAAC-766D-430B-B109-53EB327F3464@vigilsec.com> <3e742421-2c31-3327-9551-0725252f45c8@nostrum.com> <2CFEC0BB-D0AE-4391-9E0B-AA170874F914@amsl.com>
Cc: Megan Ferguson <mferguson@amsl.com>, IETF Tools Development <tools-development@ietf.org>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <591A175B.4020108@levkowetz.com>
Date: Mon, 15 May 2017 23:02:19 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
MIME-Version: 1.0
In-Reply-To: <2CFEC0BB-D0AE-4391-9E0B-AA170874F914@amsl.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="38a1Fgkj3tthVgfDusXPUIfnAKaBawksS"
X-SA-Exim-Connect-IP: 79.136.43.30
X-SA-Exim-Rcpt-To: tools-development@ietf.org, mferguson@amsl.com, rjsparks@nostrum.com, sginoza@amsl.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 durif.tools.ietf.org)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-development/2YcGwNCkSnujk_EOAHRTHHxqFUs>
Subject: Re: [TOOLS-DEVELOPMENT] Preview release of Text Submission Converter, id2xml
X-BeenThere: tools-development@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Tools Development list server <tools-development.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-development>, <mailto:tools-development-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-development/>
List-Post: <mailto:tools-development@ietf.org>
List-Help: <mailto:tools-development-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-development>, <mailto:tools-development-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 May 2017 21:05:16 -0000

Hi Sandy,

Responding off list.


Best,

	Henrik

On 2017-05-15 22:38, Sandy Ginoza wrote:
> Hi all,
> 
> Please note that I’ve added Megan Ferguson to the thread, as she is the lead for testing v3-related tools for the RPC.  
> 
> We haven’t been able to successfully run id2xml yet.  Matt installed the updated version for us this morning to see if that helped, but we’re still getting the same errors and we’re unable to view output of "id2xml —help"
> 
> Are we missing something?  Some of the error messages are below.
> 
> Thanks!
> Sandy
> 
>> > id2xml draft-ietf-rtgwg-yang-key-chain-24test.txt
>> Traceback (most recent call last):
>>  File "/usr/bin/id2xml", line 9, in <module>
>>    load_entry_point('id2xml==0.9.1', 'console_scripts', 'id2xml')()
>>  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
>>    return get_distribution(dist).load_entry_point(group, name)
>>  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
>>    return ep.load()
>>  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2355, in load
>>    return self.resolve()
>>  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2361, in resolve
>>    module = __import__(self.module_name, fromlist=['__name__'], level=0)
>>  File "/usr/lib/python3.4/site-packages/id2xml/parser.py", line 43, in <module>
>>    from __init__ import __version__
>> ImportError: No module named ‘__init__'
> 
>> id2xml draft-ietf-sidr-rpki-oob-setup-09.txt > draft-ietf-sidr-rpki-oob-setup-test.xml
> Traceback (most recent call last):
>   File "/usr/bin/id2xml", line 9, in <module>
>     load_entry_point('id2xml==0.9.1', 'console_scripts', 'id2xml')()
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
>     return get_distribution(dist).load_entry_point(group, name)
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
>     return ep.load()
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2355, in load
>     return self.resolve()
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2361, in resolve
>     module = __import__(self.module_name, fromlist=['__name__'], level=0)
>   File "/usr/lib/python3.4/site-packages/id2xml/parser.py", line 43, in <module>
>     from __init__ import __version__
> ImportError: No module named ‘__init__'
> 
> 
>> id2xml draft-ietf-sidr-rpki-oob-setup-09.txt | draft-ietf-sidr-rpki-oob-setup-test.xml
> If 'draft-ietf-sidr-rpki-oob-setup-test.xml' is not a typo you can use command-not-found to lookup the package that contains it, like this:
>     cnf draft-ietf-sidr-rpki-oob-setup-test.xml
> Traceback (most recent call last):
>   File "/usr/bin/id2xml", line 9, in <module>
>     load_entry_point('id2xml==0.9.2', 'console_scripts', 'id2xml')()
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
>     return get_distribution(dist).load_entry_point(group, name)
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
>     return ep.load()
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2355, in load
>     return self.resolve()
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2361, in resolve
>     module = __import__(self.module_name, fromlist=['__name__'], level=0)
>   File "/usr/lib/python3.4/site-packages/id2xml/parser.py", line 44, in <module>
>     from __init__ import __version__
> ImportError: No module named ‘__init__'
> 
> 
>> id2xml --help
> Traceback (most recent call last):
>   File "/usr/bin/id2xml", line 9, in <module>
>     load_entry_point('id2xml==0.9.2', 'console_scripts', 'id2xml')()
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
>     return get_distribution(dist).load_entry_point(group, name)
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
>     return ep.load()
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2355, in load
>     return self.resolve()
>   File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2361, in resolve
>     module = __import__(self.module_name, fromlist=['__name__'], level=0)
>   File "/usr/lib/python3.4/site-packages/id2xml/parser.py", line 44, in <module>
>     from __init__ import __version__
> ImportError: No module named '__init__'
> 
> 
> 
> 
>> On May 15, 2017, at 1:15 PM, Robert Sparks <rjsparks@nostrum.com> wrote:
>> 
>> 
>> 
>> On 5/15/17 3:53 PM, Russ Housley wrote:
>>> Henrik:
>>> 
>>> After  $ pip install id2xml, what is the command line to produce a .xml form a .txt that contains an RFC or Internet-Draft?
>> id2xml draft-whatever.txt
>> 
>> id2xml --help shows a lot of options
>>> 
>>> Russ
>>> 
>>> 
>>> 
>>>> On May 15, 2017, at 6:59 AM, Henrik Levkowetz <henrik@levkowetz.com> wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> I've just uploaded the third preview release (0.9.2) of 'id2xml', the
>>>> text-submission converter tool:
>>>> 
>>>>  https://pypi.python.org/pypi/id2xml
>>>> 
>>>> You should be able to install it with:
>>>> 
>>>>  $ pip install id2xml
>>>> 
>>>> All feedback is very welcome.
>>>> 
>>>> 
>>>> From the README file:
>>>> 
>>>> This tool, 'id2xml', is intended for use by the RFC-Editor staff, in order to
>>>> produce a first xml2rfc-compatible XML version from text-only Internet-Draft
>>>> submissions.
>>>> 
>>>> id2xml may also be useful for Internet-Draft authors who wish to start working
>>>> on a new version of an older draft or RFC, for which no xml2rfc-compatible XML
>>>> source is available.
>>>> 
>>>> The releases of the 0.9.x release series are preview releases, with a number
>>>> of known deficiencies.  They are released in order that potential users may
>>>> provide feedback on the most desired improvements ahead of a 1.0.0 release.
>>>> 
>>>> Version 0.9.0 can process the drafts specified in the development Statement of
>>>> Work to XML files acceptable to xml2rfc, and can also process a number of
>>>> other test files to acceptable XML.  However, adding new drafts to the test
>>>> set still reveals weaknesses in many cases, so trouble-free processing of any
>>>> arbitrary draft should not be expected from the 0.9.x series.
>>>> 
>>>> The XML produced follows RFC 7749 [1]_ in version 0.9.x and 1.x of the tool, and will follow RFC 7991 [2]_ in version 2.x, which will be released once
>>>> support is available to process XML sources which follows the RFC 7991
>>>> vocabulary.
>>>> 
>>>> 
>>>> .. [1] Reschke, J., "The "xml2rfc" Version 2 Vocabulary", RFC 7749, DOI
>>>>   10.17487/RFC7749, February 2016, <http://www.rfc-editor.org/info/rfc7749>.
>>>> 
>>>> .. [2] Hoffman, P., "The "xml2rfc" Version 3 Vocabulary", RFC 7991, DOI
>>>>   10.17487/RFC7991, December 2016, http://www.rfc-editor.org/info/rfc7991>.
>>>> 
>>>> 
>>>> Best regards,
>>>> 
>>>> 	Henrik
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> TOOLS-DEVELOPMENT mailing list
>>>> TOOLS-DEVELOPMENT@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/tools-development
>>> _______________________________________________
>>> TOOLS-DEVELOPMENT mailing list
>>> TOOLS-DEVELOPMENT@ietf.org
>>> https://www.ietf.org/mailman/listinfo/tools-development
>> 
>> _______________________________________________
>> TOOLS-DEVELOPMENT mailing list
>> TOOLS-DEVELOPMENT@ietf.org
>> https://www.ietf.org/mailman/listinfo/tools-development
>> 
> 
>