【发布时间】:2023-03-29 03:57:01
【问题描述】:
我遇到了 conda 打包问题。我使用someone's recipe 构建与C++ 库libvips 的python 绑定。当我运行构建(在新的 docker 映像中)时,出现以下错误:
Build prefix failed with prefix length 255
WARNING:conda_build.environ:Build prefix failed with prefix length 255
WARNING conda_build.environ:create_env(877): Build prefix failed with prefix length 255
Error was:
WARNING:conda_build.environ:Error was:
WARNING conda_build.environ:create_env(878): Error was:
Placeholder of length '80' too short in package /opt/conda/conda-bld/libvips_1561659686802/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/bin/csslint-0.6.
The package must be rebuilt with conda-build > 2.0.
首先,我确保 conda-build 是正确的版本,并在构建实际感兴趣的包之前重新构建 glib:
conda build version:
conda-build 3.18.5
---> e0cee3638360
Step 11/12 : RUN conda install -c anaconda glib
---> Running in ba9e7daa8d74
GLib 的安装运行良好,但是下一个conda build 失败并出现同样的错误。这让我想知道它所指的glib(在requirements: build: 下的meta.yaml)是否不同于conda glib 包以及如何指定包源。
【问题讨论】:
-
使用
conda build --debug并检查输出以获取有关问题的更多信息。
标签: python conda packaging python-packaging conda-build