While using Dokku, I was getting the following error message: Requested runtime (python-2.7.8) is not available for this stack (cedar-14). This was due to a connection error between my docker container and the internet. To determine this, I ran "docker images" and got the image id of "programium/buildstep", then got into a container with the following command: sudo docker run -t -i <your image id> /bin/bash
Once in the container, I ran: curl http://lang-python.s3.amazonaws.com/cedar/runtimes/python-2.7.8.tar.gz -s If that is unsuccessful, that should confirm it's a connection issue.
Timeout: (<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x27330d0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')
If you're installing several requirements from a requirements.txt file, it helps to use "-v" after your pip install command to figure out which module has the timeout. Most likely, it's trying to download a module from a URL that doesn't exist.
If the output has a URL that starts with https://github.com and not email@example.com, you need to change that by running a command similar to this: git remote set-url origin firstname.lastname@example.org:pawl/flask-admin.git