[xml2rfc] My installation is broken and I can't seem to find the problem

"David R. Oran" <daveoran@orandom.net> Sun, 27 September 2020 21:21 UTC

Return-Path: <daveoran@orandom.net>
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 1F9423A0115 for <xml2rfc@ietfa.amsl.com>; Sun, 27 Sep 2020 14:21:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 85NntPMpLt3a for <xml2rfc@ietfa.amsl.com>; Sun, 27 Sep 2020 14:21:11 -0700 (PDT)
Received: from spark.crystalorb.net (spark.crystalorb.net [IPv6:2607:fca8:1530::c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5896D3A005C for <xml2rfc@ietf.org>; Sun, 27 Sep 2020 14:21:11 -0700 (PDT)
Received: from [192.168.15.243] ([IPv6:2601:184:407f:80ce:9c1e:f92:b81d:9d68]) (authenticated bits=0) by spark.crystalorb.net (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id 08RLL7ST026646 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NO) for <xml2rfc@ietf.org>; Sun, 27 Sep 2020 14:21:09 -0700
From: "David R. Oran" <daveoran@orandom.net>
To: XML2RFC Interest Group <xml2rfc@ietf.org>
Date: Sun, 27 Sep 2020 17:21:01 -0400
X-Mailer: MailMate (1.13.2r5721)
Message-ID: <76D8708F-C29F-4BCF-AD7A-F5DB36365CD1@orandom.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_MailMate_6643C8EE-22CD-4B58-B10C-916BDA405597_="
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/JOWNFxRN6bRmq_VyUgBnftKAZ0c>
Subject: [xml2rfc] My installation is broken and I can't seem to find the problem
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <xml2rfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc/>
List-Post: <mailto:xml2rfc@ietf.org>
List-Help: <mailto:xml2rfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 27 Sep 2020 21:21:13 -0000

all of  xml2rfc python3, and lib magic seem properly installed. Cluebat 
please?

  xml2rfc --html draft-irtf-icnrg-icnping-01.xml
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/3.8/bin/xml2rfc", 
line 5, in <module>
     from xml2rfc.run import main
   File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/xml2rfc/__init__.py", 
line 14, in <module>
     from xml2rfc.parser import  XmlRfcError, CachingResolver, 
XmlRfcParser, XmlRfc
   File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/xml2rfc/parser.py", 
line 20, in <module>
     from xml2rfc.writers import base
   File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/xml2rfc/writers/__init__.py", 
line 10, in <module>
     from xml2rfc.writers.preptool import PrepToolWriter
   File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/xml2rfc/writers/preptool.py", 
line 41, in <module>
     from xml2rfc.util.mime import get_file_mime_type
   File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/xml2rfc/util/mime.py", 
line 4, in <module>
     import magic
   File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/magic.py", 
line 201, in <module>
     raise ImportError('failed to find libmagic.  Check your 
installation')
ImportError: failed to find libmagic.  Check your installation


python3 --version
Python 3.8.1

oran@ORAN-M-51B7 ~ % pip3 --version
pip 20.2.3 from 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip 
(python 3.8)

oran@ORAN-M-51B7 ~ % pip3 install --upgrade xml2rfc
Requirement already up-to-date: xml2rfc in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(3.1.1)
Requirement already satisfied, skipping upgrade: 
pycountry!=19.7.15,>=1.8 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (19.8.18)
Requirement already satisfied, skipping upgrade: 
google-i18n-address>=2.3.2 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (2.3.5)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (1.14.0)
Requirement already satisfied, skipping upgrade: configargparse>=1.2.3 
in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (1.2.3)
Requirement already satisfied, skipping upgrade: pyyaml>=5.3.1 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (5.3.1)
Requirement already satisfied, skipping upgrade: setuptools>=24.2.0 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (41.2.0)
Requirement already satisfied, skipping upgrade: appdirs>=1.4.4 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (1.4.4)
Requirement already satisfied, skipping upgrade: html5lib>=1.0.1 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (1.0.1)
Requirement already satisfied, skipping upgrade: python-magic>=0.4.18 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (0.4.18)
Requirement already satisfied, skipping upgrade: pyflakes>=0.8.1 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (2.1.1)
Requirement already satisfied, skipping upgrade: requests>=2.5.0 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (2.22.0)
Requirement already satisfied, skipping upgrade: 
intervaltree!=3.0.0,>=2.1.0 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (3.0.2)
Requirement already satisfied, skipping upgrade: jinja2<3.0,>=2.11 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (2.11.2)
Requirement already satisfied, skipping upgrade: lxml!=4.3.1,>=2.2.8 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (4.4.2)
Requirement already satisfied, skipping upgrade: kitchen>=1.2.6 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from xml2rfc) (1.2.6)
Requirement already satisfied, skipping upgrade: webencodings in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from html5lib>=1.0.1->xml2rfc) (0.5.1)
Requirement already satisfied, skipping upgrade: idna<2.9,>=2.5 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from requests>=2.5.0->xml2rfc) (2.8)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from requests>=2.5.0->xml2rfc) (2020.6.20)
Requirement already satisfied, skipping upgrade: 
urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from requests>=2.5.0->xml2rfc) (1.25.8)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 
in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from requests>=2.5.0->xml2rfc) (3.0.4)
Requirement already satisfied, skipping upgrade: 
sortedcontainers<3.0,>=2.0 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from intervaltree!=3.0.0,>=2.1.0->xml2rfc) (2.1.0)
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(from jinja2<3.0,>=2.11->xml2rfc) (1.1.1)

oran@ORAN-M-51B7 ~ % pip3 install --upgrade libmagic
Requirement already up-to-date: libmagic in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(1.0)

DaveO