Edgewall Software

Opened 9 years ago

Last modified 7 years ago

#11796 closed defect

DistributionNotFound: Pygments>=0.6" not found if Pygments==2.0rc1 — at Version 1

Reported by: Jun Omae Owned by:
Priority: normal Milestone: 1.0.3
Component: general Version: 1.0-stable
Severity: normal Keywords: pygments
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Jun Omae)

Currently, version of pypi:Pygments is 2.0rc1. If it is installed, cannot load trac.mimeview.pygments.

12:29:34 PM Trac[loader] DEBUG: Skipping "trac.mimeview.pygments = trac.mimeview.pygments [pygments]": ("DistributionNotFound: Pygments>=0.6" not found)

Instead, works well with Pygments 1.6.

$ /dev/shm/trac-1.0.2/bin/pip freeze
Babel==0.9.6
Genshi==0.6
Pygments==2.0rc1
Trac==1.0.2
argparse==1.2.1
distribute==0.6.24
wsgiref==0.1.2
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import trac.mimeview.pygments
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/dev/shm/trac-1.0.2/local/lib/python2.7/site-packages/trac/mimeview/pygments.py", line 37, in <module>
    HtmlFormatter = pygments.formatters.html.HtmlFormatter
  File "/dev/shm/trac-1.0.2/local/lib/python2.7/site-packages/pygments/formatters/__init__.py", line 111, in __getattr__
    raise AttributeError(name)
AttributeError: html

Change History (1)

comment:1 by Jun Omae, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.