我正试图在Heroku上部署DRF应用程序,但在为uWSGI构建轮子时,它总是出错。 我在Heroku堆栈上:Heroku-20最新版本
命令行上的日志如下所示:
remote: Building wheel for uWSGI (setup.py): started
remote: Building wheel for uWSGI (setup.py): finished with status 'error'
remote: ERROR: Command errored out with exit status 1:
remote: command: /app/.heroku/python/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_2lmfods/uWSGI/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_2lmfods/uWSGI/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-8jh6k5it
remote: cwd: /tmp/pip-install-_2lmfods/uWSGI/
remote: Complete output (221 lines):
remote: /app/.heroku/python/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'descriptions'
remote: warnings.warn(msg)
remote: running bdist_wheel
完整登录命令行太长,无法在此发布。但在日志的更深处有这样一个警告:
remote: plugins/python/python_plugin.c: In function ‘uwsgi_python_worker’:
remote: plugins/python/python_plugin.c:1961:3: warning: ‘PyOS_AfterFork’ is deprecated [-Wdeprecated-declarations]
remote: 1961 | PyOS_AfterFork();
remote: | ^~~~~~~~~~~~~~
remote: In file included from /app/.heroku/python/include/python3.8/Python.h:144,
remote: from plugins/python/uwsgi_python.h:2,
remote: from plugins/python/python_plugin.c:1:
remote: /app/.heroku/python/include/python3.8/intrcheck.h:18:37: note: declared here
remote: 18 | Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyOS_AfterFork(void);
我的初始运行时python是3.9.0,我已经测试过将其更改为3.9.2和3.8.8,但仍然得到相同的错误
最近还有其他人遇到过Heroku的这个问题吗
目前没有回答
相关问题 更多 >
编程相关推荐