Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.
GNU Lesser General Public License v3.0
1.72k
stars
108
forks
source link
ModuleNotFoundError: No module named 'contextvars' #188
we are using dominate in our project, which currently started to fail
>>> import dominate
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/site-packages/dominate/__init__.py", line 4, in <module>
from .document import document
File "/usr/local/lib/python3.6/site-packages/dominate/document.py", line 19, in <module>
from . import tags
File "/usr/local/lib/python3.6/site-packages/dominate/tags.py", line 21, in <module>
from .dom_tag import dom_tag, attr, get_current
File "/usr/local/lib/python3.6/site-packages/dominate/dom_tag.py", line 28, in <module>
from contextvars import ContextVar
ModuleNotFoundError: No module named 'contextvars'
after installing the module pip3 install contextvars all works well again.
Would it be possible to add a dependency on this module in dominate since dominate is using it? I can see it was added recently.
(Missclicked and posted incomplete Issue so I updated it but left closed since I see it is filed already)
Hi,
we are using dominate in our project, which currently started to fail
after installing the module
pip3 install contextvars
all works well again.Would it be possible to add a dependency on this module in dominate since dominate is using it? I can see it was added recently.
(Missclicked and posted incomplete Issue so I updated it but left closed since I see it is filed already)