heroku/heroku-buildpack-python — Issue #22: Unable to install Django(1.4.a1) from github(in requirements.txt)
Author: suvash
Created: 2012-01-06 02:55:52+00:00
State: open

Installation of Django 1.4-a1 (to install the Django from the github HEAD)
`pip install -e git+https:////github.com/django/django.git#egg=Django-dev`

after freezing using `pip freeze -l > requirements.txt` I get
`-e git+https://github.com/django/django.git@4bdd63bfd7a2318f0e3108ee714abf2defe25593#egg=Django-dev`

I can use the above generated `requirements.txt` to reinstall the dependencies(to replicate the project), but it fails when it push it to github with the following error. I can figure out why this is failing.

Command /usr/bin/git tag -l had error code 128
Complete output from command /usr/bin/git rev-parse "fatal: Not a git repository: '.'":
fatal: Not a git repository: '.'`

Just to provide a better idea, I will put the whole heroku push dump here

Counting objects: 119, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (67/67), done.
Writing objects: 100% (119/119), 26.75 KiB, done.
Total 119 (delta 35), reused 105 (delta 29)

-----> Heroku receiving push
-----> Python/Django app detected
! You have a virtualenv checked in. You should ignore the appropriate paths in your repo. See http://devcenter.heroku.com/articles/gitignore for more info.
-----> Preparing virtualenv version 1.6.4
New python executable in ./bin/python
Installing setuptools............done.
Installing pip...............done.
-----> Django settings injection
Injecting code into conf/settings.py to read from DATABASE_URL
-----> Installing dependencies using pip version 1.0.2
Obtaining Django from git+https://github.com/django/django.git@4bdd63bfd7a2318f0e3108ee714abf2defe25593#egg=Django-dev (from -r requirements.txt (line 1))
Cloning https://github.com/django/django.git (to 4bdd63bfd7a2318f0e3108ee714abf2defe25593) to ./src/django
Command /usr/bin/git tag -l had error code 128
Complete output from command /usr/bin/git rev-parse "fatal: Not a git repository: '.'":
fatal: Not a git repository: '.'

----------------------------------------
Command /usr/bin/git rev-parse "fatal: Not a git repository: '.'" failed with error code 128
Storing complete log in /app/.pip/pip.log
! Heroku push rejected, failed to compile Python/django app

To git@heroku.com:ekoll.git
! [remote rejected] master -> master (pre-receive hook declined)

Can somebody explain what's going on here ?