Problem with deploying a Django application for Heroku: the name 'install' is not defined

EDIT: I narrowed down the problem to having the line "distribute == 0.6.10" in the requirements.txt file. Removing this line fixes the problem and does not trigger any errors from this line that does not exist yet ...

I follow the tutorial here: http://devcenter.heroku.com/articles/django

Everything went well until I got into a section called "Launching a Worker". I have the following myts.txt file:

Django==1.3
amqplib==1.0.1
anyjson==0.3.1
celery==2.3.3
distribute==0.6.10
django-celery==2.3.3
django-kombu==0.9.4
django-picklefield==0.1.9
gunicorn==0.12.2
kombu==1.4.1
psycopg2==2.4.2
pyparsing==1.5.6
python-dateutil==1.5
wsgiref==0.1.2

And I added the appropriate celery configuration to the end of my Procfile and settings.py file, as indicated in the instructions. When I deploy the application, I get the following error:

          Relaunching...
           Traceback (most recent call last):
             File "<string>", line 1, in <module>
           NameError: name 'install' is not defined
           Complete output from command /tmp/build_2o84wdweodb97/bin/python2.7 -c "import setuptools;__file__='/tmp/build_2o84wdweodb97/build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-LIti3K-record/install-record.txt --install-headers /tmp/build_2o84wdweodb97/include/site/python2.7:

The full deployment log can be found here: http://pastie.org/2609107

- , ?

+5
1

.

distribute==0.6.21
+3

All Articles