title: Not able to deploy the django app on elastic beanstalk
body: <p>When trying to deploy my django app using eb deploy I am getting the following error. It is totally unseful and does not let me knwo what to do. Please help.</p>
  
  <p>I am following the tutorial here : <a href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html" rel="nofollow">http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html</a>   </p>
  
  <pre><code> sh-3.2# eb deploy
      Creating application version archive "app-ca0a-151123_205119".
      Uploading learningsite/app-ca0a-151123_205119.zip to S3. This may take a while.
      Upload Complete.
      INFO: Environment update is starting.                               
      INFO: Deploying new version to instance(s).                         
      ERROR: Your requirements.txt is invalid. Snapshot your logs for details.
      ERROR: [Instance: i-18ee63c1] Command failed on instance. Return code: 1 Output: (TRUNCATED)...)
        File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call
          raise CalledProcessError(retcode, cmd)
      CalledProcessError: Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1. 
      Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
      INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
      ERROR: Unsuccessful command execution on instance id(s) 'i-18ee63c1'. Aborting the operation.
      ERROR: Failed to deploy application.                                
  
  
  ERROR: Failed to deploy application.
  sh-3.2# 
  </code></pre>