Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build problem when 'git push heroku master' #9

Open
chadsmall opened this issue Aug 4, 2014 · 0 comments
Open

build problem when 'git push heroku master' #9

chadsmall opened this issue Aug 4, 2014 · 0 comments

Comments

@chadsmall
Copy link

There are many references to this error when searched to remove the Distribute requirements.txt (deprecated), but doing that and fully following your setup references from scratch didn't do the trick. I'm not all that familiar with python build mechanics, so any assistance would be appreciated. Thanks for making this project public.

Error:

➜  minecloud git:(master) ✗ git push heroku master
Initializing repository, done.
Counting objects: 233, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (99/99), done.
Writing objects: 100% (233/233), 59.00 KiB | 0 bytes/s, done.
Total 233 (delta 126), reused 233 (delta 126)

-----> Python app detected
-----> Installing runtime (python-2.7.4)
 !     The package setuptools/distribute is listed in requirements.txt.
 !     Please remove to ensure expected behavior.
-----> Noticed pylibmc. Bootstrapping libmemcached.
-----> Noticed cffi. Bootstrapping libffi.
-----> Installing dependencies with pip
       Downloading/unpacking Django==1.5 (from -r requirements.txt (line 1))
         Running setup.py (path:/tmp/pip_build_u38080/Django/setup.py) egg_info for package Django

       Downloading/unpacking Fabric==1.5.1 (from -r requirements.txt (line 2))
         Running setup.py (path:/tmp/pip_build_u38080/Fabric/setup.py) egg_info for package Fabric

       Downloading/unpacking Unipath==0.2.1 (from -r requirements.txt (line 3))
         Running setup.py (path:/tmp/pip_build_u38080/Unipath/setup.py) egg_info for package Unipath

       Downloading/unpacking amqp==1.0.6 (from -r requirements.txt (line 4))
         Running setup.py (path:/tmp/pip_build_u38080/amqp/setup.py) egg_info for package amqp

       Downloading/unpacking anyjson==0.3.3 (from -r requirements.txt (line 5))
         Downloading anyjson-0.3.3.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/anyjson/setup.py) egg_info for package anyjson

       Downloading/unpacking billiard==2.7.3.19 (from -r requirements.txt (line 6))
         Running setup.py (path:/tmp/pip_build_u38080/billiard/setup.py) egg_info for package billiard

           warning: no files found matching '*.py' under directory 'Lib'
       Downloading/unpacking boto==2.6.0 (from -r requirements.txt (line 7))
         Running setup.py (path:/tmp/pip_build_u38080/boto/setup.py) egg_info for package boto

           warning: no files found matching 'boto/mturk/test/*.doctest'
           warning: no files found matching 'boto/mturk/test/.gitignore'
       Downloading/unpacking celery==3.0.12 (from -r requirements.txt (line 8))
         Running setup.py (path:/tmp/pip_build_u38080/celery/setup.py) egg_info for package celery
           Upgrade: no old version found.

           no previously-included directories found matching '*.pyc'
       Downloading/unpacking celerymon==1.0.3 (from -r requirements.txt (line 9))
         Running setup.py (path:/tmp/pip_build_u38080/celerymon/setup.py) egg_info for package celerymon

           no previously-included directories found matching 'celerymon/*.pyc'
           no previously-included directories found matching 'bin/*.pyc'
       Downloading/unpacking distribute==0.6.24 (from -r requirements.txt (line 10))
         Running setup.py (path:/tmp/pip_build_u38080/distribute/setup.py) egg_info for package distribute

           warning: no files found matching 'Makefile' under directory 'docs'
           warning: no files found matching 'indexsidebar.html' under directory 'docs'
       Downloading/unpacking dj-database-url==0.2.1 (from -r requirements.txt (line 11))
         Downloading dj-database-url-0.2.1.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/dj-database-url/setup.py) egg_info for package dj-database-url

       Downloading/unpacking django-celery==3.0.11 (from -r requirements.txt (line 12))
         Running setup.py (path:/tmp/pip_build_u38080/django-celery/setup.py) egg_info for package django-celery

           no previously-included directories found matching 'bin/*.pyc'
           no previously-included directories found matching 'tests/*.pyc'
           no previously-included directories found matching 'docs/*.pyc'
           no previously-included directories found matching 'extra/*.pyc'
           no previously-included directories found matching 'djcelery/*.pyc'
           no previously-included directories found matching 'docs/.build'
           no previously-included directories found matching 'examples/*.pyc'
       Downloading/unpacking django-heroku-memcacheify==0.4 (from -r requirements.txt (line 13))
         Downloading django-heroku-memcacheify-0.4.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/django-heroku-memcacheify/setup.py) egg_info for package django-heroku-memcacheify

       Downloading/unpacking django-ping==0.2.0 (from -r requirements.txt (line 14))
         Downloading django-ping-0.2.0.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/django-ping/setup.py) egg_info for package django-ping

       Downloading/unpacking django-pylibmc-sasl==0.2.4 (from -r requirements.txt (line 15))
         Downloading django-pylibmc-sasl-0.2.4.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/django-pylibmc-sasl/setup.py) egg_info for package django-pylibmc-sasl

       Downloading/unpacking django-registration==0.8 (from -r requirements.txt (line 16))
         Running setup.py (path:/tmp/pip_build_u38080/django-registration/setup.py) egg_info for package django-registration

       Downloading/unpacking django-secure==0.1.2 (from -r requirements.txt (line 17))
         Downloading django-secure-0.1.2.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/django-secure/setup.py) egg_info for package django-secure

       Downloading/unpacking django-sse==0.4.1 (from -r requirements.txt (line 18))
         Downloading django-sse-0.4.1.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/django-sse/setup.py) egg_info for package django-sse

       Downloading/unpacking gevent==0.13.8 (from -r requirements.txt (line 19))
         Running setup.py (path:/tmp/pip_build_u38080/gevent/setup.py) egg_info for package gevent

       Downloading/unpacking greenlet==0.4.0 (from -r requirements.txt (line 20))
         Running setup.py (path:/tmp/pip_build_u38080/greenlet/setup.py) egg_info for package greenlet

       Downloading/unpacking gunicorn==0.16.1 (from -r requirements.txt (line 21))
         Running setup.py (path:/tmp/pip_build_u38080/gunicorn/setup.py) egg_info for package gunicorn

       Downloading/unpacking honcho==0.2.0 (from -r requirements.txt (line 22))
         Downloading honcho-0.2.0.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/honcho/setup.py) egg_info for package honcho

       Downloading/unpacking kombu==2.5.3 (from -r requirements.txt (line 23))
         Running setup.py (path:/tmp/pip_build_u38080/kombu/setup.py) egg_info for package kombu

       Downloading/unpacking newrelic==1.10.2.38 (from -r requirements.txt (line 24))
         newrelic an externally hosted file and may be unreliable
         Running setup.py (path:/tmp/pip_build_u38080/newrelic/setup.py) egg_info for package newrelic

       Downloading/unpacking paramiko==1.9.0 (from -r requirements.txt (line 25))
         Running setup.py (path:/tmp/pip_build_u38080/paramiko/setup.py) egg_info for package paramiko

       Downloading/unpacking psycopg2==2.4.5 (from -r requirements.txt (line 26))
         Running setup.py (path:/tmp/pip_build_u38080/psycopg2/setup.py) egg_info for package psycopg2

           no previously-included directories found matching 'doc/src/_build'
       Downloading/unpacking pycrypto==2.6 (from -r requirements.txt (line 27))
         Running setup.py (path:/tmp/pip_build_u38080/pycrypto/setup.py) egg_info for package pycrypto

       Downloading/unpacking pylibmc==1.2.3 (from -r requirements.txt (line 28))
         Running setup.py (path:/tmp/pip_build_u38080/pylibmc/setup.py) egg_info for package pylibmc

       Downloading/unpacking python-dateutil==1.5 (from -r requirements.txt (line 29))
         Running setup.py (path:/tmp/pip_build_u38080/python-dateutil/setup.py) egg_info for package python-dateutil

       Downloading/unpacking pytz==2012h (from -r requirements.txt (line 30))
         Running setup.py (path:/tmp/pip_build_u38080/pytz/setup.py) egg_info for package pytz

           warning: no files found matching '*.pot' under directory 'pytz'
       Downloading/unpacking redis==2.7.2 (from -r requirements.txt (line 31))
         Running setup.py (path:/tmp/pip_build_u38080/redis/setup.py) egg_info for package redis

       Downloading/unpacking sse==1.2 (from -r requirements.txt (line 32))
         Downloading sse-1.2.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/sse/setup.py) egg_info for package sse

       Downloading/unpacking tornado (from celerymon==1.0.3->-r requirements.txt (line 9))
         Running setup.py (path:/tmp/pip_build_u38080/tornado/setup.py) egg_info for package tornado

       Downloading/unpacking certifi (from tornado->celerymon==1.0.3->-r requirements.txt (line 9))
         Running setup.py (path:/tmp/pip_build_u38080/certifi/setup.py) egg_info for package certifi

       Downloading/unpacking backports.ssl-match-hostname (from tornado->celerymon==1.0.3->-r requirements.txt (line 9))
         Downloading backports.ssl_match_hostname-3.4.0.2.tar.gz
         Running setup.py (path:/tmp/pip_build_u38080/backports.ssl-match-hostname/setup.py) egg_info for package backports.ssl-match-hostname

       Installing collected packages: Django, Fabric, Unipath, amqp, anyjson, billiard, boto, celery, celerymon, distribute, dj-database-url, django-celery, django-heroku-memcacheify, django-ping, django-pylibmc-sasl, django-registration, django-secure, django-sse, gevent, greenlet, gunicorn, honcho, kombu, newrelic, paramiko, psycopg2, pycrypto, pylibmc, python-dateutil, pytz, redis, sse, tornado, certifi, backports.ssl-match-hostname
         Running setup.py install for Django
           changing mode of build/scripts-2.7/django-admin.py from 600 to 755

           changing mode of /app/.heroku/python/bin/django-admin.py to 755
         Running setup.py install for Fabric

           Installing fab script to /app/.heroku/python/bin
         Running setup.py install for Unipath

         Running setup.py install for amqp

         Running setup.py install for anyjson

         Running setup.py install for billiard
           building '_billiard' extension
           gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1 -IModules/_billiard -I/app/.heroku/python/include/python2.7 -c Modules/_billiard/multiprocessing.c -o build/temp.linux-x86_64-2.7/Modules/_billiard/multiprocessing.o
           gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1 -IModules/_billiard -I/app/.heroku/python/include/python2.7 -c Modules/_billiard/socket_connection.c -o build/temp.linux-x86_64-2.7/Modules/_billiard/socket_connection.o
           gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_SEM_OPEN=1 -DHAVE_FD_TRANSFER=1 -DHAVE_SEM_TIMEDWAIT=1 -IModules/_billiard -I/app/.heroku/python/include/python2.7 -c Modules/_billiard/semaphore.c -o build/temp.linux-x86_64-2.7/Modules/_billiard/semaphore.o
           gcc -pthread -shared build/temp.linux-x86_64-2.7/Modules/_billiard/multiprocessing.o build/temp.linux-x86_64-2.7/Modules/_billiard/socket_connection.o build/temp.linux-x86_64-2.7/Modules/_billiard/semaphore.o -L/app/.heroku/python/lib -lrt -lpython2.7 -o build/lib.linux-x86_64-2.7/_billiard.so

           warning: no files found matching '*.py' under directory 'Lib'
         Running setup.py install for boto

           warning: no files found matching 'boto/mturk/test/*.doctest'
           warning: no files found matching 'boto/mturk/test/.gitignore'
           changing mode of build/scripts-2.7/sdbadmin from 600 to 755
           changing mode of build/scripts-2.7/elbadmin from 600 to 755
           changing mode of build/scripts-2.7/cfadmin from 600 to 755
           changing mode of build/scripts-2.7/s3put from 600 to 755
           changing mode of build/scripts-2.7/fetch_file from 600 to 755
           changing mode of build/scripts-2.7/launch_instance from 600 to 755
           changing mode of build/scripts-2.7/list_instances from 600 to 755
           changing mode of build/scripts-2.7/taskadmin from 600 to 755
           changing mode of build/scripts-2.7/kill_instance from 600 to 755
           changing mode of build/scripts-2.7/bundle_image from 600 to 755
           changing mode of build/scripts-2.7/pyami_sendmail from 600 to 755
           changing mode of build/scripts-2.7/lss3 from 600 to 755
           changing mode of build/scripts-2.7/cq from 600 to 755
           changing mode of build/scripts-2.7/route53 from 600 to 755
           changing mode of build/scripts-2.7/s3multiput from 600 to 755
           changing mode of build/scripts-2.7/cwutil from 600 to 755
           changing mode of build/scripts-2.7/instance_events from 600 to 755
           changing mode of build/scripts-2.7/asadmin from 600 to 755
           changing mode of build/scripts-2.7/glacier from 600 to 755
           changing mode of /app/.heroku/python/bin/sdbadmin to 755
           changing mode of /app/.heroku/python/bin/cfadmin to 755
           changing mode of /app/.heroku/python/bin/list_instances to 755
           changing mode of /app/.heroku/python/bin/asadmin to 755
           changing mode of /app/.heroku/python/bin/taskadmin to 755
           changing mode of /app/.heroku/python/bin/elbadmin to 755
           changing mode of /app/.heroku/python/bin/launch_instance to 755
           changing mode of /app/.heroku/python/bin/cq to 755
           changing mode of /app/.heroku/python/bin/kill_instance to 755
           changing mode of /app/.heroku/python/bin/fetch_file to 755
           changing mode of /app/.heroku/python/bin/bundle_image to 755
           changing mode of /app/.heroku/python/bin/cwutil to 755
           changing mode of /app/.heroku/python/bin/route53 to 755
           changing mode of /app/.heroku/python/bin/s3multiput to 755
           changing mode of /app/.heroku/python/bin/pyami_sendmail to 755
           changing mode of /app/.heroku/python/bin/instance_events to 755
           changing mode of /app/.heroku/python/bin/glacier to 755
           changing mode of /app/.heroku/python/bin/s3put to 755
           changing mode of /app/.heroku/python/bin/lss3 to 755
         Running setup.py install for celery
           Upgrade: no old version found.

           no previously-included directories found matching '*.pyc'
           Installing celeryctl script to /app/.heroku/python/bin
           Installing celeryd script to /app/.heroku/python/bin
           Installing camqadm script to /app/.heroku/python/bin
           Installing celeryev script to /app/.heroku/python/bin
           Installing celery script to /app/.heroku/python/bin
           Installing celeryd-multi script to /app/.heroku/python/bin
           Installing celerybeat script to /app/.heroku/python/bin
         Running setup.py install for celerymon

           no previously-included directories found matching 'celerymon/*.pyc'
           no previously-included directories found matching 'bin/*.pyc'
           Installing celerymon script to /app/.heroku/python/bin
         Running setup.py install for distribute
           Before install bootstrap.
           Scanning installed packages
           Setuptools installation detected at /app/.heroku/python/lib/python2.7/site-packages/setuptools-5.4.1-py2.7.egg
           Egg installation
           Patching...
           Renaming /app/.heroku/python/lib/python2.7/site-packages/setuptools-5.4.1-py2.7.egg into /app/.heroku/python/lib/python2.7/site-packages/setuptools-5.4.1-py2.7.egg.OLD.1407158405.71
           Patched done.
           Relaunching...
           Traceback (most recent call last):
             File "<string>", line 1, in <module>
           NameError: name 'install' is not defined
           Complete output from command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_u38080/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-L1h3lo-record/install-record.txt --single-version-externally-managed --compile:
           Before install bootstrap.

       Scanning installed packages

       Setuptools installation detected at /app/.heroku/python/lib/python2.7/site-packages/setuptools-5.4.1-py2.7.egg

       Egg installation

       Patching...

       Renaming /app/.heroku/python/lib/python2.7/site-packages/setuptools-5.4.1-py2.7.egg into /app/.heroku/python/lib/python2.7/site-packages/setuptools-5.4.1-py2.7.egg.OLD.1407158405.71

       Patched done.

       Relaunching...

       Traceback (most recent call last):

         File "<string>", line 1, in <module>

       NameError: name 'install' is not defined

       ----------------------------------------
       Cleaning up...
       Command /app/.heroku/python/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_u38080/distribute/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-L1h3lo-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_u38080/distribute
       Storing debug log for failure in /app/.pip/pip.log

 !     Push rejected, failed to compile Python app

To [email protected]:abc-minecloud.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:abc-minecloud.git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant