Flask ImportError: No module named ‘XXXX’

Recently working with Flask and using Apache2 as WSGI a new error appeared in the apache logs for a new feature added to the API in Flask: [Tue Dec 03 15:47:14.706011 2019] [wsgi:error] [pid 5892:tid 140174218479360] [client 123.456.789.012:52356] mod_wsgi (pid=5892):...

Escribir una aplicación básica con Flask

Creando los directorios iniciales y prerequisitos Primero creo un directorio (APIS) donde ordenadamente trabajaré los proyectos de API REST: mortiz@florida:~/Documents/projects/python/APIS/ Y dentro del directorio APIS el nuevo proyecto a desarrollar, que al ser el...
bash: flask: command not found with Flask 1.0.2

bash: flask: command not found with Flask 1.0.2

Verify you are installing flask for your correct python version inside your virtual environment. I’ve came across the problem: bash: flask: command not found And the first StackOverflow answer was: Flask 0.10 has no flask command, it was added in 0.11. But my...
Determine if a string is a panagram with python

Determine if a string is a panagram with python

A pangram is a sentence that contains every single letter of the alphabet at least once. For example, the sentence «The quick brown fox jumps over the lazy dog» is a pangram, because it uses the letters A-Z at least once (case is irrelevant). I’ve designed this...
Determine if a string is a panagram with python

Find missing number in sequence with python

This code snippet is designed to find the missing number in a sequence of integers with python 2.7. I’ve tested it with several lists in python which are commented at the start of the script. #!/usb/bin/python #miguel.ortiz #s=[-1, -4, -7, -10, -13, -16, -19,...