You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GitLab流水线Conan导入错误:无法加载gtest/1.10.0配方

GitLab流水线Conan依赖导入错误求助

此前GitLab流水线已正常运行多日,代码仓库未做任何更新,却突发Conan依赖导入错误,恳请各位帮忙排查原因。

流水线运行环境镜像中的Conan版本为:Conan version 1.51.3

错误日志如下:

gtest/1.10.0: Not found in local cache, looking in remotes...
gtest/1.10.0: Trying with 'conancenter'...
Downloading conanmanifest.txt
Downloading conanfile.py
Downloading conan_export.tgz
gtest/1.10.0: Downloaded recipe revision 0
ERROR: gtest/1.10.0: Cannot load recipe.
Error loading conanfile at '/root/.conan/data/gtest/1.10.0/_/_/export/conanfile.py': Unable to load conanfile in /root/.conan/data/gtest/1.10.0/_/_/export/conanfile.py
  File "/usr/lib/python3.10/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 719, in _load
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/root/.conan/data/gtest/1.10.0/_/_/export/conanfile.py", line 6, in <module>
    from conan.tools.files import apply_conandata_patches, export_conandata_patches, copy, get, replace_in_file, rm, rmdir
ImportError: cannot import name 'export_conandata_patches' from 'conan.tools.files' (/usr/local/lib/python3.10/dist-packages/conan/tools/files/__init__.py)

期待您的回复,谢谢。


内容的提问来源于stack exchange,提问作者Honey Sukesan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 20:35:17