Flask Permissionerror: [errno 13] Permission Denied
I am trying to run a Flask application using /opt/mount1/python35/bin/python3.5 notification.py and I am getting the following error: WARNING:tensorflow:From /opt/mount1/python35/l
Solution 1:
Error 13 (your permissions error) is usually resolved by changing your port number. TCP/IP port numbers below 1024 are registered or 'privileged' port numbers - users are not allowed to run servers on them. My guess from the first warning message shown (regarding the server in a production environment) is that you are running your application on a low port number (probably 80), but you if you run it on a different port number, say 4000 or something (over 1024), you will avoid this error.
You may find this link helpful
excerpt:
import socket
HOST = '127.0.0.1' # Standard loopback interface address (localhost)
PORT = 65432 # Port to listen on (non-privileged ports are > 1023)
Solution 2:
Since I had installed the Python 3.5 separately in a different path, I had to place the following shebang at the top of my file to fix the issue:
#!/opt/mount1/python35/bin/python3.5
Post a Comment for "Flask Permissionerror: [errno 13] Permission Denied"