Почему я получаю сообщение об ошибке при отправке кода django в heroku? - PullRequest
0 голосов
/ 23 ноября 2018

Когда я пытаюсь отправить свой код для сайта Django в Heroku, я получаю следующую ошибку:

remote:            /usr/bin/ld: 
/app/.heroku/python/lib/libpython3.6m.a(ceval.o): relocation 
R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when 
making a shared object; recompile with -fPIC
remote:            /usr/bin/ld: final link failed: Bad value
remote:            collect2: error: ld returned 1 exit status
remote:            error: command 'gcc' failed with exit status 1
remote:            
remote:            ----------------------------------------
remote:        Command "/app/.heroku/python/bin/python -u -c "import 
setuptools, tokenize;__file__='/tmp/pip-build-hq2rsseo/mod- 
wsgi/setup.py';f=getattr(tokenize, 'open', open) 
(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-4wci3c07-record/install-record.txt --single-version- 
externally-managed --compile" failed with error code 1 in /tmp/pip- 
build-hq2rsseo/mod-wsgi/
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !   Push rejected to stormy-stream-43261.
remote: 
To https://git.heroku.com/stormy-stream-43261.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/stormy- 
stream-43261.git'

Я думаю, что это как-то связано с тем, что Heroku не поддерживает некоторую зависимость, но, тем не менее,Я не могу понять, что делать, чтобы решить эту проблему.Есть идеи?

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...