【问题标题】:Issue with upgrading sentry from 9.1 to 10将哨兵从 9.1 升级到 10 的问题
【发布时间】: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.

【问题讨论】:

    标签: python pip sentry


    【解决方案1】:

    您可以尝试在您的pip install 中添加--no-use-pep517

    pip install -U sentry --no-use-pep517
    

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

    希望这会奏效!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-11-14
      • 1970-01-01
      • 1970-01-01
      • 2020-10-16
      • 2016-02-19
      • 1970-01-01
      • 2022-11-14
      • 1970-01-01
      相关资源
      最近更新 更多