[open-science-dev] Pushing Pybossa to Heroku
Traian Fratean
traian.fratean at gmail.com
Thu Sep 26 12:51:15 UTC 2013
Actually solved the issue. It looks like it was a wrong path and it can be
fixed by using a custom buildpack as detailed here:
http://stackoverflow.com/questions/10334920/heroku-buildpacks-installing-executables-that-are-used-by-python-packages
In this case the heroku setup guide needs to be amended with instructions
to use the new buildpack.
Traian.
2013/9/26 Traian Fratean <traian.fratean at gmail.com>
> Hello,
>
>
> I tried to push Pybossa to heroku as described here:
> http://docs.pybossa.com/en/latest/heroku_deploy.html?highlight=heroku
>
> First it was not working as there is no version 0.22.dev for M2Crypto in
> PyPI https://pypi.python.org/simple/M2Crypto/. So I changed in
> requirements.txt to:
>
> -e git+https://github.com/Hypernode/M2Crypto#egg=M2Crypto-0.22.dev
>
> When pushing to Heroku it fails while running setup.py with this error:
>
>
>
> Running setup.py develop for M2Crypto
>
> building 'M2Crypto.__m2crypto' extension
> swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
> swig -python -I/app/.heroku/python/include/python2.7
> -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
> unable to execute swig: No such file or directory
> error: command 'swig' failed with exit status 1
> Complete output from command /app/.heroku/python/bin/python -c
> "import setuptools; __file__='/app/.heroku/src/m2crypto/setup.py';
> exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__,
> 'exec'))" develop --no-deps:
> running develop
>
> running egg_info
>
> writing M2Crypto.egg-info/PKG-INFO
>
> writing top-level names to M2Crypto.egg-info/top_level.txt
>
> writing dependency_links to M2Crypto.egg-info/dependency_links.txt
>
> warning: manifest_maker: standard file '-c' not found
>
>
>
> reading manifest file 'M2Crypto.egg-info/SOURCES.txt'
>
> writing manifest file 'M2Crypto.egg-info/SOURCES.txt'
>
> running build_ext
>
> building 'M2Crypto.__m2crypto' extension
>
> swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
>
> swig -python -I/app/.heroku/python/include/python2.7 -I/usr/include
> -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
>
> unable to execute swig: No such file or directory
>
> error: command 'swig' failed with exit status 1
>
> ----------------------------------------
> Command /app/.heroku/python/bin/python -c "import setuptools;
> __file__='/app/.heroku/src/m2crypto/setup.py';
> exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__,
> 'exec'))" develop --no-deps failed with error code 1 in
> /app/.heroku/src/m2crypto
> Storing complete log in /app/.pip/pip.log
>
> ! Push rejected, failed to compile Python app
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/open-science-dev/attachments/20130926/9d4dbebe/attachment.html>
More information about the open-science-dev
mailing list