【发布时间】:2020-10-03 12:47:39
【问题描述】:
我正在尝试将自托管 Sentry 从 9.1.2 升级到最新的 10.0,但取消 pip install --upgrade sentry 给出了这个:
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.
【问题讨论】: