conda-forge / ffmpeg-feedstock

A conda-smithy repository for ffmpeg.
BSD 3-Clause "New" or "Revised" License
14 stars 44 forks source link

Building a receipe #273

Open veera-puthiran-14082 opened 1 month ago

veera-puthiran-14082 commented 1 month ago

Comment:

I'm trying to build the conda receipe using the command conda build . with the main branch. Getting error as

WARNING: No numpy version specified in conda_build_config.yaml.  Falling back to default numpy value of 1.22
Adding in variants from internal_defaults
Adding in variants from /data/veera/zspeech/temp/ffmpeg-feedstock/recipe/conda_build_config.yaml

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda/exception_handler.py", line 17, in __call__
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda/cli/main.py", line 64, in main_subshell
        exit_code = do_call(args, parser)
                    ^^^^^^^^^^^^^^^^^^^^^
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda/cli/conda_argparse.py", line 143, in do_call
        result = plugin_subcommand.action(getattr(args, "_args", args))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda_build/plugin.py", line 10, in build
        execute(*args, **kwargs)
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda_build/cli/main_build.py", line 568, in execute
        outputs = api.build(
                  ^^^^^^^^^^
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda_build/api.py", line 253, in build
        return build_tree(
               ^^^^^^^^^^^
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda_build/build.py", line 3804, in build_tree
        packages_from_this = build(
                             ^^^^^^
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda_build/build.py", line 2474, in build
        output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)])
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda_build/render.py", line 923, in expand_outputs
        for output_dict, m in deepcopy(_m).get_output_metadata_set(
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda_build/metadata.py", line 2496, in get_output_metadata_set
        insert_variant_versions(requirements, variant, env)
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda_build/utils.py", line 1993, in insert_variant_versions
        matches = [regex.match(pkg) for pkg in reqs]
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/veera/anaconda3/lib/python3.11/site-packages/conda_build/utils.py", line 1993, in <listcomp>
        matches = [regex.match(pkg) for pkg in reqs]
                   ^^^^^^^^^^^^^^^^
    TypeError: expected string or bytes-like object, got 'NoneType'

`$ /home/veera/anaconda3/bin/conda build .`

  environment variables:
                 CIO_TEST=<not set>
    CONDA_ALLOW_SOFTLINKS=false
        CONDA_DEFAULT_ENV=ffm
                CONDA_EXE=/home/veera/anaconda3/bin/conda
             CONDA_PREFIX=/home/veera/anaconda3/envs/ffm
           CONDA_PREFIX_1=/home/veera/anaconda3
           CONDA_PREFIX_2=/home/veera/anaconda3/envs/zspeech
           CONDA_PREFIX_3=/home/veera/anaconda3
           CONDA_PREFIX_4=/home/veera/anaconda3/envs/zspeech
           CONDA_PREFIX_5=/home/veera/anaconda3
    CONDA_PROMPT_MODIFIER=(ffm)
         CONDA_PYTHON_EXE=/home/veera/anaconda3/bin/python
               CONDA_ROOT=/home/veera/anaconda3
              CONDA_SHLVL=5
           CURL_CA_BUNDLE=<not set>
               LD_PRELOAD=<not set>
                     PATH=/home/veera/anaconda3/envs/ffm/bin:/home/veera/.vscode-
                          server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/bin/remote-cli:/ho
                          me/veera/.poetry/bin:/home/veera/anaconda3/bin:/home/veera/anaconda3/b
                          in:/home/veera/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/
                          sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/v
                          eera/.poetry/bin:/home/veera/.poetry/bin
         PYTHONIOENCODING=utf-8
               PYTHONPATH=
         PYTHONUNBUFFERED=1
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : ffm
    active env location : /home/veera/anaconda3/envs/ffm
            shell level : 5
       user config file : /home/veera/.condarc
 populated config files : /home/veera/.condarc
          conda version : 23.7.4
    conda-build version : 3.26.1
         python version : 3.11.5.final.0
       virtual packages : __archspec=1=x86_64
                          __cuda=12.2=0
                          __glibc=2.31=0
                          __linux=5.15.0=0
                          __unix=0=0
       base environment : /home/veera/anaconda3  (writable)
      conda av data dir : /home/veera/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/auto/linux-64
                          https://conda.anaconda.org/auto/noarch
                          https://conda.anaconda.org/hcc/linux-64
                          https://conda.anaconda.org/hcc/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/veera/anaconda3/pkgs
                          /home/veera/.conda/pkgs
       envs directories : /home/veera/anaconda3/envs
                          /home/veera/.conda/envs
               platform : linux-64
             user-agent : conda/23.7.4 requests/2.31.0 CPython/3.11.5 Linux/5.15.0-119-generic ubuntu/20.04.5 glibc/2.31 solver/libmamba conda-libmamba-solver/23.7.0 libmambapy/1.5.1
                UID:GID : 1003:1003
             netrc file : None
           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Sorry if this is a silly question

hmaarrfk commented 3 weeks ago

you should likely prefer to use

conda build -m .ci_support/BUILD_THAT_YOU_WANT recipe

or

# install docker and stuff
python build-locally.py

Also i see that you have the defaults in your list of dependencies, maybe give https://conda-forge.org/docs/user/transitioning_from_defaults/

a read