okta-samples / okta-flask-sample

Python Flask + Okta
5 stars 9 forks source link

adjusted Werkzeug version to 2.0.0 #4

Closed jamesonl closed 1 week ago

jamesonl commented 2 years ago

When following the steps to run the okta-flask-sample application, I encountered the following error:

Error: While importing 'app', an ImportError was raised.

When I investigated further, I discovered that this was attributed to the following sub-error:

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

Following the recommendation from this page, I downgraded Werkzeug to version 2.0.0 which subsequently allowed me to properly start the localhost.

jamesonl commented 2 years ago

For context, I'm running Python 3.8.9, and had also followed the recommendations to install the Okta CLI tool.

alisaduncan commented 1 week ago

We updated versions and I am able to run the app as is. Please let us know if you continue to run into problems. Thanks!