FS#20395 - [pygments] missing dependencies

Attached to Project: Community Packages
Opened by orbisvicis (orbisvicis) - Friday, 06 August 2010, 23:07 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 07 August 2010, 19:49 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Some operations of pygments depend on python-beaker>=1.1

Additional info:
* package version(s)
community/pygments 1.3.1-1

* config and/or log files etc.
pygmentize -L lexers
Pygments version 1.3.1, (c) 2006-2008 by Georg Brandl.

Lexers:
~~~~~~~
Traceback (most recent call last):
File "/usr/bin/pygmentize", line 8, in <module>
load_entry_point('Pygments==1.3.1', 'console_scripts', 'pygmentize')()
File "/usr/lib/python2.6/site-packages/pygments/cmdline.py", line 237, in main
_print_list(arg.rstrip('s'))
File "/usr/lib/python2.6/site-packages/pygments/cmdline.py", line 143, in _print_list
for fullname, names, exts, _ in get_all_lexers():
File "/usr/lib/python2.6/site-packages/pygments/lexers/__init__.py", line 45, in get_all_lexers
for lexer in find_plugin_lexers():
File "/usr/lib/python2.6/site-packages/pygments/plugin.py", line 53, in find_plugin_lexers
yield entrypoint.load()
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1953, in load
if require: self.require(env, installer)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1966, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: Beaker>=1.1

Other stuff: there's somthing fishy going on with the paths, if I figure it out I'll file another report.
Closed by  Evangelos Foutras (foutrelis)
Saturday, 07 August 2010, 19:49 GMT
Reason for closing:  None
Additional comments about closing:  Fixed in python-mako 0.3.4-3.
Comment by Evangelos Foutras (foutrelis) - Saturday, 07 August 2010, 10:32 GMT
I bet you have python-mako installed, because that appears to cause the issue you're describing. I found a related bug report [1] on Trac with the same issue regarding Pygments and Beaker. However, the culprit seems to be Mako, which provides a lexer for Pygments but also depends on Beaker. This causes the above error when Pygments tries to load the Mako lexer.

I've opened  FS#20400 , asking to remove the dependency on Beaker from Mako.

----
[1] http://trac.edgewall.org/ticket/7459

Loading...