【发布时间】:2021-11-17 04:21:01
【问题描述】:
您好,在我重新编写源代码后 并从 heroku 克隆我的网站
我收到这个错误
日志:
psycopg/psycopgmodule.c: In function ‘psyco_is_main_interp’:
psycopg/psycopgmodule.c:689:18: error: dereferencing pointer to incomplete type ‘PyInterpreterState’ {aka ‘struct _is’}
689 | while (interp->next)
| ^~
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t_xxbtyy/psycopg2-binary/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t_xxbtyy/psycopg2-binary/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-record-cevcg2_6/install-record.txt --single-version-externally-managed --compile --install-headers /app/.heroku/python/include/python3.9/psycopg2-binary Check the logs for full command output.
!推送被拒绝,无法编译 Python 应用。
!推送失败
任何修复? 谢谢
【问题讨论】:
标签: django heroku web-deployment