源码构建docker compose build时候[ 2/41] Cythonizing spacy/kb.pyx错误
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- docker, docker-compose, python
- 领域
- build-system, devops
调研方向
使用 docker compose up --build 重现失败,并检查 pip install --no-cache-dir -r requirements.txt 步骤。从 spacy/kb.pyx 的 Cython 错误以及 Python 3.10/WSL2 环境入手;当 Docker 镜像能够成功构建且不再出现报告中的 wheel 构建失败时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Issue Description / 问题描述
Please provide a detailed description of the error or issue you encountered. / 请详细描述您遇到的错误或问题。
在使用源码构建docker compose build时候报错,报错见错误日志与截图
Steps to Reproduce / 复现步骤
Please provide the specific steps to reproduce the error. / 请提供复现错误的具体步骤。
直接使用docker compose up --bulid
Expected Behavior / 预期行为
Describe the behavior you expected to see. / 请描述您期望的正确行为。
能够正确安装
Environment / 环境信息
- Operating System / 操作系统:windows 11 WSL 2
- Python Version / Python 版本:3.10
- Other Relevant Information / 其他相关信息:
Error Screenshots or Logs / 错误截图或日志
If possible, please provide relevant screenshots or logs of the error. / 如果可能,请提供相关的错误截图或日志文件。
208.1 [ 1/41] Cythonizing spacy/attrs.pyx
208.1 [ 2/41] Cythonizing spacy/kb.pyx
208.1 Traceback (most recent call last):
208.1 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
208.1 main()
208.1 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
208.1 json_out['return_val'] = hook(**hook_input['kwargs'])
208.1 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
208.1 return hook(config_settings)
208.1 File "/tmp/pip-build-env-2x37m6bt/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
208.1 return self._get_build_requires(config_settings, requirements=['wheel'])
208.1 File "/tmp/pip-build-env-2x37m6bt/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
208.1 self.run_setup()
208.1 File "/tmp/pip-build-env-2x37m6bt/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 311, in run_setup
208.1 exec(code, locals())
208.1 File "", line 224, in
208.1 File "", line 211, in setup_package
208.1 File "/tmp/pip-build-env-2x37m6bt/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
208.1 cythonize_one(*args)
208.1 File "/tmp/pip-build-env-2x37m6bt/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
208.1 raise CompileError(None, pyx_file)
208.1 Cython.Compiler.Errors.CompileError: spacy/kb.pyx
208.1 [end of output]
208.1
208.1 note: This error originates from a subprocess, and is likely not a problem with pip.
208.1 error: subprocess-exited-with-error
208.1
208.1 × Getting requirements to build wheel did not run successfully.
208.1 │ exit code: 1
208.1 ╰─> See above for output.
208.1
208.1 note: This error originates from a subprocess, and is likely not a problem with pip.
208.2
208.2 [notice] A new release of pip is available: 23.0.1 -> 24.0
208.2 [notice] To update, run: pip install --upgrade pip
failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
Additional Notes / 其他备注
If you have any additional information or notes, please add them here. / 如果有其他补充信息,请在此处添加。
- 主要语言
- Python
- 星标
- 8.5k
- 派生
- 905
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenBMB/XAgent 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 15/100
-
bug
难度 3/5 1-2 天 新手友好度 72/100
-
bug
难度 4/5 3-5 天 新手友好度 45/100
-
难度 5/5 一周以上 新手友好度 5/100
相似的 Issue
-
bug server
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
sportsdataverse/sportsdataverse-py#641 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
googleapis/google-cloud-python#18532 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复