puppetlabs / support-script-analyzer

3 stars 3 forks source link

convert.py requires json2html installed on Mac OS #2

Closed henrywangpuppet closed 3 years ago

henrywangpuppet commented 3 years ago

When I first run this command convert.py:

support-tooling git:(master) ./support_parse.sh modules ~/Downloads/puppet_enterprise_support_42544_int-puppetmaster-02_20201229131528.tar.gz | ./convert.py
Traceback (most recent call last):
  File "./convert.py", line 3, in <module>
    from json2html import *
ImportError: No module named json2html
couldn't create json

sudo pip install json2html can resolve the issue, this should be mentioned as a requirement.

Plus the above command will throw an error anyway. We need to output to a file then feed it into convert.py which is as documented.

m0dular commented 3 years ago

Fixed in #11. The requirement to dump the json output to a file is mentioned in the README.