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

Pushes to heroku rejected, something not compiling properly? #14

Closed
ckcollab opened this issue May 13, 2016 · 1 comment
Closed

Pushes to heroku rejected, something not compiling properly? #14

ckcollab opened this issue May 13, 2016 · 1 comment

Comments

@ckcollab
Copy link
Contributor

ckcollab commented May 13, 2016

I get this deploying to Heroku now:

remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Fetching set buildpack https://github.com/ckcollab/heroku-buildpack-pelican... done
remote: -----> Pelican app detected
remote: -----> Installing Python (python-3.4.3)
remote: -----> Ensure pip
remote:        Ignoring indexes: https://pypi.python.org/simple
remote:        Collecting setuptools
remote:        Collecting pip
remote:        Installing collected packages: pip, setuptools
remote:        
remote:        
remote:        Successfully installed pip-6.0.8 setuptools-12.0.5
remote: -----> Installing dependencies using pip
remote:        You are using pip version 6.0.8, however version 8.1.2 is available.
remote:        You should consider upgrading via the 'pip install --upgrade pip' command.
remote:            Command "/app/tmp/cache/python-3.4.3/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-hismz5gl/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-du86dt61-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-hismz5gl/cffi
remote: 
remote:  !     Push rejected, failed to compile Pelican app
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to ericcarmichael.
remote: 
To https://git.heroku.com/ericcarmichael.git
 ! [remote rejected] master -> master (pre-receive hook declined)

cffi setup? still digging, I'm up to date with master so other people may also be getting this problem?

Trying to add main python buildpack, Google says that might help, still not working...

I think this has nothing to do with this buildpack, but I'm curious why it started happening... here's output after above buildpack was added:

-----> Using set buildpack heroku/python
-----> Python app detected
 !     Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.
 !     Learn more: https://devcenter.heroku.com/articles/procfile
-----> Installing python-2.7.10
     $ pip install -r requirements.txt
       Collecting Jinja2==2.7.2 (from -r requirements.txt (line 1))
         Downloading Jinja2-2.7.2.tar.gz (378kB)
       Collecting Markdown==2.4 (from -r requirements.txt (line 2))
         Downloading Markdown-2.4.zip (392kB)
       Collecting MarkupSafe==0.19 (from -r requirements.txt (line 3))
         Downloading MarkupSafe-0.19.tar.gz
       Collecting Pygments==1.6 (from -r requirements.txt (line 4))
         Downloading Pygments-1.6.tar.gz (1.4MB)
       Collecting Unidecode==0.04.14 (from -r requirements.txt (line 5))
         Downloading Unidecode-0.04.14.tar.gz (200kB)
       Collecting blinker==1.3 (from -r requirements.txt (line 6))
         Downloading blinker-1.3.tar.gz (91kB)
       Collecting cssmin==0.2.0 (from -r requirements.txt (line 7))
         Downloading cssmin-0.2.0.tar.gz
       Collecting docutils==0.11 (from -r requirements.txt (line 8))
         Downloading docutils-0.11.tar.gz (1.6MB)
       Collecting feedgenerator==1.7 (from -r requirements.txt (line 9))
         Downloading feedgenerator-1.7.tar.gz
       Collecting jsmin==2.0.9 (from -r requirements.txt (line 10))
         Downloading jsmin-2.0.9.tar.gz
       Collecting pelican==3.3 (from -r requirements.txt (line 11))
         Downloading pelican-3.3-py2.py3-none-any.whl (391kB)
       Collecting pytz==2014.2 (from -r requirements.txt (line 12))
         Downloading pytz-2014.2.tar.gz (274kB)
       Collecting six==1.6.1 (from -r requirements.txt (line 13))
         Downloading six-1.6.1-py2.py3-none-any.whl
       Collecting webassets==0.9 (from -r requirements.txt (line 14))
         Downloading webassets-0.9.tar.gz (159kB)
       Collecting Fabric==1.10.1 (from -r requirements.txt (line 15))
         Downloading Fabric-1.10.1.tar.gz (209kB)
       Collecting paramiko>=1.10 (from Fabric==1.10.1->-r requirements.txt (line 15))
         Downloading paramiko-2.0.0-py2.py3-none-any.whl (170kB)
       Collecting pyasn1>=0.1.7 (from paramiko>=1.10->Fabric==1.10.1->-r requirements.txt (line 15))
         Downloading pyasn1-0.1.9-py2.py3-none-any.whl
       Collecting cryptography>=1.1 (from paramiko>=1.10->Fabric==1.10.1->-r requirements.txt (line 15))
         Downloading cryptography-1.3.2.tar.gz (383kB)
       Collecting idna>=2.0 (from cryptography>=1.1->paramiko>=1.10->Fabric==1.10.1->-r requirements.txt (line 15))
         Downloading idna-2.1-py2.py3-none-any.whl (54kB)
       Collecting enum34 (from cryptography>=1.1->paramiko>=1.10->Fabric==1.10.1->-r requirements.txt (line 15))
         Downloading enum34-1.1.5-py2.py3-none-any.whl (61kB)
       Collecting ipaddress (from cryptography>=1.1->paramiko>=1.10->Fabric==1.10.1->-r requirements.txt (line 15))
         Downloading ipaddress-1.0.16-py27-none-any.whl
       Collecting cffi>=1.4.1 (from cryptography>=1.1->paramiko>=1.10->Fabric==1.10.1->-r requirements.txt (line 15))
         Downloading cffi-1.6.0.tar.gz (397kB)
       Collecting pycparser (from cffi>=1.4.1->cryptography>=1.1->paramiko>=1.10->Fabric==1.10.1->-r requirements.txt (line 15))
         Downloading pycparser-2.14.tar.gz (223kB)
       Installing collected packages: MarkupSafe, Jinja2, Markdown, Pygments, Unidecode, blinker, cssmin, docutils, pytz, six, feedgenerator, jsmin, pelican, webassets, pyasn1, idna, enum34, ipaddress, pycparser, cffi, cryptography, paramiko, Fabric
         Running setup.py install for MarkupSafe: started
           Running setup.py install for MarkupSafe: finished with status 'done'
         Running setup.py install for Jinja2: started
           Running setup.py install for Jinja2: finished with status 'done'
         Running setup.py install for Markdown: started
           Running setup.py install for Markdown: finished with status 'done'
         Running setup.py install for Pygments: started
           Running setup.py install for Pygments: finished with status 'done'
         Running setup.py install for Unidecode: started
           Running setup.py install for Unidecode: finished with status 'done'
         Running setup.py install for blinker: started
           Running setup.py install for blinker: finished with status 'done'
         Running setup.py install for cssmin: started
           Running setup.py install for cssmin: finished with status 'done'
         Running setup.py install for docutils: started
           Running setup.py install for docutils: finished with status 'done'
         Running setup.py install for pytz: started
           Running setup.py install for pytz: finished with status 'done'
         Running setup.py install for feedgenerator: started
           Running setup.py install for feedgenerator: finished with status 'done'
         Running setup.py install for jsmin: started
           Running setup.py install for jsmin: finished with status 'done'
         Running setup.py install for webassets: started
           Running setup.py install for webassets: finished with status 'done'
         Running setup.py install for pycparser: started
           Running setup.py install for pycparser: finished with status 'done'
         Running setup.py install for cffi: started
           Running setup.py install for cffi: finished with status 'error'
           Complete output from command /app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-MKRqre/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4KuZo0-record/install-record.txt --single-version-externally-managed --compile:
           Package libffi was not found in the pkg-config search path.
           Perhaps you should add the directory containing `libffi.pc'
           to the PKG_CONFIG_PATH environment variable
           No package 'libffi' found
           Package libffi was not found in the pkg-config search path.
           Perhaps you should add the directory containing `libffi.pc'
           to the PKG_CONFIG_PATH environment variable
           No package 'libffi' found
           Package libffi was not found in the pkg-config search path.
           Perhaps you should add the directory containing `libffi.pc'
           to the PKG_CONFIG_PATH environment variable
           No package 'libffi' found
           Package libffi was not found in the pkg-config search path.
           Perhaps you should add the directory containing `libffi.pc'
           to the PKG_CONFIG_PATH environment variable
           No package 'libffi' found
           Package libffi was not found in the pkg-config search path.
           Perhaps you should add the directory containing `libffi.pc'
           to the PKG_CONFIG_PATH environment variable
           No package 'libffi' found
           running install
           running build
           running build_py
           creating build
           creating build/lib.linux-x86_64-2.7
           creating build/lib.linux-x86_64-2.7/cffi
           copying cffi/ffiplatform.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/commontypes.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/api.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/gc_weakref.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/vengine_gen.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/model.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/cparser.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/__init__.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/lock.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/recompiler.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/verifier.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/_cffi_include.h -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/parse_c_type.h -> build/lib.linux-x86_64-2.7/cffi
           copying cffi/_embedding.h -> build/lib.linux-x86_64-2.7/cffi
           running build_ext
           building '_cffi_backend' extension
           creating build/temp.linux-x86_64-2.7
           creating build/temp.linux-x86_64-2.7/c
           gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/app/.heroku/python/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-x86_64-2.7/c/_cffi_backend.o
           c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
            #include <ffi.h>
                            ^
           compilation terminated.
           error: command 'gcc' failed with exit status 1

           ----------------------------------------
       Command "/app/.heroku/python/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-MKRqre/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4KuZo0-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-MKRqre/cffi/

libffi buildpack didn't help -> https://github.com/Stibbons/heroku-buildpack-libffi

@ckcollab
Copy link
Contributor Author

Removing Fabric requirement seems to have fixed it ???

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