pythongssapi / pythongssapi/python-gssapi

Error building wheel

未关闭
#317 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
116
派生
55
平均合并
1 天 24 分钟
30 天内合并 PR
2

描述

What went wrong?

Pip was trying to build the project using wheel and errored with this output:

Collecting gssapi
  Using cached gssapi-1.8.2.tar.gz (94 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /home/mason/BeehiveAPIBackend/venv/bin/python3 /tmp/tmp5g4xky0b get_requires_for_build_wheel /tmp/tmpmot9xp07
       cwd: /tmp/pip-install-l5by33hj/gssapi
  Complete output (21 lines):
  /bin/sh: 1: krb5-config: not found
  Traceback (most recent call last):
    File "/tmp/tmp5g4xky0b", line 280, in <module>
      main()
    File "/tmp/tmp5g4xky0b", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/tmp/tmp5g4xky0b", line 114, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-7dhst_op/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-7dhst_op/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-7dhst_op/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 109, in <module>
    File "<string>", line 22, in get_output
    File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "/usr/lib/python3.8/subprocess.py", line 516, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command 'krb5-config --libs gssapi' returned non-zero exit status 127.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /home/mason/BeehiveAPIBackend/venv/bin/python3 /tmp/tmp5g4xky0b get_requires_for_build_wheel /tmp/tmpmot9xp07 Check the logs for full command output.

How do we reproduce?

(Remember to use fenced code blocks and consider placing in a gist if large)

Set up a python venv

Install the following requirements from requirements.txt (I haven't been able to determine which one python-gssapi is a dependency of):

connexion >= 2.6.0
connexion[swagger-ui] >= 2.6.0
python_dateutil == 2.6.0
setuptools >= 21.0.0
swagger-ui-bundle >= 0.0.2
mysql-connector-python>=8.0.32
arcgis>=2.0.0
Component versions (python-gssapi, Kerberos, OS / distro, etc.)

(Please include MIT/Heimdal/etc. and how you installed python-gssapi)

Installed via pip 20.0.2 from a requirements.txt file containing the contents mentioned above. Using Ubuntu 20.04.5 LTS. Attempting to install python-gssapi 1.8.2. I know my cached version isn't corrupted because this happened on the first try after pip downloaded the package.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 Ubuntu 20.04.5 上使用列出的 requirements 和 pip 20.0.2 重现该失败,并从 python-gssapi 1.8.2 的 wheel-build 输出开始调查。调查 krb5-config 在构建期间不可用的原因,并确定是否需要修正 dependency 或安装指南。requirements 安装成功,或所需的 prerequisite 已得到明确记录,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
security
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。