app-generator / flask-datta-able

Datta Able - Open-Source Flask Dashboard | AppSeed
https://appseed.us/product/datta-able/flask/
Other
240 stars 123 forks source link

ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security' #4

Closed pattertj closed 2 years ago

pattertj commented 2 years ago

The project no longer runs correctly per the instructions. You are met with the error "ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security'"

This functionality was recently deprecated and removed, see here: https://github.com/pallets/werkzeug/issues/2359

This is impacting flask-login, which it seems is not updated yet: https://github.com/maxcountryman/flask-login/blob/0f94639858946ea8e921743db684b6da97d46385/CHANGES.md

app-generator commented 2 years ago

Hello @pattertj

Ty for reporting this. We will provide a patch asap.

app-generator commented 2 years ago

Patched in tag v1.0.6

@pattertj please update

app-generator commented 2 years ago

P.S. Full context can be found here:

ImportError: cannot import name 'safe_str_cmp' from 'werkzeug.security'