[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#962239: RFP: jc -- converts command output to JSON



On Thu, Jun 04, 2020 at 03:03:35PM -0700, Kelly Brazil wrote:
> Package: wnpp
> Severity: wishlist
> 
> I am the developer of jc, which is now packaged on OpenSUSE, NixOS, macOS (Homebrew), and FreeBSD (ports). jc is currently in process for packaging on Fedora.
> 
> jc is licensed under the MIT license.
> 
> https://github.com/kellyjonbrazil/jc
> https://pypi.org/project/jc/
> 
> JSON CLI output utility

I do not use this personally, but I think this might be a good package
to be in Debian. I made an initial packaging, but getting error while
trying to use that.

$ ls -l /usr/bin | jc --ls

Traceback (most recent call last):
  File "/usr/bin/jc", line 11, in <module>
    load_entry_point('jc==1.11.2', 'console_scripts', 'jc')()
  File "/usr/lib/python3/dist-packages/jc/cli.py", line 401, in main
    json_out(result, pretty=pretty, mono=mono, piped_out=piped_output())
  File "/usr/lib/python3/dist-packages/jc/cli.py", line 249, in json_out
    class JcStyle(Style):
  File "/usr/lib/python3/dist-packages/pygments/style.py", line 101, in __new__
    ndef[0] = colorformat(styledef)
  File "/usr/lib/python3/dist-packages/pygments/style.py", line 58, in colorformat
    assert False, "wrong color format %r" % text
AssertionError: wrong color format 'ansiblue'

I have also tried with ls -l /usr/bin | jc --ls -m

Note: This works fine when I install Pygments from pip3 (v2.6.1) rather
than using the Debian version which is v2.3.1


--
Regards
Sudip


Reply to: