我正在尝试将自我托管的Sentry从9.1.2升级到最新的10.0,但是卸载pip安装--升级哨兵会给出如下结果:
Collecting xmlsec>=0.6.0
Using cached xmlsec-1.3.8.tar.gz (59 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /usr/sentry/bin/python /usr/sentry/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpx4yHqi
cwd: /tmp/pip-install-X3YynY/xmlsec
Complete output (10 lines):
Traceback (most recent call last):
File "/usr/sentry/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
main()
File "/usr/sentry/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/sentry/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 108, in get_requires_for_build_wheel
backend = _build_backend()
File "/usr/sentry/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py", line 99, in _build_backend
obj = getattr(obj, path_part)
AttributeError: 'module' object has no attribute '__legacy__'
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/sentry/bin/python /usr/sentry/local/lib/python2.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpx4yHqi Check the logs for full command output.发布于 2020-06-13 21:29:21
您能尝试在您的--no-use-pep517中添加pip install吗?
pip install -U sentry --no-use-pep517请参阅本页:https://www.python.org/dev/peps/pep-0517/
希望这能成功!
https://stackoverflow.com/questions/62365657
复制相似问题