找不到用于输出的文件或脚本

问题描述

我正在尝试使用 conda 构建 python 包,但不知道它是如何工作的。我试图从 github 源构建一个包,我的 Meta.yaml 看起来像这样

{% set version = "0.5.0" %}

package:
  name: bsdiff4
  version: {{ version }}

build:
  noarch: python
  number: 0

source:
  git_url: https://github.com/ilanschnell/bsdiff4.git
  git_rev: master

requirements:
  host: 
    - python >=3.8
    - conda >=4.10
    - conda-build
    - anaconda-client
  run:
    - python >=3.8
    - matplotlib >=3.3.2
    - numpy >=1.18 
    - pandas >=1.1.2 

about:
  license: GNU General Public License (GPL)
  summary: 'A package for testing the conda build mechanisms'

当我运行“conda-build bsdiff4 --croot conda-build”时,我收到警告“找不到输出文件或脚本”,我不明白为什么这种情况不断发生。我在 Meta.yaml 中遗漏了什么吗?我的 build.sh 是空的,我也不想使用 "script: "{{ PYTHON }} -m pip install 。 --no-deps --ignore-installed -vv "" 如果我​​不需要,因为那样我还需要一个 setup.py。

完整的堆栈跟踪

No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.16
WARNING:conda_build.Metadata:No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.16
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Attempting to finalize Metadata for bsdiff4
INFO:conda_build.Metadata:Attempting to finalize Metadata for bsdiff4
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done
BUILD START: ['bsdiff4-0.5.0-py_0.tar.bz2']
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: /home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold


The following NEW packages will be INSTALLED:

    _libgcc_mutex:          0.1-conda_forge           conda-forge
    _openmp_mutex:          4.5-1_gnu                 conda-forge
    anaconda-client:        1.7.2-py_0                conda-forge
    attrs:                  20.3.0-pyhd3deb0d_0       conda-forge
    beautifulsoup4:         4.9.3-pyhb0f4dca_0        conda-forge
    brotlipy:               0.7.0-py39h3811e60_1001   conda-forge
    bzip2:                  1.0.8-h7f98852_4          conda-forge
    ca-certificates:        2020.12.5-ha878542_0      conda-forge
    certifi:                2020.12.5-py39hf3d152e_1  conda-forge
    cffi:                   1.14.5-py39he32792d_0     conda-forge
    chardet:                4.0.0-py39hf3d152e_1      conda-forge
    clyent:                 1.2.2-py_1                conda-forge
    conda:                  4.10.0-py39hf3d152e_1     conda-forge
    conda-build:            3.21.4-py39hf3d152e_0     conda-forge
    conda-package-handling: 1.7.2-py39h38d8fee_0      conda-forge
    cryptography:           3.4.7-py39hbca0aa6_0      conda-forge
    filelock:               3.0.12-pyh9f0ad1d_0       conda-forge
    glob2:                  0.7-py_0                  conda-forge
    icu:                    68.1-h58526e2_0           conda-forge
    idna:                   2.10-pyh9f0ad1d_0         conda-forge
    importlib-Metadata:     3.10.0-py39hf3d152e_0     conda-forge
    ipython_genutils:       0.2.0-py_1                conda-forge
    jinja2:                 2.11.3-pyh44b312d_0       conda-forge
    jsonschema:             3.2.0-pyhd8ed1ab_3        conda-forge
    jupyter_core:           4.7.1-py39hf3d152e_0      conda-forge
    ld_impl_linux-64:       2.35.1-hea4e1c9_2         conda-forge
    libarchive:             3.5.1-h3f442fb_1          conda-forge
    libffi:                 3.3-h58526e2_2            conda-forge
    libgcc-ng:              9.3.0-h2828fa1_18         conda-forge
    libgomp:                9.3.0-h2828fa1_18         conda-forge
    libiconv:               1.16-h516909a_0           conda-forge
    liblief:                0.10.1-he1b5a44_2         conda-forge
    libstdcxx-ng:           9.3.0-h6de172a_18         conda-forge
    libxml2:                2.9.10-h72842e0_3         conda-forge
    lz4-c:                  1.9.3-h9c3ff4c_0          conda-forge
    lzo:                    2.10-h516909a_1000        conda-forge
    markupsafe:             1.1.1-py39h3811e60_3      conda-forge
    nbformat:               5.1.3-pyhd8ed1ab_0        conda-forge
    ncurses:                6.2-h58526e2_4            conda-forge
    openssl:                1.1.1k-h7f98852_0         conda-forge
    patchelf:               0.11-he1b5a44_0           conda-forge
    pip:                    21.0.1-pyhd8ed1ab_0       conda-forge
    pkginfo:                1.7.0-pyhd8ed1ab_0        conda-forge
    psutil:                 5.8.0-py39h3811e60_1      conda-forge
    py-lief:                0.10.1-py39hfbd4741_2     conda-forge
    pycosat:                0.6.3-py39h3811e60_1006   conda-forge
    pycparser:              2.20-pyh9f0ad1d_2         conda-forge
    pyopenssl:              20.0.1-pyhd8ed1ab_0       conda-forge
    pyrsistent:             0.17.3-py39h3811e60_2     conda-forge
    pysocks:                1.7.1-py39hf3d152e_3      conda-forge
    python:                 3.9.2-hffdb5ce_0_cpython  conda-forge
    python-dateutil:        2.8.1-py_0                conda-forge
    python-libarchive-c:    2.9-py39hf3d152e_2        conda-forge
    python_abi:             3.9-1_cp39                conda-forge
    pytz:                   2021.1-pyhd8ed1ab_0       conda-forge
    pyyaml:                 5.4.1-py39h3811e60_0      conda-forge
    readline:               8.0-he28a2e2_2            conda-forge
    requests:               2.25.1-pyhd3deb0d_0       conda-forge
    ripgrep:                12.1.1-h516909a_1         conda-forge
    ruamel_yaml:            0.15.80-py39h3811e60_1004 conda-forge
    setuptools:             49.6.0-py39hf3d152e_3     conda-forge
    six:                    1.15.0-pyh9f0ad1d_0       conda-forge
    soupsieve:              2.0.1-py_1                conda-forge
    sqlite:                 3.35.4-h74cdb3f_0         conda-forge
    tk:                     8.6.10-h21135ba_1         conda-forge
    tqdm:                   4.60.0-pyhd8ed1ab_0       conda-forge
    traitlets:              5.0.5-py_0                conda-forge
    tzdata:                 2021a-he74cb21_0          conda-forge
    urllib3:                1.26.4-pyhd8ed1ab_0       conda-forge
    wheel:                  0.36.2-pyhd3deb0d_0       conda-forge
    xz:                     5.2.5-h516909a_1          conda-forge
    yaml:                   0.2.5-h516909a_0          conda-forge
    zipp:                   3.4.1-pyhd8ed1ab_0        conda-forge
    zlib:                   1.2.11-h516909a_1010      conda-forge
    zstd:                   1.4.9-ha95c52a_0          conda-forge

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Collecting package Metadata (repodata.json): ...working... done
Solving environment: ...working... done
cloning into bare repository '/home/filip/Dokumente/Programming/build_python_package/conda-build/git_cache/github.com/ilanschnell/bsdiff4.git'...
remote: Enumerating objects: 64,done.
remote: Counting objects: 100% (64/64),done.
remote: Compressing objects: 100% (50/50),done.
remote: Total 666 (delta 32),reused 36 (delta 13),pack-reused 602
Receiving objects: 100% (666/666),94.53 KiB | 2.70 MiB/s,done.
Resolving deltas: 100% (390/390),done.
cloning into '/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work'...
done.
checkout: 'master'
Already on 'master'
Your branch is up to date with 'origin/master'.
==> /usr/bin/git log -n1 <==

commit 43591a575241b86a7558f8ea1be94ffbab49b122
Author: Ilan Schnell <ilanschnell@gmail.com>
Date:   Wed Apr 7 13:36:07 2021 -0500

    udpate changelog - next release 1.2.1

==> /usr/bin/git describe --tags --dirty <==

1.2.0-5-g43591a5

==> /usr/bin/git status <==

On branch master
Your branch is up to date with 'origin/master'.

nothing to commit,working tree clean

source tree in: /home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work
export PREFIX=/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold
export BUILD_PREFIX=/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/_build_env
export SRC_DIR=/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work

Resource usage statistics from building bsdiff4:
   Process count: 1
   cpu time: Sys=0:00:00.0,User=-
   Memory: 3.3M
   disk usage: 376B
   Time elapsed: 0:00:02.1


Packaging bsdiff4
INFO:conda_build.build:Packaging bsdiff4
INFO conda_build.build:build(2274): Packaging bsdiff4
Packaging bsdiff4-0.5.0-py_0
INFO:conda_build.build:Packaging bsdiff4-0.5.0-py_0
INFO conda_build.build:bundle_conda(1514): Packaging bsdiff4-0.5.0-py_0
No files or script found for output bsdiff4
WARNING:conda_build.build:No files or script found for output bsdiff4
WARNING conda_build.build:bundle_conda(1613): No files or script found for output bsdiff4
number of files: 0
Fixing permissions
INFO :: Time taken to mark (prefix)
        0 replacements in 0 files was 0.00 seconds
TEST START: /home/filip/Dokumente/Programming/build_python_package/conda-build/noarch/bsdiff4-0.5.0-py_0.tar.bz2
Adding in variants from /tmp/tmpquxhnad8/info/recipe/conda_build_config.yaml
INFO:conda_build.variants:Adding in variants from /tmp/tmpquxhnad8/info/recipe/conda_build_config.yaml
INFO conda_build.variants:_combine_spec_dictionaries(234): Adding in variants from /tmp/tmpquxhnad8/info/recipe/conda_build_config.yaml
nothing to test for: /home/filip/Dokumente/Programming/build_python_package/conda-build/noarch/bsdiff4-0.5.0-py_0.tar.bz2
Renaming work directory '/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work' to '/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work_moved_bsdiff4-0.5.0-py_0_linux-64_main_build_loop'
INFO:conda_build.utils:Renaming work directory '/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work' to '/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work_moved_bsdiff4-0.5.0-py_0_linux-64_main_build_loop'
INFO conda_build.utils:shutil_move_more_retrying(2077): Renaming work directory '/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work' to '/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work_moved_bsdiff4-0.5.0-py_0_linux-64_main_build_loop'
shutil.move(work)=/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work,dest=/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work_moved_bsdiff4-0.5.0-py_0_linux-64_main_build_loop)
INFO:conda_build.utils:shutil.move(work)=/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work,dest=/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work_moved_bsdiff4-0.5.0-py_0_linux-64_main_build_loop)
INFO conda_build.utils:shutil_move_more_retrying(2084): shutil.move(work)=/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work,dest=/home/filip/Dokumente/Programming/build_python_package/conda-build/bsdiff4_1617833720752/work_moved_bsdiff4-0.5.0-py_0_linux-64_main_build_loop)
# Automatic uploading is disabled
# If you want to upload package(s) to anaconda.org later,type:


# To have conda build upload to anaconda.org automatically,use
# conda config --set anaconda_upload yes
anaconda upload \
    /home/filip/Dokumente/Programming/build_python_package/conda-build/noarch/bsdiff4-0.5.0-py_0.tar.bz2
anaconda_upload is not set.  Not uploading wheels: []

INFO :: The inputs making up the hashes for the built packages are as follows:
{
  "bsdiff4-0.5.0-py_0": {
    "recipe": {}
  }
}


####################################################################################
Resource usage summary:

Total time: 0:01:51.2
cpu usage: sys=0:00:00.0,user=0:00:00.0
Maximum memory usage observed: 3.3M
Total disk usage observed (not including envs): 376B

我查看了以下文档但找不到任何答案:

https://conda.io/projects/conda-build/en/latest/user-guide/tutorials/build-pkgs.html https://docs.conda.io/projects/conda-build/en/latest/user-guide/environment-variables.html https://docs.conda.io/projects/conda-build/en/latest/resources/build-scripts.html https://docs.conda.io/projects/conda-build/en/latest/resources/commands/conda-build.html https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...