
From nobody Mon Jan  1 21:26:31 2018
Return-Path: <trac@tools.ietf.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 270C612421A for <xml2rfc@ietfa.amsl.com>; Mon,  1 Jan 2018 21:26:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 iaXMEVrCosRY for <xml2rfc@ietfa.amsl.com>; Mon,  1 Jan 2018 21:26:28 -0800 (PST)
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 636E712025C for <xml2rfc@ietf.org>; Mon,  1 Jan 2018 21:26:28 -0800 (PST)
Received: from localhost ([::1]:35645 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWF5n-0004Co-Ia; Mon, 01 Jan 2018 21:26:27 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com
X-Trac-Project: xml2rfc
Date: Tue, 02 Jan 2018 05:26:27 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338
Message-ID: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/g9TOEs0f6pZot6KeRnt2Nhw1lb8>
Subject: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 02 Jan 2018 05:26:30 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present

 In python3 if there is no BOF marker at the start of the file, but the
 file is still UTF-8 and not ASCII then there is an error when the first
 UTF-8 character is reached.

-- 
------------------------------------+----------------------------------
 Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
     Type:  defect                  |     Status:  new
 Priority:  major                   |  Milestone:  1.37
Component:  Version 2 cli           |    Version:  2.5.x
 Keywords:                          |
------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Mon Jan  1 21:29:26 2018
Return-Path: <trac@tools.ietf.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 8DE2A12421A for <xml2rfc@ietfa.amsl.com>; Mon,  1 Jan 2018 21:29:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 2LWVMk8Jh4gM for <xml2rfc@ietfa.amsl.com>; Mon,  1 Jan 2018 21:29:23 -0800 (PST)
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 EEA4712025C for <xml2rfc@ietf.org>; Mon,  1 Jan 2018 21:29:22 -0800 (PST)
Received: from localhost ([::1]:35665 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWF8c-0005e7-CA; Mon, 01 Jan 2018 21:29:22 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com
X-Trac-Project: xml2rfc
Date: Tue, 02 Jan 2018 05:29:22 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:1
Message-ID: <085.282d98dd04d5c8fa84ce5ceb08ec8cc9@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/7W5Is1jLbj0JxTFrgdpXOpOeF7c>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 02 Jan 2018 05:29:24 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by ietf@augustcellars.com):

 I have made a fix local to my system for this in parser.py about line 440

 OLD
             self.text = six.binary_type(open(self.source, "rU").read(),
 'utf8')

 NEW
             self.text = six.binary_type(open(self.source, "rU",
 encoding='utf8').read(), 'utf8')

 This will make the file be read as utf-8 even if there is not a BOM
 character present in the file.  It may be that this needs to be pushed
 back into the Python2 code as well, but it seems to work just fine based
 on testing several files.

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:1>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Mon Jan  1 22:03:43 2018
Return-Path: <trac@tools.ietf.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 EA5D5120713 for <xml2rfc@ietfa.amsl.com>; Mon,  1 Jan 2018 22:03:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 QlQx9ZxuzKBw for <xml2rfc@ietfa.amsl.com>; Mon,  1 Jan 2018 22:03:40 -0800 (PST)
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 9C32A120227 for <xml2rfc@ietf.org>; Mon,  1 Jan 2018 22:03:40 -0800 (PST)
Received: from localhost ([::1]:36058 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWFfk-0007mD-B5; Mon, 01 Jan 2018 22:03:36 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de
X-Trac-Project: xml2rfc
Date: Tue, 02 Jan 2018 06:03:36 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:2
Message-ID: <085.3b766a21a88c1edcca98faffa7168ece@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/mSuKbeLxObfkZYBy38KeYEiXjGc>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 02 Jan 2018 06:03:42 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by julian.reschke@gmx.de):

 What's relevant should be the XML declaration, and UTF-8 with or without
 BOM should work even without. See XML spec... A proper XML parser ought to
 deal with all these cases...

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:2>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Tue Jan  2 05:10:15 2018
Return-Path: <trac@tools.ietf.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 B64CF1241F3 for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 05:10:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 tDYXQCddAkhC for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 05:10:11 -0800 (PST)
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 A8F15120725 for <xml2rfc@ietf.org>; Tue,  2 Jan 2018 05:10:11 -0800 (PST)
Received: from localhost ([::1]:41346 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWMKR-0006Ks-Vw; Tue, 02 Jan 2018 05:10:04 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de
X-Trac-Project: xml2rfc
Date: Tue, 02 Jan 2018 13:10:03 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:3
Message-ID: <085.c06535d038f2baed6f793569af00be6d@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/Nm8YBFk9yBoIHx2F5e6RieLInCk>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 02 Jan 2018 13:10:13 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by henrik@levkowetz.com):

 Yes, I suspect this is an incorrect bug report.  There's a test to read a
 unicode xml file in the xml2rfc test suite, and the test suite is run for
 python 2.7, 3.3, 3.4, and 3.5 using {{{tox}}} before releases (see
 {{{xml2rfc/trunk/cli/tox.ini}}}).

 I think the proposed fix will break xml2rfc under python3 if it is given
 files with an xml declaration that specifies for instance
 {{{encoding="latin-1"}}}; that is, any encoding different from ascii and
 utf-8.

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:3>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Tue Jan  2 09:57:10 2018
Return-Path: <trac@tools.ietf.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 8818C12D77B for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 09:57:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 f0wpirsSShSH for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 09:57:07 -0800 (PST)
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 01D4F127863 for <xml2rfc@ietf.org>; Tue,  2 Jan 2018 09:57:07 -0800 (PST)
Received: from localhost ([::1]:45791 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWQo8-00053P-Ba; Tue, 02 Jan 2018 09:57:00 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de
X-Trac-Project: xml2rfc
Date: Tue, 02 Jan 2018 17:57:00 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:4
Message-ID: <085.1590cf155f1de70b7b55a5bf20332c21@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/H_tz9R-gh3BGsrgRGUFeKhPFm0E>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 02 Jan 2018 17:57:08 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by ietf@augustcellars.com):

 I have added the .md file which sourced the failing .xml file.  It has
 double quotes that are angled rather than straight.  The fix I gave makes
 this file run.

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:4>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Tue Jan  2 11:10:22 2018
Return-Path: <trac@tools.ietf.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 557D5126B71 for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 11:10:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 U3eT0UunEI55 for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 11:10:19 -0800 (PST)
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 CD9EF1200F3 for <xml2rfc@ietf.org>; Tue,  2 Jan 2018 11:10:19 -0800 (PST)
Received: from localhost ([::1]:47159 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWRx1-00051w-Ay; Tue, 02 Jan 2018 11:10:15 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de
X-Trac-Project: xml2rfc
Date: Tue, 02 Jan 2018 19:10:15 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:5
Message-ID: <085.d2fa1b495928b2fd1d534960b3a35480@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/1wFX_c2IbSVuTMblDqBN-CB3dCA>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 02 Jan 2018 19:10:21 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by henrik@levkowetz.com):

 Ok, but when running with these combinations:

   * xml2rfc 2.8.2, python 3.4.2, Linux 3.2.0
   * xml2rfc 2.8.2, python 3.4.6, OS-X 10.11.6 (El Capitan)

 the provided xml file, with unicode double-quotes, works as-is without any
 fix.

 With which xml2rfc / python / OS versions do you see this failing?

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:5>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Tue Jan  2 11:56:40 2018
Return-Path: <trac@tools.ietf.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 E64BA12700F for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 11:56:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 lRnDBMXFK2rG for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 11:56:37 -0800 (PST)
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 575131200C1 for <xml2rfc@ietf.org>; Tue,  2 Jan 2018 11:56:37 -0800 (PST)
Received: from localhost ([::1]:47807 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWSfo-0000zs-Mj; Tue, 02 Jan 2018 11:56:32 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de
X-Trac-Project: xml2rfc
Date: Tue, 02 Jan 2018 19:56:32 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:6
Message-ID: <085.f706b7875fb6e4be32d2af77258261b7@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/NBf6fD_pexzmQRybZhTojeYtCnM>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 02 Jan 2018 19:56:39 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by ietf@augustcellars.com):

 I am running python 3.6.3 on windows.  I do not know what version is
 running on the Circle CI work that Martin is doing.
 https://circleci.com/gh/quicwg/base-drafts/3856?utm_campaign=build-
 failed&utm_medium=email&utm_source=notification

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:6>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Tue Jan  2 12:49:14 2018
Return-Path: <trac@tools.ietf.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 F216412D834 for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 12:49:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 S9ozMxXzsl7C for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 12:49:11 -0800 (PST)
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 5A388127076 for <xml2rfc@ietf.org>; Tue,  2 Jan 2018 12:49:11 -0800 (PST)
Received: from localhost ([::1]:48709 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWTUg-0000mq-Hj; Tue, 02 Jan 2018 12:49:06 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de
X-Trac-Project: xml2rfc
Date: Tue, 02 Jan 2018 20:49:06 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:7
Message-ID: <085.7e1743753697898dd50aeafd919d2167@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/h9or2S9pipVWb4q868x4YkHGL-g>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 02 Jan 2018 20:49:13 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by henrik@levkowetz.com):

 Ok.  xml2rfc version and windows version, please?

 It would also be good to have the exact failure output.

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:7>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Tue Jan  2 15:44:35 2018
Return-Path: <trac@tools.ietf.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 6D617127058 for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 15:44:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 OhCFyX_f3ygx for <xml2rfc@ietfa.amsl.com>; Tue,  2 Jan 2018 15:44:32 -0800 (PST)
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 A93EA1200F3 for <xml2rfc@ietf.org>; Tue,  2 Jan 2018 15:44:32 -0800 (PST)
Received: from localhost ([::1]:50875 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWWEM-000058-9g; Tue, 02 Jan 2018 15:44:26 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, martin.thomson@gmail.com
X-Trac-Project: xml2rfc
Date: Tue, 02 Jan 2018 23:44:26 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:8
Message-ID: <085.178dce0f6cddf9ee7fe42b3a00513e0f@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, martin.thomson@gmail.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/E2PTcfL5t2gr1ZgAl3jM2dfPn8w>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 02 Jan 2018 23:44:34 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by martin.thomson@gmail.com):

 The docker image I used is here:
 https://hub.docker.com/r/martinthomson/i-d-template/builds/bfea63z4fkjwv6bkacjbfyk/

 As you can see, this is using python 3.5.2 on ubuntu 16.04 with xml2rfc
 2.8.2.

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:8>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Wed Jan  3 06:11:09 2018
Return-Path: <trac@tools.ietf.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 DB9CE126B72 for <xml2rfc@ietfa.amsl.com>; Wed,  3 Jan 2018 06:11:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level: 
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01, 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 aFLIEBM_cbOj for <xml2rfc@ietfa.amsl.com>; Wed,  3 Jan 2018 06:11:06 -0800 (PST)
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 42CBF1201F8 for <xml2rfc@ietf.org>; Wed,  3 Jan 2018 06:11:06 -0800 (PST)
Received: from localhost ([::1]:34146 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWjkx-0006XA-P6; Wed, 03 Jan 2018 06:10:59 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, martin.thomson@gmail.com
X-Trac-Project: xml2rfc
Date: Wed, 03 Jan 2018 14:10:59 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:9
Message-ID: <085.c8eca4d07f418267b70b8bae5c2ff2a6@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, martin.thomson@gmail.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/FIuKcY7jWkuvgGPGuYMFTbLk734>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 03 Jan 2018 14:11:08 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by henrik@levkowetz.com):

 Replying to [comment:8 martin.thomson@…]:
 > The docker image I used is here:
 https://hub.docker.com/r/martinthomson/i-d-template/builds/bfea63z4fkjwv6bkacjbfyk/
 >
 > As you can see, this is using python 3.5.2 on ubuntu 16.04 with xml2rfc
 2.8.2.

 Ahh.  Splendid.  Together with additional info from Jim, this makes me
 believe the problem could be related to environmental settings, rather
 than OS or python version.  Could you try this patch, please:

 {{{
 Index: xml2rfc/parser.py
 ===================================================================
 --- xml2rfc/parser.py   (revision 2395)
 +++ xml2rfc/parser.py   (working copy)
 @@ -437,7 +437,7 @@
          if six.PY2:
              self.text = open(self.source, "rU").read()
          else:
 -            self.text = six.binary_type(open(self.source, "rU").read(),
 'utf8')
 +            self.text = open(self.source, "rUb").read()

          # Get an iterating parser object
          file = six.BytesIO(self.text)

 }}}

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:9>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Wed Jan  3 15:57:50 2018
Return-Path: <trac@tools.ietf.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 D75F3127058 for <xml2rfc@ietfa.amsl.com>; Wed,  3 Jan 2018 15:57:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level: 
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01, 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 pECbWlJ-LWAB for <xml2rfc@ietfa.amsl.com>; Wed,  3 Jan 2018 15:57:47 -0800 (PST)
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 5793A1241F8 for <xml2rfc@ietf.org>; Wed,  3 Jan 2018 15:57:47 -0800 (PST)
Received: from localhost ([::1]:43894 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eWsuj-0002EF-Ie; Wed, 03 Jan 2018 15:57:41 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, martin.thomson@gmail.com
X-Trac-Project: xml2rfc
Date: Wed, 03 Jan 2018 23:57:41 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:10
Message-ID: <085.cb26dc475cf4b3df7b5208087af3e131@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, martin.thomson@gmail.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/DC2jb4XI7yUw46zpSDyQFa8F718>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 03 Jan 2018 23:57:49 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present


Comment (by martin.thomson@gmail.com):

 That change worked for me.

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  new
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:                          |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:10>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Thu Jan  4 05:28:22 2018
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 CD21312D7E5; Thu,  4 Jan 2018 05:28:13 -0800 (PST)
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 auyD8MsZ-VJG; Thu,  4 Jan 2018 05:28:12 -0800 (PST)
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 49130126CD6; Thu,  4 Jan 2018 05:28:12 -0800 (PST)
Received: from henrik by durif.tools.ietf.org with local (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1eX5Z4-0004mF-AR; Thu, 04 Jan 2018 05:28:11 -0800
To: xml2rfc@ietf.org
Cc: codesprints@ietf.org, rfc-markdown@ietf.org
Message-Id: <E1eX5Z4-0004mF-AR@durif.tools.ietf.org>
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Thu, 04 Jan 2018 05:28:10 -0800
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: codesprints@ietf.org, rfc-markdown@ietf.org, xml2rfc@ietf.org
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/LCmtYDznwDPSCBMfBq_jPauQtcg>
Subject: [xml2rfc] New xml2rfc release: v2.8.3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 04 Jan 2018 13:28:14 -0000

Hi,

This is an automatic notification about a new xml2rfc release, 
v2.8.3, generated when running the mkrelease script.

Release notes:

xml2rfc (2.8.3) ietf; urgency=low
  * Changed the python 3 code that reads in an xml file to read as binary, 
    in order to not run into issues with unicode conversion before we have had 
    time to look at the encoding attribute of the <xml/> element.

The preferred way to install xml2rfc is by doing 'pip install xml2rfc',
and 'pip install --upgrade xml2rfc' to upgrade.

The new version is also available through SVN checkout, with
  'svn checkout http://svn.tools.ietf.org/svn/tools/xml2rfc/tags/cli/2.8.3'

Regards,

	Henrik
	(via the mkrelease script)


From nobody Thu Jan  4 05:29:44 2018
Return-Path: <trac@tools.ietf.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 773DA129C5D for <xml2rfc@ietfa.amsl.com>; Thu,  4 Jan 2018 05:29:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 2-WQRTHuLSCp for <xml2rfc@ietfa.amsl.com>; Thu,  4 Jan 2018 05:29:41 -0800 (PST)
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 1D09E126CD6 for <xml2rfc@ietf.org>; Thu,  4 Jan 2018 05:29:41 -0800 (PST)
Received: from localhost ([::1]:55119 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eX5aQ-0005Tw-CK; Thu, 04 Jan 2018 05:29:34 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, martin.thomson@gmail.com
X-Trac-Project: xml2rfc
Date: Thu, 04 Jan 2018 13:29:33 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:11
Message-ID: <085.f7193e47f8f57985d09f7bf8a40855dc@tools.ietf.org>
References: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-Trac-Ticket-ID: 338
In-Reply-To: <070.85c8b64f55242f8069ff9ee9b35240cc@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, ietf@augustcellars.com, julian.reschke@gmx.de, martin.thomson@gmail.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/u_HOxkuV8sj8vHhA1_riURYujKA>
Subject: Re: [xml2rfc] #338 (Version 2 cli): Python3 cannot read a utf-8 file w/o the BOF being present
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 04 Jan 2018 13:29:42 -0000

#338: Python3 cannot read a utf-8 file w/o the BOF being present

Changes (by henrik@levkowetz.com):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Excellent.  I've released 2.8.3 with this fix.

-- 
-------------------------------------+----------------------------------
  Reporter:  ietf@augustcellars.com  |      Owner:  henrik@levkowetz.com
      Type:  defect                  |     Status:  closed
  Priority:  major                   |  Milestone:  1.37
 Component:  Version 2 cli           |    Version:  2.5.x
Resolution:  fixed                   |   Keywords:
-------------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/338#comment:11>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Thu Jan  4 06:52:53 2018
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 B05AE12D87A for <xml2rfc@ietfa.amsl.com>; Thu,  4 Jan 2018 06:52:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.911
X-Spam-Level: 
X-Spam-Status: No, score=-6.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 V7tv3qNAtx18 for <xml2rfc@ietfa.amsl.com>; Thu,  4 Jan 2018 06:52:50 -0800 (PST)
Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:8006::18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 02AA412D878 for <xml2rfc@ietf.org>; Thu,  4 Jan 2018 06:52:50 -0800 (PST)
Received: from localhost ([127.0.0.1] helo=ryuu.rg.net) by ran.psg.com with esmtp (Exim 4.86_2) (envelope-from <randy@psg.com>) id 1eX6sw-0001yi-Eh; Thu, 04 Jan 2018 14:52:46 +0000
Date: Thu, 04 Jan 2018 23:52:44 +0900
Message-ID: <m2fu7lekw3.wl-randy@psg.com>
From: Randy Bush <randy@psg.com>
To: Henrik Levkowetz <henrik@levkowetz.com>
Cc: xml2rfc@ietf.org
In-Reply-To: <E1eX5Z4-0004mF-AR@durif.tools.ietf.org>
References: <E1eX5Z4-0004mF-AR@durif.tools.ietf.org>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/25.3 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/TYcn6GB4CS5GqMGECk4MxU0ZT4Y>
Subject: Re: [xml2rfc] New xml2rfc release: v2.8.3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 04 Jan 2018 14:52:51 -0000

the klutz does it again

macosx 10.13.2 with an intel chip inside :)

ryuu.rg.net:/Users/randy# pip install --upgrade xml2rfc
The directory '/Users/randy/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/randy/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting xml2rfc
  Downloading xml2rfc-2.8.3.tar.gz (1.7MB)
    100% |################################| 1.7MB 781kB/s 
Collecting lxml>=2.2.8 (from xml2rfc)
  Downloading lxml-4.1.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (8.7MB)
    100% |################################| 8.7MB 154kB/s 
Requirement already up-to-date: requests>=2.5.0 in /Library/Python/2.7/site-packages (from xml2rfc)
Collecting six (from xml2rfc)
  Downloading six-1.11.0-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests>=2.5.0->xml2rfc)
  Downloading certifi-2017.11.5-py2.py3-none-any.whl (330kB)
    100% |################################| 337kB 1.3MB/s 
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in /Library/Python/2.7/site-packages (from requests>=2.5.0->xml2rfc)
Requirement already up-to-date: idna<2.7,>=2.5 in /Library/Python/2.7/site-packages (from requests>=2.5.0->xml2rfc)
Requirement already up-to-date: urllib3<1.23,>=1.21.1 in /Library/Python/2.7/site-packages (from requests>=2.5.0->xml2rfc)
Installing collected packages: lxml, six, xml2rfc, certifi
  Found existing installation: lxml 4.0.0
    Uninstalling lxml-4.0.0:
      Successfully uninstalled lxml-4.0.0
  Found existing installation: six 1.4.1
    DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 778, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 754, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 267, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
    copystat(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/var/folders/n5/5bnd84lj4fs52mrhxgb8k5l80000gn/T/pip-KIZ4Lu-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'


From nobody Thu Jan  4 07:51:36 2018
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 E815B1270AB for <xml2rfc@ietfa.amsl.com>; Thu,  4 Jan 2018 07:51:34 -0800 (PST)
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 fVcoObJ-gjoa for <xml2rfc@ietfa.amsl.com>; Thu,  4 Jan 2018 07:51:33 -0800 (PST)
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 9B754126BFD for <xml2rfc@ietf.org>; Thu,  4 Jan 2018 07:51:33 -0800 (PST)
Received: from h-99-61.a357.priv.bahnhof.se ([82.196.99.61]:56819 helo=[192.168.1.120]) 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 1eX7np-0008Sc-1n; Thu, 04 Jan 2018 07:51:33 -0800
To: Randy Bush <randy@psg.com>
References: <E1eX5Z4-0004mF-AR@durif.tools.ietf.org> <m2fu7lekw3.wl-randy@psg.com>
Cc: xml2rfc@ietf.org
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <309be4a5-69c2-6f5f-4911-207156510d78@levkowetz.com>
Date: Thu, 4 Jan 2018 16:51:25 +0100
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: <m2fu7lekw3.wl-randy@psg.com>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Ha0dqDfT6taIs4FS5NqTvEPsrrdVG5SbA"
X-SA-Exim-Connect-IP: 82.196.99.61
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/Moh-UOEp6JnTJ9KdRv_ZA0RhbpQ>
Subject: Re: [xml2rfc] New xml2rfc release: v2.8.3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 04 Jan 2018 15:51:35 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--Ha0dqDfT6taIs4FS5NqTvEPsrrdVG5SbA
Content-Type: multipart/mixed; boundary="uBGSwcloaq8FdB9OvBOLuqwR34pBMeLgH";
 protected-headers="v1"
From: Henrik Levkowetz <henrik@levkowetz.com>
To: Randy Bush <randy@psg.com>
Cc: xml2rfc@ietf.org
Message-ID: <309be4a5-69c2-6f5f-4911-207156510d78@levkowetz.com>
Subject: Re: [xml2rfc] New xml2rfc release: v2.8.3
References: <E1eX5Z4-0004mF-AR@durif.tools.ietf.org>
 <m2fu7lekw3.wl-randy@psg.com>
In-Reply-To: <m2fu7lekw3.wl-randy@psg.com>

--uBGSwcloaq8FdB9OvBOLuqwR34pBMeLgH
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Randy,

On 2018-01-04 15:52, Randy Bush wrote:

=2E..

> Installing collected packages: lxml, six, xml2rfc, certifi
>   Found existing installation: lxml 4.0.0
>     Uninstalling lxml-4.0.0:
>       Successfully uninstalled lxml-4.0.0
>   Found existing installation: six 1.4.1
>     DEPRECATION: Uninstalling a distutils installed project (six) has b=
een deprecated and will be removed in a future version. This is due to th=
e fact that uninstalling a distutils project will only partially uninstal=
l the project.
>     Uninstalling six-1.4.1:

=2E..

Yeah, this happens with some combinations of system- and pip-installed
packages.

Please try:

  $ pip install --upgrade --no-deps xml2rfc

=20
Best,

	Henrik


--uBGSwcloaq8FdB9OvBOLuqwR34pBMeLgH--

--Ha0dqDfT6taIs4FS5NqTvEPsrrdVG5SbA
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJaTk19AAoJEE6bV0uPuxcaGugQAKQ3yhIAUxTQtafe+W8RHwDM
q45pqstATgU6MzpRBTpV7z7/hq0kyyTO5zxDxxjHnR4NQTAnugmWFaIcFnsVN9qo
QmOH7d+05EtDUESnmmwk45ef5zqo+IpRL0/QC1wkVQuV4gngij1cMbUw4l2W8FAE
nSX54FYCO8wUVqOQVZOipAFz1TZOhskXDEEFzyeMns4Qei+1G9jZ4ExZia3XFoeH
Y7d6Pyh92ypxeO1EraHMK3C2Q8ikDRW/lVedOrIexfT0Y5kHj0c2Ue4JTclUZpaU
IVMmFryhr1pE9q06kwPTET6cwaLuhW+ArGckPX0YeY5G8phq9U/gMYrCAzK9N/NL
bs4/JSMEV1o9/AgZp/lToPUsxoyZ63Fgu7LGrJiJ2wC6S+gJtETuEKtTz+VggUR9
RbsoTTW82SY+ndI1Y8IGXZHVMCJ7HXKOHzGXBfBzUBxK0V77HNFB0XhWmTq+WzJG
n4/uE52WPxP5YmQO40nhQeosEDnEjTzJx5CgMXHPkFsk2mvnhgTIXnLTlusGa6yN
9hzfpcCOO4cLJfCG2u/cMH2bxjCnJK+UfO769OnGzhgVCOXHZgDgSv7qVHB62rU/
s5wj4UoJ8iThs9LW8HA6BKvYqa2gbQpT6SaLkT9F8vQCfnKWnFB9H9k3CamMDVVi
BGikfXSz5iGSqMthvXHn
=yxkV
-----END PGP SIGNATURE-----

--Ha0dqDfT6taIs4FS5NqTvEPsrrdVG5SbA--


From nobody Thu Jan  4 07:55:38 2018
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 ACD46127867 for <xml2rfc@ietfa.amsl.com>; Thu,  4 Jan 2018 07:55:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.911
X-Spam-Level: 
X-Spam-Status: No, score=-6.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 Y3wvVCIDzxja for <xml2rfc@ietfa.amsl.com>; Thu,  4 Jan 2018 07:55:35 -0800 (PST)
Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:8006::18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5EB711271DF for <xml2rfc@ietf.org>; Thu,  4 Jan 2018 07:55:35 -0800 (PST)
Received: from localhost ([127.0.0.1] helo=ryuu.rg.net) by ran.psg.com with esmtp (Exim 4.86_2) (envelope-from <randy@psg.com>) id 1eX7rf-0002Fq-Sx; Thu, 04 Jan 2018 15:55:32 +0000
Date: Fri, 05 Jan 2018 00:55:30 +0900
Message-ID: <m27esxehzh.wl-randy@psg.com>
From: Randy Bush <randy@psg.com>
To: Henrik Levkowetz <henrik@levkowetz.com>
Cc: xml2rfc@ietf.org
In-Reply-To: <309be4a5-69c2-6f5f-4911-207156510d78@levkowetz.com>
References: <E1eX5Z4-0004mF-AR@durif.tools.ietf.org> <m2fu7lekw3.wl-randy@psg.com> <309be4a5-69c2-6f5f-4911-207156510d78@levkowetz.com>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/25.3 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/PLo18RvfD2cgem0fbssA1Eb_JPM>
Subject: Re: [xml2rfc] New xml2rfc release: v2.8.3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 04 Jan 2018 15:55:37 -0000

> Please try:
> 
>   $ pip install --upgrade --no-deps xml2rfc

bingo

thanks

randy


From nobody Sat Jan 13 16:32:05 2018
Return-Path: <trac@tools.ietf.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 6B7AE12E043 for <xml2rfc@ietfa.amsl.com>; Sat, 13 Jan 2018 16:32:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.01
X-Spam-Level: 
X-Spam-Status: No, score=-0.01 tagged_above=-999 required=5 tests=[T_RP_MATCHES_RCVD=-0.01] 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 EM_DvRcm5aUn for <xml2rfc@ietfa.amsl.com>; Sat, 13 Jan 2018 16:32:02 -0800 (PST)
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 091C21242EA for <xml2rfc@ietf.org>; Sat, 13 Jan 2018 16:32:02 -0800 (PST)
Received: from localhost ([::1]:58593 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eaWDQ-0003GZ-UV; Sat, 13 Jan 2018 16:32:00 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, scott@kitterman.com
X-Trac-Project: xml2rfc
Date: Sun, 14 Jan 2018 00:32:00 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://tools.ietf.org/tools/xml2rfc/trac/ticket/339
Message-ID: <067.f10dcb0d0b7da9de16ccd5a1257ec599@tools.ietf.org>
X-Trac-Ticket-ID: 339
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, scott@kitterman.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/9uWD0zzc4aqUue53ofdjETs1I_g>
Subject: [xml2rfc] #339 (Version 2 cli): Please add test.py to MANIFEST.in
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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, 14 Jan 2018 00:32:03 -0000

#339: Please add test.py to MANIFEST.in

 test.py is no longer shipped with the xml2rfc tarball, which precludes
 running tests.  In Debian we would like to run the tests during the
 package build.  This is with 2.8.3.

 Scott K

-- 
---------------------------------+----------------------------------
 Reporter:  scott@kitterman.com  |      Owner:  henrik@levkowetz.com
     Type:  defect               |     Status:  new
 Priority:  medium               |  Milestone:
Component:  Version 2 cli        |    Version:
 Keywords:                       |
---------------------------------+----------------------------------

Ticket URL: <https://tools.ietf.org/tools/xml2rfc/trac/ticket/339>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Sun Jan 14 11:06:10 2018
Return-Path: <trac@tools.ietf.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 217B412D811 for <xml2rfc@ietfa.amsl.com>; Sun, 14 Jan 2018 11:06:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 W8rux-2fu68U for <xml2rfc@ietfa.amsl.com>; Sun, 14 Jan 2018 11:06:07 -0800 (PST)
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 A4D2D12751F for <xml2rfc@ietf.org>; Sun, 14 Jan 2018 11:06:07 -0800 (PST)
Received: from localhost ([::1]:50118 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1eanbb-0005d3-Fd; Sun, 14 Jan 2018 11:06:07 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com
X-Trac-Project: xml2rfc
Date: Sun, 14 Jan 2018 19:06:07 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: /ticket/339#comment:1
Message-ID: <082.4066fd7f97d6ef33a99a0301340eef96@tools.ietf.org>
References: <067.f10dcb0d0b7da9de16ccd5a1257ec599@tools.ietf.org>
X-Trac-Ticket-ID: 339
In-Reply-To: <067.f10dcb0d0b7da9de16ccd5a1257ec599@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/0qXhI43ZiNXRIhSF6CTucBZPFRg>
Subject: Re: [xml2rfc] #339 (Version 2 cli): Please add test.py to MANIFEST.in
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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, 14 Jan 2018 19:06:09 -0000

#339: Please add test.py to MANIFEST.in

Changes (by henrik@levkowetz.com):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Fixed in [2401]:

 Included test.py and tox.ini in the package MANIFEST in order to make
 testing possible during distro packaging.  Fixes issue #339.

-- 
----------------------------------+----------------------------------
  Reporter:  scott@kitterman.com  |      Owner:  henrik@levkowetz.com
      Type:  defect               |     Status:  closed
  Priority:  medium               |  Milestone:
 Component:  Version 2 cli        |    Version:
Resolution:  fixed                |   Keywords:
----------------------------------+----------------------------------

Ticket URL: </ticket/339#comment:1>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Sun Jan 14 11:09:02 2018
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 9C3B712D82C; Sun, 14 Jan 2018 11:08:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.5
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 tagged_above=-999 required=5 tests=[BAYES_05=-0.5] 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 gfqtZLJJQLi7; Sun, 14 Jan 2018 11:08:50 -0800 (PST)
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 6E6E512751F; Sun, 14 Jan 2018 11:08:50 -0800 (PST)
Received: from henrik by durif.tools.ietf.org with local (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1eaneE-0001Kx-CQ; Sun, 14 Jan 2018 11:08:50 -0800
To: xml2rfc@ietf.org
Cc: codesprints@ietf.org, rfc-markdown@ietf.org
Message-Id: <E1eaneE-0001Kx-CQ@durif.tools.ietf.org>
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Sun, 14 Jan 2018 11:08:50 -0800
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: codesprints@ietf.org, rfc-markdown@ietf.org, xml2rfc@ietf.org
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/FeundhRT2IlAhkCbturtZ489KoU>
Subject: [xml2rfc] New xml2rfc release: v2.8.4
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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, 14 Jan 2018 19:08:52 -0000

Hi,

This is an automatic notification about a new xml2rfc release, 
v2.8.4, generated when running the mkrelease script.

Release notes:

xml2rfc (2.8.4) ietf; urgency=low
  * Included test.py and tox.ini in the package MANIFEST in order to make 
    testing possible during distro packaging.  Fixes issue #339.

The preferred way to install xml2rfc is by doing 'pip install xml2rfc',
and 'pip install --upgrade xml2rfc' to upgrade.

The new version is also available through SVN checkout, with
  'svn checkout http://svn.tools.ietf.org/svn/tools/xml2rfc/tags/cli/2.8.4'

Regards,

	Henrik
	(via the mkrelease script)


From nobody Fri Jan 19 18:57:12 2018
Return-Path: <trac@tools.ietf.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 E03B11270A3 for <xml2rfc@ietfa.amsl.com>; Fri, 19 Jan 2018 18:57:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 h6Ivej-kod8q for <xml2rfc@ietfa.amsl.com>; Fri, 19 Jan 2018 18:57:09 -0800 (PST)
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 C3B77126CBF for <xml2rfc@ietf.org>; Fri, 19 Jan 2018 18:57:09 -0800 (PST)
Received: from localhost ([::1]:35961 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1ecjLA-0007e2-Ee; Fri, 19 Jan 2018 18:57:08 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, spf2@kitterman.com
X-Trac-Project: xml2rfc
Date: Sat, 20 Jan 2018 02:57:08 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340
Message-ID: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-Trac-Ticket-ID: 340
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, spf2@kitterman.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/f2Yco4DUfJdIiMnExmpPZf9IE3s>
Subject: [xml2rfc] #340 (Version 2 cli): Deprecation warning when running with python3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Sat, 20 Jan 2018 02:57:11 -0000

#340: Deprecation warning when running with python3

 Running the tests with the current (and probably any) xml2rfc version on
 python3 yields the following warning:

 test_header_footer (__main__.WriterDraftTest) ...
 /tmp/buildd/xml2rfc-2.8.4/xml2rfc/parser.py:440: DeprecationWarning: 'U'
 mode is deprecated
   self.text = open(self.source, "rUb").read()

 It would be nice to see this resolved before it turns into an error.  The
 fix is trivial:

 diff --git a/xml2rfc/parser.py b/xml2rfc/parser.py
 index 9bd0631..03b4a25 100644
 --- a/xml2rfc/parser.py
 +++ b/xml2rfc/parser.py
 @@ -437,7 +437,7 @@ class XmlRfcParser:
          if six.PY2:
              self.text = open(self.source, "rU").read()
          else:
 -            self.text = open(self.source, "rUb").read()
 +            self.text = open(self.source, "rb").read()

          # Get an iterating parser object
          file = six.BytesIO(self.text)

 Thanks for your work on xml2rfc,

 Scott K

-- 
--------------------------------+----------------------------------
 Reporter:  spf2@kitterman.com  |      Owner:  henrik@levkowetz.com
     Type:  defect              |     Status:  new
 Priority:  medium              |  Milestone:
Component:  Version 2 cli       |    Version:  2.4.x
 Keywords:                      |
--------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Fri Jan 19 18:58:16 2018
Return-Path: <trac@tools.ietf.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 048AD1270A3 for <xml2rfc@ietfa.amsl.com>; Fri, 19 Jan 2018 18:58:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 1xqja41RQScr for <xml2rfc@ietfa.amsl.com>; Fri, 19 Jan 2018 18:58:13 -0800 (PST)
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 A3B62126CBF for <xml2rfc@ietf.org>; Fri, 19 Jan 2018 18:58:13 -0800 (PST)
Received: from localhost ([::1]:35983 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1ecjMD-00086u-H9; Fri, 19 Jan 2018 18:58:13 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, spf2@kitterman.com
X-Trac-Project: xml2rfc
Date: Sat, 20 Jan 2018 02:58:13 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:1
Message-ID: <081.fdfe984d39b0c8052281daa315c0e168@tools.ietf.org>
References: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-Trac-Ticket-ID: 340
In-Reply-To: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, spf2@kitterman.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/NK7TMqUh3VtH6yG_XTqYSajrmtg>
Subject: Re: [xml2rfc] #340 (Version 2 cli): Deprecation warning when running with python3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Sat, 20 Jan 2018 02:58:15 -0000

#340: Deprecation warning when running with python3


Comment (by spf2@kitterman.com):

 Trac didn't handle my diff very well.  To be clear, the fix is to delete
 the "U" from line 440.

 Scott K

-- 
---------------------------------+----------------------------------
  Reporter:  spf2@kitterman.com  |      Owner:  henrik@levkowetz.com
      Type:  defect              |     Status:  new
  Priority:  medium              |  Milestone:
 Component:  Version 2 cli       |    Version:  2.4.x
Resolution:                      |   Keywords:
---------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:1>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Sat Jan 20 08:02:34 2018
Return-Path: <trac@tools.ietf.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 888C912D777 for <xml2rfc@ietfa.amsl.com>; Sat, 20 Jan 2018 08:02:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 ZGZ5Dlk6a2SY for <xml2rfc@ietfa.amsl.com>; Sat, 20 Jan 2018 08:02:31 -0800 (PST)
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 2625B120726 for <xml2rfc@ietf.org>; Sat, 20 Jan 2018 08:02:31 -0800 (PST)
Received: from localhost ([::1]:50502 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1ecvbC-0000JO-Mh; Sat, 20 Jan 2018 08:02:30 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, spf2@kitterman.com
X-Trac-Project: xml2rfc
Date: Sat, 20 Jan 2018 16:02:30 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:2
Message-ID: <081.b7388018ff960eb2f3ed0cabe1ba7b5d@tools.ietf.org>
References: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-Trac-Ticket-ID: 340
In-Reply-To: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, spf2@kitterman.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/1MGmSF0IewR-FNW5RkDp60oH1HQ>
Subject: Re: [xml2rfc] #340 (Version 2 cli): Deprecation warning when running with python3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Sat, 20 Jan 2018 16:02:32 -0000

#340: Deprecation warning when running with python3


Old description:

> Running the tests with the current (and probably any) xml2rfc version on
> python3 yields the following warning:
>
> test_header_footer (__main__.WriterDraftTest) ...
> /tmp/buildd/xml2rfc-2.8.4/xml2rfc/parser.py:440: DeprecationWarning: 'U'
> mode is deprecated
>   self.text = open(self.source, "rUb").read()
>
> It would be nice to see this resolved before it turns into an error.  The
> fix is trivial:
>
> diff --git a/xml2rfc/parser.py b/xml2rfc/parser.py
> index 9bd0631..03b4a25 100644
> --- a/xml2rfc/parser.py
> +++ b/xml2rfc/parser.py
> @@ -437,7 +437,7 @@ class XmlRfcParser:
>          if six.PY2:
>              self.text = open(self.source, "rU").read()
>          else:
> -            self.text = open(self.source, "rUb").read()
> +            self.text = open(self.source, "rb").read()
>
>          # Get an iterating parser object
>          file = six.BytesIO(self.text)
>
> Thanks for your work on xml2rfc,
>
> Scott K

New description:

 Running the tests with the current (and probably any) xml2rfc version on
 python3 yields the following warning:

 test_header_footer (__main__.WriterDraftTest) ...
 /tmp/buildd/xml2rfc-2.8.4/xml2rfc/parser.py:440: DeprecationWarning: 'U'
 mode is deprecated
   self.text = open(self.source, "rUb").read()

 It would be nice to see this resolved before it turns into an error.  The
 fix is trivial:

 {{{
 diff --git a/xml2rfc/parser.py b/xml2rfc/parser.py
 index 9bd0631..03b4a25 100644
 --- a/xml2rfc/parser.py
 +++ b/xml2rfc/parser.py
 @@ -437,7 +437,7 @@ class XmlRfcParser:
          if six.PY2:
              self.text = open(self.source, "rU").read()
          else:
 -            self.text = open(self.source, "rUb").read()
 +            self.text = open(self.source, "rb").read()

          # Get an iterating parser object
          file = six.BytesIO(self.text)
 }}}

 Thanks for your work on xml2rfc,

 Scott K

--

Comment (by henrik@levkowetz.com):

 Thanks, Scott.

 However, I'm not sure the fix is that simple -- there's a reason why the
 Universal newline flag was needed (even if I don't recall what prompted
 it, without going back in the commit history).  Removing the 'U' flag
 would also mean investigating why it was needed, and probably adding code
 to handle newline normalization after reading the file.

-- 
---------------------------------+----------------------------------
  Reporter:  spf2@kitterman.com  |      Owner:  henrik@levkowetz.com
      Type:  defect              |     Status:  new
  Priority:  medium              |  Milestone:
 Component:  Version 2 cli       |    Version:  2.4.x
Resolution:                      |   Keywords:
---------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:2>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Sat Jan 20 22:39:59 2018
Return-Path: <trac@tools.ietf.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 C291B126CD8 for <xml2rfc@ietfa.amsl.com>; Sat, 20 Jan 2018 22:39:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 H6g2H25dMmVN for <xml2rfc@ietfa.amsl.com>; Sat, 20 Jan 2018 22:39:56 -0800 (PST)
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 3B09F126B6D for <xml2rfc@ietf.org>; Sat, 20 Jan 2018 22:39:56 -0800 (PST)
Received: from localhost ([::1]:37097 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1ed9IJ-0003bV-My; Sat, 20 Jan 2018 22:39:55 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, spf2@kitterman.com
X-Trac-Project: xml2rfc
Date: Sun, 21 Jan 2018 06:39:55 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:3
Message-ID: <081.be1d6397b3edcc8cdd62667c011bcabf@tools.ietf.org>
References: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-Trac-Ticket-ID: 340
In-Reply-To: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, spf2@kitterman.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/wHN3euWBADJpJMb7sOtNzX5XTGI>
Subject: Re: [xml2rfc] #340 (Version 2 cli): Deprecation warning when running with python3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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, 21 Jan 2018 06:39:58 -0000

#340: Deprecation warning when running with python3


Comment (by spf2@kitterman.com):

 I checked the documentation and whatever it was there for, it serves no
 purpose how.  Here's what help(open) has to say about it in python3.4:

     'U' mode is deprecated and will raise an exception in future versions
     of Python.  It has no effect in Python 3.  Use newline to control
     universal newlines mode.

 Thanks for fixing the description.

 Scott K

-- 
---------------------------------+----------------------------------
  Reporter:  spf2@kitterman.com  |      Owner:  henrik@levkowetz.com
      Type:  defect              |     Status:  new
  Priority:  medium              |  Milestone:
 Component:  Version 2 cli       |    Version:  2.4.x
Resolution:                      |   Keywords:
---------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:3>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Sun Jan 21 11:42:55 2018
Return-Path: <trac@tools.ietf.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 04A1312D77E for <xml2rfc@ietfa.amsl.com>; Sun, 21 Jan 2018 11:42:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 gBf9rJTI-QsT for <xml2rfc@ietfa.amsl.com>; Sun, 21 Jan 2018 11:42:52 -0800 (PST)
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 486BC127337 for <xml2rfc@ietf.org>; Sun, 21 Jan 2018 11:42:52 -0800 (PST)
Received: from localhost ([::1]:52710 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1edLVy-0005sH-VB; Sun, 21 Jan 2018 11:42:50 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, spf2@kitterman.com
X-Trac-Project: xml2rfc
Date: Sun, 21 Jan 2018 19:42:50 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:4
Message-ID: <081.6fbb50fb6c0a55f7f8359ad6e051479e@tools.ietf.org>
References: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-Trac-Ticket-ID: 340
In-Reply-To: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, spf2@kitterman.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/edF9Kj5CLVTtnR2aMAKRA2R_0nY>
Subject: Re: [xml2rfc] #340 (Version 2 cli): Deprecation warning when running with python3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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, 21 Jan 2018 19:42:54 -0000

#340: Deprecation warning when running with python3


Comment (by henrik@levkowetz.com):

 Sure, and thanks for the help text pointing at the newline= parameter.

 Now running tests for the diff:
 {{{
 Index: xml2rfc/parser.py
 ===================================================================
 --- xml2rfc/parser.py   (revision 2404)
 +++ xml2rfc/parser.py   (working copy)
 @@ -435,9 +435,11 @@
              xml2rfc.log.write('Parsing file', self.source)

          if six.PY2:
 -            self.text = open(self.source, "rU").read()
 +            with open(self.source, "rU") as f:
 +                self.text = f.read()
          else:
 -            self.text = open(self.source, "rUb").read()
 +            with open(self.source, "rb", newline=None) as f:
 +                self.text = f.read()

          # Get an iterating parser object
          file = six.BytesIO(self.text)
 }}}

 (Running tests under Py3.5, there was also a warning for the dangling open
 file created by the earlier code).

-- 
---------------------------------+----------------------------------
  Reporter:  spf2@kitterman.com  |      Owner:  henrik@levkowetz.com
      Type:  defect              |     Status:  new
  Priority:  medium              |  Milestone:
 Component:  Version 2 cli       |    Version:  2.4.x
Resolution:                      |   Keywords:
---------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:4>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Sun Jan 21 11:48:32 2018
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 48BF01271FD; Sun, 21 Jan 2018 11:48:19 -0800 (PST)
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 E6bd6pJOBbbt; Sun, 21 Jan 2018 11:48:17 -0800 (PST)
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 AC133120726; Sun, 21 Jan 2018 11:48:17 -0800 (PST)
Received: from henrik by durif.tools.ietf.org with local (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1edLbF-0005md-KS; Sun, 21 Jan 2018 11:48:17 -0800
To: xml2rfc@ietf.org
Cc: codesprints@ietf.org, rfc-markdown@ietf.org
Message-Id: <E1edLbF-0005md-KS@durif.tools.ietf.org>
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Sun, 21 Jan 2018 11:48:17 -0800
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Rcpt-To: codesprints@ietf.org, rfc-markdown@ietf.org, xml2rfc@ietf.org
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/oxRx_l2eD3ylfZlKDsw7k2k0jlM>
Subject: [xml2rfc] New xml2rfc release: v2.8.5
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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, 21 Jan 2018 19:48:19 -0000

Hi,

This is an automatic notification about a new xml2rfc release, 
v2.8.5, generated when running the mkrelease script.

Release notes:

xml2rfc (2.8.5) ietf; urgency=low
  * Changed a file open under python3 to use the newline= parameter to open()
    instead of the deprecated 'U' mode (thanks to spf2@kitterman.com for
    pointing that out).  Also changed the code to avoid a dangling open file
    handle.

The preferred way to install xml2rfc is by doing 'pip install xml2rfc',
and 'pip install --upgrade xml2rfc' to upgrade.

The new version is also available through SVN checkout, with
  'svn checkout http://svn.tools.ietf.org/svn/tools/xml2rfc/tags/cli/2.8.5'

Regards,

	Henrik
	(via the mkrelease script)


From nobody Sun Jan 21 11:53:26 2018
Return-Path: <trac@tools.ietf.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 D74DB1271FD for <xml2rfc@ietfa.amsl.com>; Sun, 21 Jan 2018 11:53:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] 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 d4EyDuhbWrxD for <xml2rfc@ietfa.amsl.com>; Sun, 21 Jan 2018 11:53:23 -0800 (PST)
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 25AE1120726 for <xml2rfc@ietf.org>; Sun, 21 Jan 2018 11:53:23 -0800 (PST)
Received: from localhost ([::1]:53047 helo=durif.tools.ietf.org) by durif.tools.ietf.org with esmtp (Exim 4.80) (envelope-from <trac@tools.ietf.org>) id 1edLgB-0007xR-0X; Sun, 21 Jan 2018 11:53:23 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: "xml2rfc issue tracker" <trac@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Cc: xml2rfc@ietf.org
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: henrik@levkowetz.com, spf2@kitterman.com
X-Trac-Project: xml2rfc
Date: Sun, 21 Jan 2018 19:53:22 -0000
X-URL: http://tools.ietf.org/tools/xml2rfc/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:5
Message-ID: <081.add3d5cbb04241e7734924cf406bda85@tools.ietf.org>
References: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-Trac-Ticket-ID: 340
In-Reply-To: <066.debda772cf6a62db0472e0c1893419d5@tools.ietf.org>
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: henrik@levkowetz.com, spf2@kitterman.com, xml2rfc@ietf.org
X-SA-Exim-Mail-From: trac@tools.ietf.org
X-SA-Exim-Scanned: No (on durif.tools.ietf.org); SAEximRunCond expanded to false
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/C9q7ovsyzVyictiVeVuyODFAM-4>
Subject: Re: [xml2rfc] #340 (Version 2 cli): Deprecation warning when running with python3
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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, 21 Jan 2018 19:53:25 -0000

#340: Deprecation warning when running with python3

Changes (by henrik@levkowetz.com):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 Fixed in [2405]:

     Changed a file open mode under python3 to use the newline= parameter
 to
     open() instead of the deprecated 'U' mode (thanks to
 spf2@kitterman.com for
     pointing that out).  Also changed the code to avoid a dangling open
 file
     handle.

-- 
---------------------------------+----------------------------------
  Reporter:  spf2@kitterman.com  |      Owner:  henrik@levkowetz.com
      Type:  defect              |     Status:  closed
  Priority:  medium              |  Milestone:
 Component:  Version 2 cli       |    Version:  2.4.x
Resolution:  fixed               |   Keywords:
---------------------------------+----------------------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/340#comment:5>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>


From nobody Thu Jan 25 11:18:18 2018
Return-Path: <mscurtescu@google.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 AA85A12EA81 for <xml2rfc@ietfa.amsl.com>; Thu, 25 Jan 2018 11:18:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.009
X-Spam-Level: 
X-Spam-Status: No, score=-2.009 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 dAUPRmHSBt0E for <xml2rfc@ietfa.amsl.com>; Thu, 25 Jan 2018 11:18:08 -0800 (PST)
Received: from mail-vk0-x243.google.com (mail-vk0-x243.google.com [IPv6:2607:f8b0:400c:c05::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 495DE12EA57 for <xml2rfc@ietf.org>; Thu, 25 Jan 2018 11:18:08 -0800 (PST)
Received: by mail-vk0-x243.google.com with SMTP id e125so5528835vkh.13 for <xml2rfc@ietf.org>; Thu, 25 Jan 2018 11:18:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=yWPo7eZUKVir6SmzaQbh1dBtd2SdM7D4kqn3+0uy5zA=; b=G67EA0WkCANWCOfvv/aIG6Vd9XnDziaoBqrNXQWrFGZlaRSdzBB+hcvW7onFVR/2iM BeEPjLfncISWFbRksBgN2VFdloWqKV0IDWMVstAWCNWXD2bH5oiXEs7hAndznlFCCsgH VPGTcx5xoWiK4ZtbLHYKQBilSmy8oafbjr/IrG6WMNClMIPbFcnJOP1+pov4UuUxNMBh XF9x3mmUo+WGVepzjVrJV4VCJ2efQkaoX790db1pPzwDcjYjgKQnt9yu5Vi3K5Xq8uep JmwNyFXZJ1K0woMYBPiDS52n9nF3oz/ai3JXsPwXu8wOU6pZn5ehrai1l6+pd6uKNyZs 9ZlA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yWPo7eZUKVir6SmzaQbh1dBtd2SdM7D4kqn3+0uy5zA=; b=dNtruItrqbjr4OKF/5rZ2bz3gzfPjxNnPxKTxyl1waiknmBn36ohZuRQ/N0fZqsNlS utRMYkjl6t6eW3ncmorcx9PGAmMaMClwHaxt5q6OjdD1GNw2Kn8Vv3lLppIfgxDrIIsd j0sgFyHvxCbchlCp/jj5/5BH8y2bFHR/RCq6U2woe1PS0Eg8LxeJuoTWy3W7Onv8PYVN 8qH4wikH80Ar+CxOM1/4iVhg/VYnDZOGNdKHf5s0TuqxKQee82n80FbzoMJhJRj9gR/t LPoAtOnQo0EyElYXwVQrnMtdPnFuy39xjKFfXj/oUsaehQR28yu3uY6GyPw6HXNVS7B3 HRXQ==
X-Gm-Message-State: AKwxytcYCZs+1Z15IJIXxT2j1lQQk00N8+3zl2p2YB9vQ3XCdrquABQ+ bE7gDYg6EsaVYb56JQ4pXX+Fsl4/P8N1lcHGumXDM6nbGk8=
X-Google-Smtp-Source: AH8x227BxTkZ0Pwtfsm1S9zOfQnxVIZWsDJi1i8kZcaTzFh3MBsGnWlJzmrsawMS8z/hRRDiIiQvm8nlUQi3v6R7CG8=
X-Received: by 10.31.45.1 with SMTP id t1mr2569346vkt.12.1516907886621; Thu, 25 Jan 2018 11:18:06 -0800 (PST)
MIME-Version: 1.0
Received: by 10.31.155.66 with HTTP; Thu, 25 Jan 2018 11:17:46 -0800 (PST)
From: Marius Scurtescu <mscurtescu@google.com>
Date: Thu, 25 Jan 2018 11:17:46 -0800
Message-ID: <CAGdjJp+UQ23k1xqG54u-suCSiiQkX4gF3bFYQ=aHox7b8FPUFw@mail.gmail.com>
To: xml2rfc@ietf.org
Content-Type: multipart/alternative; boundary="001a11c03a36bdee2605639ea317"
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/BtQPoEk3pP-O90m4S7F0HGri8Vs>
Subject: [xml2rfc] epub broken
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 25 Jan 2018 19:18:16 -0000

--001a11c03a36bdee2605639ea317
Content-Type: text/plain; charset="UTF-8"

Trying to generate epub I get the following error:
Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 19, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 323, in
main
    plumber.run()
  File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 1021,
in run
    from calibre.ebooks.oeb.transforms.flatcss import CSSFlattener
  File "/usr/lib/calibre/calibre/ebooks/oeb/transforms/flatcss.py", line
17, in <module>
    from calibre.ebooks.oeb.stylizer import Stylizer
  File "/usr/lib/calibre/calibre/ebooks/oeb/stylizer.py", line 23, in
<module>
    from lxml.cssselect import css_to_xpath, ExpressionError,
SelectorSyntaxError
ImportError: cannot import name css_to_xpath

The experimental version leads to the exact same error.

This is the XML that I wanted to convert:
https://tools.ietf.org/id/draft-ietf-secevent-token-04.xml

Suggestions?

Thanks,
Marius

--001a11c03a36bdee2605639ea317
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Trying to generate epub I get the following error:<div><di=
v>Traceback (most recent call last):</div><div>=C2=A0 File &quot;/usr/bin/e=
book-convert&quot;, line 19, in &lt;module&gt;</div><div>=C2=A0 =C2=A0 sys.=
exit(main())</div><div>=C2=A0 File &quot;/usr/lib/calibre/calibre/ebooks/co=
nversion/cli.py&quot;, line 323, in main</div><div>=C2=A0 =C2=A0 plumber.ru=
n()</div><div>=C2=A0 File &quot;/usr/lib/calibre/calibre/ebooks/conversion/=
plumber.py&quot;, line 1021, in run</div><div>=C2=A0 =C2=A0 from calibre.eb=
ooks.oeb.transforms.flatcss import CSSFlattener</div><div>=C2=A0 File &quot=
;/usr/lib/calibre/calibre/ebooks/oeb/transforms/flatcss.py&quot;, line 17, =
in &lt;module&gt;</div><div>=C2=A0 =C2=A0 from calibre.ebooks.oeb.stylizer =
import Stylizer</div><div>=C2=A0 File &quot;/usr/lib/calibre/calibre/ebooks=
/oeb/stylizer.py&quot;, line 23, in &lt;module&gt;</div><div>=C2=A0 =C2=A0 =
from lxml.cssselect import css_to_xpath, ExpressionError, SelectorSyntaxErr=
or</div><div>ImportError: cannot import name css_to_xpath</div><div><br></d=
iv><div>The experimental version leads to the exact same error.</div><div><=
br></div><div>This is the XML that I wanted to convert:</div><div><a href=
=3D"https://tools.ietf.org/id/draft-ietf-secevent-token-04.xml">https://too=
ls.ietf.org/id/draft-ietf-secevent-token-04.xml</a><br></div><div><br></div=
><div>Suggestions?</div><div><br></div><div>Thanks,</div><div><div class=3D=
"gmail_signature">Marius</div></div>
</div></div>

--001a11c03a36bdee2605639ea317--


From nobody Thu Jan 25 13:26:47 2018
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 C406012EAB5 for <xml2rfc@ietfa.amsl.com>; Thu, 25 Jan 2018 13:26:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 JwqAXyc8jaLT for <xml2rfc@ietfa.amsl.com>; Thu, 25 Jan 2018 13:26:43 -0800 (PST)
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 11E2612EAB0 for <xml2rfc@ietf.org>; Thu, 25 Jan 2018 13:26:43 -0800 (PST)
Received: from h-99-61.a357.priv.bahnhof.se ([82.196.99.61]:52171 helo=[192.168.1.120]) 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 1eep2g-0006Yi-3l; Thu, 25 Jan 2018 13:26:42 -0800
To: Marius Scurtescu <mscurtescu@google.com>, xml2rfc@ietf.org
References: <CAGdjJp+UQ23k1xqG54u-suCSiiQkX4gF3bFYQ=aHox7b8FPUFw@mail.gmail.com>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <1c7597b9-8c41-e068-6813-c730d3dc3f09@levkowetz.com>
Date: Thu, 25 Jan 2018 22:26:34 +0100
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: <CAGdjJp+UQ23k1xqG54u-suCSiiQkX4gF3bFYQ=aHox7b8FPUFw@mail.gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WuNf0MKOMnris03hStlNTEjuBRvhVvv1t"
X-SA-Exim-Connect-IP: 82.196.99.61
X-SA-Exim-Rcpt-To: xml2rfc@ietf.org, mscurtescu@google.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/smMofsyxwDOdH3lP6BK9ANYp_y8>
Subject: Re: [xml2rfc] epub broken
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 25 Jan 2018 21:26:45 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--WuNf0MKOMnris03hStlNTEjuBRvhVvv1t
Content-Type: multipart/mixed; boundary="aQ8Bi1HqeMH0NSALO99f5E7VnCWltMlxv";
 protected-headers="v1"
From: Henrik Levkowetz <henrik@levkowetz.com>
To: Marius Scurtescu <mscurtescu@google.com>, xml2rfc@ietf.org
Message-ID: <1c7597b9-8c41-e068-6813-c730d3dc3f09@levkowetz.com>
Subject: Re: [xml2rfc] epub broken
References: <CAGdjJp+UQ23k1xqG54u-suCSiiQkX4gF3bFYQ=aHox7b8FPUFw@mail.gmail.com>
In-Reply-To: <CAGdjJp+UQ23k1xqG54u-suCSiiQkX4gF3bFYQ=aHox7b8FPUFw@mail.gmail.com>

--aQ8Bi1HqeMH0NSALO99f5E7VnCWltMlxv
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hi Marius,

On 2018-01-25 20:17, Marius Scurtescu wrote:
> Trying to generate epub I get the following error:
> Traceback (most recent call last):
>   File "/usr/bin/ebook-convert", line 19, in <module>
>     sys.exit(main())
>   File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 323, i=
n
> main
>     plumber.run()
>   File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 10=
21,
> in run
>     from calibre.ebooks.oeb.transforms.flatcss import CSSFlattener
>   File "/usr/lib/calibre/calibre/ebooks/oeb/transforms/flatcss.py", lin=
e
> 17, in <module>
>     from calibre.ebooks.oeb.stylizer import Stylizer
>   File "/usr/lib/calibre/calibre/ebooks/oeb/stylizer.py", line 23, in
> <module>
>     from lxml.cssselect import css_to_xpath, ExpressionError,
> SelectorSyntaxError
> ImportError: cannot import name css_to_xpath
>=20
> The experimental version leads to the exact same error.
>=20
> This is the XML that I wanted to convert:
> https://tools.ietf.org/id/draft-ietf-secevent-token-04.xml
>=20
> Suggestions?

It seems that the interface to cssselect within lxml has changed with
lxml 3.0, and the calibre ebook-convert uses the old inteface.  I've
now told the ebook-convert wrapper to use a local python environment
where I've installed a compatible version of lxml, and things work
when I test the web service and from the command line here.  Could you
please check to see that this now work for you?


Best regards,

	Henrik





--aQ8Bi1HqeMH0NSALO99f5E7VnCWltMlxv--

--WuNf0MKOMnris03hStlNTEjuBRvhVvv1t
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJaakuKAAoJEE6bV0uPuxcaHn0P/3KDW82ooWkEHXkA4DDTaBbP
eumgu9T5SNTGhh67cBgTBCLeQao6qKO2s9j9+WHl+40EE0qcWpC/QHg6RlttvpF8
QlitR7lIGCYg8Ol9JueffYvNZU8HtL5wZqEZRD+JvTKK0MRa0I4fU6veSBSWpZxg
Lnod26LsEhrfyiPp3pA/XrmfAWUXvskQ8IbOwpBiaQDFMIlMkTZr1GQp9JECHVmO
5608uC0LRCPxZN5cpgYjwBut5eRfzi/xd6kOSW6wzW8AQBWx/AIHVv2vA7cG81hl
ZbYwYJ/uSEnFBCCrGp+cZop+z9a8DlJQPmgIZYuHlL9idIAPi/jMJ5p97G1SZByv
RZckQTcpjWQkZCWIoJuViHhYfNnuMG4eI062lfe2Rf0UmMb/5sPskL9g4XaQHTiG
gWNaed4IHg6HHwvM+Q7bQqLRH85EjX8worzbLsZMmsA/fEB4p1BaI5WvEYqL20oa
XxrgkdW0DooZKJs+x81HzK3x9DOR+xx6Cj/p7j09N7s0nCOHEKpQ3tWG6SYctLm0
n+5eI1y5+qGWgF30BzuUEozZ48FLI7wy4ZkfDsOn8NUQXS7ru+kHBZ1TIhkXRmVx
af4+l9F9Q/3k9gIcsWiVnLfjgzCjV3RYDfa5dNifyLKCJ7NZYmBfdo+vmnnqgehG
2w4ksvv/gH/GXWA8FZx6
=N4Cx
-----END PGP SIGNATURE-----

--WuNf0MKOMnris03hStlNTEjuBRvhVvv1t--


From nobody Thu Jan 25 13:48:27 2018
Return-Path: <mscurtescu@google.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 A828512EAC4 for <xml2rfc@ietfa.amsl.com>; Thu, 25 Jan 2018 13:48:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.009
X-Spam-Level: 
X-Spam-Status: No, score=-2.009 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 nIudUPYCEsah for <xml2rfc@ietfa.amsl.com>; Thu, 25 Jan 2018 13:48:23 -0800 (PST)
Received: from mail-vk0-x241.google.com (mail-vk0-x241.google.com [IPv6:2607:f8b0:400c:c05::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7E4FB12EAB8 for <xml2rfc@ietf.org>; Thu, 25 Jan 2018 13:48:23 -0800 (PST)
Received: by mail-vk0-x241.google.com with SMTP id t4so5813376vkb.9 for <xml2rfc@ietf.org>; Thu, 25 Jan 2018 13:48:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VPD3qcRR0YVZJpj5ssWkIbMYFsucTsTaST+stYljh+Q=; b=CQ1LxUFFKROcBwyHfslsK4ilAzgc0ybpXNqmwfUnm82VkfkKB4VvFrM3qDpEMn8zkJ gMsjnbpBKVylpKTPOhgWiFpZyIxwyYky0cfvQiNqeCE1YxD1QtP3GAuG5HsoC8eO+YES vHlvzRdb4egCQu5kH8vczlI8oNjMd+bkTZltQ3vktYubCIWU1Ggo+d0cwnl2ePUVsQbu uT3SowosEvVWB2Ei9mVa8zJanRLumxNFNk/Kb0GSD6mbzY9rWnxiyrkQjiTDRHjemRhF Ftzois8xacSTwMI6IXmYpmv3ZlAM2QEVVG2fQrU8j3GjihgMBoXQK63vAkJpHeOjvOx2 ZTcQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VPD3qcRR0YVZJpj5ssWkIbMYFsucTsTaST+stYljh+Q=; b=QAbDCLMNXca0XfYEcwvdX0K5BPlx46OvIefqLdLB8zERoXpmKHlVuWKIe2FB2sENS9 9Wa0da5m3g/1hvvaBOpMj/ugFdZlCRN3tK8HLOmul/UbLJ7Q6jVZW8EBuHjXUZ/uST4N DVFEqreIp/C55f0iBsA+jLXhtUIX6CsDUQ1s1cA4oWW24+3j/1P2+FtdPxTNqIpl3yxL veWIC/XBcmxP+TUDn2qzr2u3X63beZMKqpU6i8CgFope0vY4AlvJjApcHs3leAvOoEJ3 aO+WY+Vm6Y1HaGpyI2Rdq2uznHNm2H/fSsn5kYvaHvm0NsJL/1FXTF3zvAUTbn+0gvkm mtEQ==
X-Gm-Message-State: AKwxyteBWzChHUFp900neLSL/+r8/PyGJQIFM7OxDW7BGA8G0tKvHfqE Iwh2JCr6t6AKaAdVzROGPTIumn3Ewqyix5MEcuWUhw==
X-Google-Smtp-Source: AH8x224u1RyAv0vVMeDiWyUi55q0ypOGPtj527gCOazNFDChNm77MfPciH7BhBgxdhohtxz4flRnkwd9ypTYJV6fJuU=
X-Received: by 10.31.94.207 with SMTP id s198mr8473742vkb.23.1516916902068; Thu, 25 Jan 2018 13:48:22 -0800 (PST)
MIME-Version: 1.0
Received: by 10.31.155.66 with HTTP; Thu, 25 Jan 2018 13:48:01 -0800 (PST)
In-Reply-To: <1c7597b9-8c41-e068-6813-c730d3dc3f09@levkowetz.com>
References: <CAGdjJp+UQ23k1xqG54u-suCSiiQkX4gF3bFYQ=aHox7b8FPUFw@mail.gmail.com> <1c7597b9-8c41-e068-6813-c730d3dc3f09@levkowetz.com>
From: Marius Scurtescu <mscurtescu@google.com>
Date: Thu, 25 Jan 2018 13:48:01 -0800
Message-ID: <CAGdjJpJqmgyka1bmejHzEU_SDotR2KiFqvegiHyH0GF2fUdKEQ@mail.gmail.com>
To: Henrik Levkowetz <henrik@levkowetz.com>
Cc: xml2rfc@ietf.org
Content-Type: multipart/alternative; boundary="001a114e51081acc6d0563a0bd8e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/6m0BoKGy_-nANCNhjrnUcW3GqT8>
Subject: Re: [xml2rfc] epub broken
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 25 Jan 2018 21:48:25 -0000

--001a114e51081acc6d0563a0bd8e
Content-Type: text/plain; charset="UTF-8"

Yes, it worked now. Thanks a lot Henrik!

Marius

On Thu, Jan 25, 2018 at 1:26 PM, Henrik Levkowetz <henrik@levkowetz.com>
wrote:

> Hi Marius,
>
> On 2018-01-25 20:17, Marius Scurtescu wrote:
> > Trying to generate epub I get the following error:
> > Traceback (most recent call last):
> >   File "/usr/bin/ebook-convert", line 19, in <module>
> >     sys.exit(main())
> >   File "/usr/lib/calibre/calibre/ebooks/conversion/cli.py", line 323, in
> > main
> >     plumber.run()
> >   File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line
> 1021,
> > in run
> >     from calibre.ebooks.oeb.transforms.flatcss import CSSFlattener
> >   File "/usr/lib/calibre/calibre/ebooks/oeb/transforms/flatcss.py", line
> > 17, in <module>
> >     from calibre.ebooks.oeb.stylizer import Stylizer
> >   File "/usr/lib/calibre/calibre/ebooks/oeb/stylizer.py", line 23, in
> > <module>
> >     from lxml.cssselect import css_to_xpath, ExpressionError,
> > SelectorSyntaxError
> > ImportError: cannot import name css_to_xpath
> >
> > The experimental version leads to the exact same error.
> >
> > This is the XML that I wanted to convert:
> > https://tools.ietf.org/id/draft-ietf-secevent-token-04.xml
> >
> > Suggestions?
>
> It seems that the interface to cssselect within lxml has changed with
> lxml 3.0, and the calibre ebook-convert uses the old inteface.  I've
> now told the ebook-convert wrapper to use a local python environment
> where I've installed a compatible version of lxml, and things work
> when I test the web service and from the command line here.  Could you
> please check to see that this now work for you?
>
>
> Best regards,
>
>         Henrik
>
>
>
>
>

--001a114e51081acc6d0563a0bd8e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Yes, it worked now. Thanks a lot Henrik!</div><div class=
=3D"gmail_extra"><br clear=3D"all"><div><div class=3D"gmail_signature" data=
-smartmail=3D"gmail_signature">Marius</div></div>
<br><div class=3D"gmail_quote">On Thu, Jan 25, 2018 at 1:26 PM, Henrik Levk=
owetz <span dir=3D"ltr">&lt;<a href=3D"mailto:henrik@levkowetz.com" target=
=3D"_blank">henrik@levkowetz.com</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">Hi Marius,<br>
<span class=3D""><br>
On 2018-01-25 20:17, Marius Scurtescu wrote:<br>
&gt; Trying to generate epub I get the following error:<br>
&gt; Traceback (most recent call last):<br>
&gt;=C2=A0 =C2=A0File &quot;/usr/bin/ebook-convert&quot;, line 19, in &lt;m=
odule&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0sys.exit(main())<br>
&gt;=C2=A0 =C2=A0File &quot;/usr/lib/calibre/calibre/<wbr>ebooks/conversion=
/cli.py&quot;, line 323, in<br>
&gt; main<br>
&gt;=C2=A0 =C2=A0 =C2=A0plumber.run()<br>
&gt;=C2=A0 =C2=A0File &quot;/usr/lib/calibre/calibre/<wbr>ebooks/conversion=
/plumber.py&quot;, line 1021,<br>
&gt; in run<br>
&gt;=C2=A0 =C2=A0 =C2=A0from calibre.ebooks.oeb.transforms.<wbr>flatcss imp=
ort CSSFlattener<br>
&gt;=C2=A0 =C2=A0File &quot;/usr/lib/calibre/calibre/<wbr>ebooks/oeb/transf=
orms/flatcss.<wbr>py&quot;, line<br>
&gt; 17, in &lt;module&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0from calibre.ebooks.oeb.stylizer import Stylizer<br=
>
&gt;=C2=A0 =C2=A0File &quot;/usr/lib/calibre/calibre/<wbr>ebooks/oeb/styliz=
er.py&quot;, line 23, in<br>
&gt; &lt;module&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0from lxml.cssselect import css_to_xpath, Expression=
Error,<br>
&gt; SelectorSyntaxError<br>
&gt; ImportError: cannot import name css_to_xpath<br>
&gt;<br>
&gt; The experimental version leads to the exact same error.<br>
&gt;<br>
&gt; This is the XML that I wanted to convert:<br>
&gt; <a href=3D"https://tools.ietf.org/id/draft-ietf-secevent-token-04.xml"=
 rel=3D"noreferrer" target=3D"_blank">https://tools.ietf.org/id/<wbr>draft-=
ietf-secevent-token-04.<wbr>xml</a><br>
&gt;<br>
&gt; Suggestions?<br>
<br>
</span>It seems that the interface to cssselect within lxml has changed wit=
h<br>
lxml 3.0, and the calibre ebook-convert uses the old inteface.=C2=A0 I&#39;=
ve<br>
now told the ebook-convert wrapper to use a local python environment<br>
where I&#39;ve installed a compatible version of lxml, and things work<br>
when I test the web service and from the command line here.=C2=A0 Could you=
<br>
please check to see that this now work for you?<br>
<br>
<br>
Best regards,<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Henrik<br>
<br>
<br>
<br>
<br>
</blockquote></div><br></div>

--001a114e51081acc6d0563a0bd8e--

