conda-forge / ffmpeg-feedstock

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

Install previous version and build channel #254

Open Avencheng opened 3 months ago

Avencheng commented 3 months ago

Comment:

I'm trying to install ffmpeg 6.1.1 with specific build channel, what should I do ? I have download the linux-64_ffmpeg-6.1.1-gpl_h5f74e41_109.conda under my path. I done the below command, but it's failed.

imagecuetone@imagecuetone-Virtual-Machine:~/下載$ conda install linux-64_ffmpeg-6.1.1-gpl_h5f74e41_109.conda

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

    Traceback (most recent call last):
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 364, in _make_single_record
        repodata_record = read_repodata_json(extracted_package_dir)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/gateways/disk/read.py", line 145, in read_repodata_json
        with open(join(extracted_package_directory, "info", "repodata_record.json")) as fi:
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/common/compat.py", line 72, in open
        return builtins.open(
               ^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: '/home/imagecuetone/anaconda3/pkgs/linux-64_ffmpeg-6.1.1-gpl_h5f74e41_109/info/repodata_record.json'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 384, in _make_single_record
        raw_json_record = read_index_json(extracted_package_dir)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/gateways/disk/read.py", line 130, in read_index_json
        with open(join(extracted_package_directory, "info", "index.json")) as fi:
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/common/compat.py", line 72, in open
        return builtins.open(
               ^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: '/home/imagecuetone/anaconda3/pkgs/linux-64_ffmpeg-6.1.1-gpl_h5f74e41_109/info/index.json'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/exception_handler.py", line 17, in __call__
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/cli/main.py", line 83, in main_subshell
        exit_code = do_call(args, parser)
                    ^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/cli/conda_argparse.py", line 196, in do_call
        result = getattr(module, func_name)(args, parser)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/notices/core.py", line 124, in wrapper
        return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/cli/main_install.py", line 140, in execute
        return install(args, parser, "install")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/cli/install.py", line 247, in install
        explicit(args_packages, prefix, verbose=not context.quiet)
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/misc.py", line 90, in explicit
        pfe.execute()
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 767, in execute
        self.prepare()
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/common/io.py", line 85, in decorated
        return f(*args, **kwds)
               ^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 746, in prepare
        self.paired_actions.update(
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 747, in <genexpr>
        (prec, self.make_actions_for_record(prec)) for prec in largest_first
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 591, in make_actions_for_record
        extracted_pcrec = next(
                          ^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 592, in <genexpr>
        (
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 595, in <genexpr>
        PackageCacheData(pkgs_dir).query(pref_or_spec)
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 155, in query
        for pcrec in self._package_cache_records.values()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 302, in _package_cache_records
        self.load()
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 123, in load
        package_cache_record = self._make_single_record(base_name)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/core/package_cache_data.py", line 411, in _make_single_record
        extract_tarball(
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda/gateways/disk/create.py", line 232, in extract_tarball
        conda_package_handling.api.extract(
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda_package_handling/api.py", line 77, in extract
        format.extract(fn, dest_dir, components=components)
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda_package_handling/conda_fmt.py", line 46, in extract
        _extract(str(fn), str(dest_dir), components=components)
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda_package_handling/streaming.py", line 35, in _extract
        stream = package_streaming.stream_conda_component(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/imagecuetone/anaconda3/lib/python3.11/site-packages/conda_package_streaming/package_streaming.py", line 133, in stream_conda_component
        raise LookupError(f"didn't find {component_name} component in {filename}")
    LookupError: didn't find info-linux-64_ffmpeg-6.1.1-gpl_h5f74e41_109 component in /home/imagecuetone/anaconda3/pkgs/linux-64_ffmpeg-6.1.1-gpl_h5f74e41_109.conda

`$ /home/imagecuetone/anaconda3/bin/conda install linux-64_ffmpeg-6.1.1-gpl_h5f74e41_109.conda`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=ffmpeg611_109_kabuki49
                CONDA_EXE=/home/imagecuetone/anaconda3/bin/conda
             CONDA_PREFIX=/home/imagecuetone/anaconda3/envs/ffmpeg611_109_kabuki49
    CONDA_PROMPT_MODIFIER=(ffmpeg611_109_kabuki49)
         CONDA_PYTHON_EXE=/home/imagecuetone/anaconda3/bin/python
               CONDA_ROOT=/home/imagecuetone/anaconda3
              CONDA_SHLVL=1
           CURL_CA_BUNDLE=<not set>
               LD_PRELOAD=<not set>
                     PATH=/home/imagecuetone/anaconda3/envs/ffmpeg611_109_kabuki49/bin:/home/ima
                          gecuetone/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:
                          /usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>
         XRDP_SOCKET_PATH=/run/xrdp/sockdir

     active environment : ffmpeg611_109_kabuki49
    active env location : /home/imagecuetone/anaconda3/envs/ffmpeg611_109_kabuki49
            shell level : 1
       user config file : /home/imagecuetone/.condarc
 populated config files : /home/imagecuetone/.condarc
          conda version : 24.1.2
    conda-build version : 24.1.2
         python version : 3.11.7.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=skylake
                          __conda=24.1.2=0
                          __glibc=2.35=0
                          __linux=6.5.0=0
                          __unix=0=0
       base environment : /home/imagecuetone/anaconda3  (writable)
      conda av data dir : /home/imagecuetone/anaconda3/etc/conda
  conda av metadata url : None
           channel URLs : 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/imagecuetone/anaconda3/pkgs
                          /home/imagecuetone/.conda/pkgs
       envs directories : /home/imagecuetone/anaconda3/envs
                          /home/imagecuetone/.conda/envs
               platform : linux-64
             user-agent : conda/24.1.2 requests/2.31.0 CPython/3.11.7 Linux/6.5.0-1019-azure ubuntu/22.04.4 glibc/2.35 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6 aau/0.4.3 c/ZIQDhhvx7X1YhXNUPezs0g s/r1X71TFscXbATJy0oyqlaQ e/NQH0CuvJ3-yMhf3Pzsas1w
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.
If you suspect this error is being caused by a malfunctioning plugin,
consider using the --no-plugins option to turn off plugins.

Example: conda --no-plugins install <package>

Alternatively, you can set the CONDA_NO_PLUGINS environment variable on
the command line to run the command without plugins enabled.

Example: CONDA_NO_PLUGINS=true conda install <package>

If submitted, this report will be used by core maintainers to improve
future releases of conda.
h-vetinari commented 3 months ago

You cannot install a package like this:

conda install linux-64_ffmpeg-6.1.1-gpl_h5f74e41_109.conda  ❌

If you want that exact build, you can do:

conda install ffmpeg=6.1.1=gpl_h5f74e41_109  ✅

(assuming you are on the right platform for the artefact with that exact hash).

Avencheng commented 3 months ago

Hey! Thank you very much for your reply. It's worked !!