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

bug: jinja2 import error when running make docs #2885

Closed
tserg opened this issue May 30, 2022 · 3 comments
Closed

bug: jinja2 import error when running make docs #2885

tserg opened this issue May 30, 2022 · 3 comments

Comments

@tserg
Copy link
Collaborator

tserg commented May 30, 2022

Version Information

  • vyper Version (output of vyper --version): 0.3.4+
  • OS: Linux
  • Python Version (output of python --version): 3.8.13 and 3.9.12

What's your issue about?

Running make docs gives an import error

ImportError: cannot import name 'contextfunction' from 'jinja2' (/home/user/miniconda3/envs/vyper/lib/python3.9/site-packages/jinja2/__init__.py)

See readthedocs/readthedocs.org#9037

How can it be fixed?

Pin jinja2 version to 3.0.0.

@charles-cooper
Copy link
Member

weird - i have jinja 3.1.1 and docs work fine

$ pip freeze | grep -i jinja
Jinja2==3.1.1

maybe try upgrading your sphinx?

@charles-cooper
Copy link
Member

@tserg is this still an issue?

@tserg
Copy link
Collaborator Author

tserg commented Jul 21, 2022

No, not sure why this error arose in that specific instance but I have not encountered it since. Closing this issue.

@tserg tserg closed this as completed Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants