Summary: | dev-vcs/mercurial should (unconditionally) (R)DEPEND on dev-python/pygments - hg serve: ImportError: No module named pygments | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Albert W. Hopkins <marduk> |
Component: | [OLD] Development | Assignee: | Dirkjan Ochtman (RETIRED) <djc> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | polynomial-c, skrattaren |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Albert W. Hopkins
2014-05-18 20:44:39 UTC
This seems to be Mercurial bug, because Pygments should be required only when `highlight` extension is enabled. I'll try to investigate. (In reply to Albert W. Hopkins from comment #0) Albert, here's what Mercurial devs say: > It works just fine for me without pygments. > > Can you show a full trace? > > Are you absolutely sure the highlight extension isn't enabled? Check 'hg > showconfig extensions' as the hgweb user. (In reply to Nikolaj Sjujskij from comment #3) > (In reply to Albert W. Hopkins from comment #0) > Albert, here's what Mercurial devs say: > > > It works just fine for me without pygments. > > > > Can you show a full trace? > > > > Are you absolutely sure the highlight extension isn't enabled? Check 'hg > > showconfig extensions' as the hgweb user. It is correct that I did have the highlight extension enabled. I never noticed it was enabled. It does in fact work w/o the pygments if the extension is turned off. I think that perhaps pygments was installed somehow on my system before, perhaps as a dependency of something else, and that in time it was no longer a dependency and thus was depcleaned out, then Mercurial started to break. Indeed, the help for the highlight extension does mention. highlight syntax highlighting for hgweb (requires Pygments) Sorry to have wasted resources on this. It is neither a hard requirement nor undocumented. This can be closed out. ok thx Nik |