Archive

Archive for November, 2019

SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)

November 30, 2019 Leave a comment

Problem:
I was not able to run $ python3.7 -m pip install --upgrade pip on my Ubuntu 14.0 (Trusty) box. I was getting an error similar to

Could not fetch URL https://pypi.org/simple/slackclient/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=’pypi.org’, port=443): Max retries exceeded with url: /simple/slackclient/ (Caused by SSLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)) – skipping

Solution:
I had to manually install openssl and python3.7 for it to work on Ubuntu Trusty.

Sources:

https://help.dreamhost.com/hc/en-us/articles/115000702772-Installing-a-custom-version-of-Python-3

https://help.dreamhost.com/hc/en-us/articles/360001435926-Installing-OpenSSL-locally-under-your-username

Categories: python Tags:

Providing feedback and notifications to users using Flask’s flash function

November 24, 2019 Leave a comment

Providing feedback to users of a web application is critical, from notifications and error messages to warnings and progress alerts.

If the application doesn’t the right level of feedback, chances are the user will become frustrated and end up having a bad experience.

Fortunately for us, Flask provides a simple way to send messages from the server to the client using flash.

https://pythonise.com/series/learning-flask/flask-message-flashing

Categories: flask