Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pygments version riquired <2.7.0, current version is 2.7.2 #2820

Closed
verga opened this issue Nov 8, 2020 · 3 comments
Closed

pygments version riquired <2.7.0, current version is 2.7.2 #2820

verga opened this issue Nov 8, 2020 · 3 comments
Labels

Comments

@verga
Copy link

verga commented Nov 8, 2020

  • [x ] I have read the Filing Issues and subsequent “How to Get Help” sections of the documentation.
  • [ x] I have searched the issues (including closed ones) and believe that this is not a duplicate.
  • OS version and name: linux opensuse tumbleweed version N/A kernel 5.9
  • Python version: 3.8.5
  • Pelican version: 4.5.1
  • Link to theme: custom
  • Links to plugins: math
  • Link to your site: verga.cpt.univ-mrs.fr
  • Link to your source:
  • Link to a Gist with the contents of your settings file:

Issue

pelican command send Error:

pkg_resources.DistributionNotFound: The **'pygments<2.7.0,>=2.6.1'** distribution was not found and is required by pelican

My installed version is effectively pygments==2.7.2; I think that a dependency on a specific (old) version of a package is a bug.

Thanks!

@verga verga added the bug label Nov 8, 2020
@avaris
Copy link
Member

avaris commented Nov 8, 2020

No, it's not a bug to have limitations on the versions of a dependency. Using virtual environments is recommended to avoid clashes between dependencies for different applications, precisely for this reason.

@verga
Copy link
Author

verga commented Nov 8, 2020

OK, thank you!

@verga verga closed this as completed Nov 8, 2020
@justinmayer
Copy link
Member

@avaris is right. Pygments is pinned to a specific version because otherwise it causes things to break unexpectedly. Case in point: tests currently fail on Pygments v2.7.2. Pull requests to address that would be welcome! 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants