Open yang-guoli opened 2 years ago
I don't think I've seen this error before. Can you check what your Bokeh version is:
import bokeh
bokeh.__version__
1.4.0
ProLint relies on an old version of Bokeh. We've updated it internally and will push the update soon online, but for now you have to make sure that you use the 1.4.0
version.
@bisejdiu The boketh version is 1.4.0.
I solved the probelm above by as follow: the code in the /../envs/prolint/lib/python3.7/site-packages/bokeh/document/document.py:
from jinja2 import Environment, Markup, FileSystemLoader
changing into: from jinja2 import Environment, FileSystemLoader from markupsafe import Markup . The methods according into: https://github.com/holoviz/panel/issues/3257
Thank you for figuring this out and for posting it here! I'm keeping this issue open, if that's ok, in case anyone else encounters the same problem.
To solve this issue in the current version of prolintpy the file that you need to edit is:
/../anaconda3/envs/prolint/lib/python3.7/site-packages/bokeh/core/templates.py
and change the import line:
from jinja2 import Environment, Markup, FileSystemLoader
into:
from jinja2 import Environment, FileSystemLoader
from markupsafe import Markup
as was discussed above.
hi, i tried to install the prolintpy use your thirdth methods and success. But when i import the prolintpy, the error occur as follows: