Panel REST API

Hi
I am trying to run the rest API example which i find from:

when I run panel serve app.py --rest-provider tranquilizer --autoreload i get a error of:
cannot import name ‘parse_rule’ from ‘werkzeug.routing’

So I solved it by installing pip install Werkzeug==2.1.2

But it turns out to:
ERROR: init() got an unexpected keyword argument ‘unbound_message’

And here is my env:
Werkzeug==2.1.2
tranquilizer==0.8.0
panel==0.13.1

Is there my environment issue or i didn’t run the example properly
Do we have any ideas there? Any comments while being grateful

Kind regards
Victor

1 Like

Hi @CongTang

Please also report this as a bug. Thanks.

Github: holoviz/panel

Sure, I have forward it to Github

Thanks

Hi

The bug has been figured out by downgrading flask and Werkzeug to 2.1.2

thanks

Kind regards
Victor

1 Like