Sto provando a spingere la mia app Python3 su Heroku. Utilizza gevent
che ha una dipendenza Cython
. Quando provo a inviare a Heroku, ottengo questo errore:Heroku: sh: cython: non trovato
Running cython -o gevent.core.c gevent/core.pyx # !EV_USE_SIGNALFD && !defined(LIBEV_EMBED) && !defined(_WIN32)
sh: cython: not found
Traceback (most recent call last):
File "util/cythonpp.py", line 801, in <module>
process_filename(filename, options.output_file)
File "util/cythonpp.py", line 85, in process_filename
output = run_cython(pyx_filename, sourcehash, output_filename, banner, comment)
File "util/cythonpp.py", line 529, in run_cython
system(command, comment)
File "util/cythonpp.py", line 539, in system
raise AssertionError('%r failed with code %s' % (command, result))
AssertionError: 'cython -o gevent.core.c gevent/core.pyx' failed with code 32512
make: *** [gevent/gevent.core.c] Error 1
----------------------------------------
Command /app/.heroku/python/bin/python -c "import setuptools; __file__='/app/.heroku/src/gevent/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/gevent
Storing complete log in /app/.pip/pip.log
! Push rejected, failed to compile Python app
Come posso risolvere questo?
Ho già registrato un ticket di supporto con loro. Aggiornerò questo problema quando/se avrò una risposta. – zakdances
FYI - questo ha funzionato per me: 'git + git: // github.com/zwopple/heroku-gevent.git' – Jonathan
@yourfriendzak Qualche aggiornamento? Sono interessato all'installazione di una versione biforcuta di gevent, ma sto avendo gli stessi problemi di installazione su Heroku. – BillyBBone