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

Sandy Ginoza <sginoza@amsl.com> Mon, 15 May 2017 20:41 UTC

Return-Path: <sginoza@amsl.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 4B6C21241FC for <tools-development@ietfa.amsl.com>; Mon, 15 May 2017 13:41:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-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 mBsLWk_spzRG for <tools-development@ietfa.amsl.com>; Mon, 15 May 2017 13:41:07 -0700 (PDT)
Received: from mail.amsl.com (c8a.amsl.com [4.31.198.40]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BEFB2124BFA for <tools-development@ietf.org>; Mon, 15 May 2017 13:38:43 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by c8a.amsl.com (Postfix) with ESMTP id 7BB851C5A6F; Mon, 15 May 2017 13:38:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from c8a.amsl.com ([127.0.0.1]) by localhost (c8a.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Qx5xZLVDmDa; Mon, 15 May 2017 13:38:41 -0700 (PDT)
Received: from sandygiozasmbp2.home (unknown [47.156.91.59]) by c8a.amsl.com (Postfix) with ESMTPSA id 339B51C362A; Mon, 15 May 2017 13:38:41 -0700 (PDT)
From: Sandy Ginoza <sginoza@amsl.com>
Message-Id: <2CFEC0BB-D0AE-4391-9E0B-AA170874F914@amsl.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_8C2AF5B1-89AD-4BFE-82FA-007A7C7DDA7A"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Date: Mon, 15 May 2017 13:38:42 -0700
In-Reply-To: <3e742421-2c31-3327-9551-0725252f45c8@nostrum.com>
Cc: Megan Ferguson <mferguson@amsl.com>, IETF Tools Development <tools-development@ietf.org>, Henrik Levkowetz <henrik@levkowetz.com>
To: Robert Sparks <rjsparks@nostrum.com>
References: <59198A25.9010206@levkowetz.com> <7B6CCAAC-766D-430B-B109-53EB327F3464@vigilsec.com> <3e742421-2c31-3327-9551-0725252f45c8@nostrum.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-development/C4BiFhNP11vefi5N4P7khAtGLFs>
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 20:41:10 -0000

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
>