Keck-DataReductionPipelines / KCWI_DRP

KCWI python DRP
BSD 3-Clause "New" or "Revised" License
8 stars 12 forks source link

Bokeh and jinja2 version conflict #141

Open scizen9 opened 1 year ago

scizen9 commented 1 year ago

The current bokeh version specified in the environment.yml file requests bokeh~=2.0.0, but does not specify a version for jinja2, which is a dependency. The version of bokeh that installs uses the jinja2.Markup class which was deprecated in jinja2 v3.1, so if conda installs jinja2 version 3.1 or higher, the pipeline will crash trying to load jinja2.Markup.

We should either update the bokeh requirement to a version of bokeh that uses markupsafe.Markup, or specify jinja2=3.0.3, which was the last version with jinja2.Markup. Probably an update to bokeh >= 2.3.2 would solve this issue.

yasmeenasali commented 11 months ago

I had the same error, and installing jinja2=3.0.3 solved it. Thanks for posting the issue!

zilishen commented 9 months ago

Thanks for posting, I had the same error! Couldn't get the pipeline to run without this.