Package: python3-pygments
Version: 2.3.1+dfsg-1
Severity: important

Dear Maintainer,

I have set APT::Install-Recommends to false and installed python3-pygments in 
order to use pygmentize.
The package python3-pkg-resources was not installed due to the APT setting 
(which is fine).
But the program pygmentize did not work without it. The output was:

# pygmentize -h                                                                 
                                                      
Traceback (most recent call last):                                              
                                                                            
  File "/usr/bin/pygmentize", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

After installing python3-pkg-resources pygmentize started to work normally.

So I think the package python3-pkg-resources should be a dependency of 
python3-pygments, not only a recommendation.

-nix

-- System Information:
Debian Release: 10.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.0.21-5-pve (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-pygments depends on:
ii  python3  3.7.3-1

Versions of packages python3-pygments recommends:
ii  python3-pkg-resources  40.8.0-1

Versions of packages python3-pygments suggests:
pn  python-pygments-doc  <none>
pn  ttf-bitstream-vera   <none>

-- no debconf information

Reply via email to