首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将哨兵从9.1级升级为10级

将哨兵从9.1级升级为10级
EN

Stack Overflow用户
提问于 2020-06-13 21:16:24
回答 1查看 342关注 0票数 0

我正在尝试将自我托管的Sentry从9.1.2升级到最新的10.0,但是卸载pip安装--升级哨兵会给出如下结果:

代码语言:javascript
复制
  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.
EN

回答 1

Stack Overflow用户

发布于 2020-06-13 21:29:21

您能尝试在您的--no-use-pep517中添加pip install吗?

代码语言:javascript
复制
pip install -U sentry --no-use-pep517

请参阅本页:https://www.python.org/dev/peps/pep-0517/

希望这能成功!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62365657

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档