ckbunker icon indicating copy to clipboard operation
ckbunker copied to clipboard

latest jinja2 brakes the HSM config interpretation

Open polto opened this issue 3 years ago • 3 comments

Seems jinja2 has change a bit and ckbunker need some adaptation.

I am having this error with jinja2 version 3.1.2:

AttributeError: module 'jinja2' has no attribute 'escape'

Reading https://jinja.palletsprojects.com/en/3.1.x/changes/ I see

Markup and escape should be imported from MarkupSafe.

I downgraded to 3.0.3 and now everything works well.

pip uninstall jinja2 pip install jinja2==3.0.3

polto avatar Sep 20 '22 20:09 polto

hi @polto, thanks for pointing this out. ~~Seems like this commit already fixed the issue and you do not need to rely on older jinja2 library. Make sure to update/pull changes from remote.~~

scgbckbone avatar Sep 21 '22 09:09 scgbckbone

thanks for this @polto - opened PR https://github.com/Coldcard/ckbunker/pull/22

scgbckbone avatar Sep 21 '22 14:09 scgbckbone

https://github.com/Coldcard/ckbunker/pull/22 merged

scgbckbone avatar Oct 11 '22 12:10 scgbckbone