Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I ran into SSL cert errors recently with sending Twilio SMS notifications and went to reinstall the requirements.txt via
sudo pip install -r requirements.txt --ignore-installed
when I ran into an issue with latest Werkzeug 1.0.1 being pulled in.Werkzeug version 1 and higher removes deprecated calls to certain imports like secure_filename and generate_password_hash which requires making some import changes. This PR pins the Werkzeug dependency to below version 1. The alternative fix would be to update the imports in views.py and models.py.
For your reference those code changes would be as shown below in this git diff:
I decided to just pin the requirements.txt Werkzeug dependency to >=0.9.4,<1 instead of making code changes in case there are other breaking changes in the newer Werkzeug package. However, in my testing with the import code changes and using the latest v1 Werkzeug dependency the webapp appeared to run alright.
In case you're curious about my SSL error when I ran Twilio SMS save and test in the webapp I was getting this error message:
Installing the latest requirements.txt dependencies with my werkzeug fix appears to fix my issue. I think the last time I ran a pip install of the requirements.txt was when I first setup my Raspberry Pi a few years ago.