Conda构建为不相关的软件包提供了DependencyNeedsBuildingError

时间:2019-07-17 07:52:45

标签: conda conda-build

我为此准备了raised a ticket,但我想我也想问问是否有人看过类似的东西。

Tl; dr:构建似乎正常,然后最后我得到此错误:

Copying c:\work\Tools\farmlib to C:\bin\Anaconda3\conda-bld\farmlib_1563266968782\work
Collecting package metadata: ...working... done
Solving environment: ...working... failed

Leaving build/test directories:
  Work:
 C:\bin\Anaconda3\conda-bld\work
  Test:
 C:\bin\Anaconda3\conda-bld\test_tmp
Leaving build/test environments:
  Test:
source activate  C:\bin\Anaconda3\conda-bld\_test_env
  Build:
source activate  C:\bin\Anaconda3\conda-bld\_build_env


Traceback (most recent call last):
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\environ.py", line 753, in get_install_actions
    actions = install_actions(prefix, index, specs, force=True)
  File "C:\bin\Anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
    return f(*args, **kwds)
  File "C:\bin\Anaconda3\lib\site-packages\conda\plan.py", line 473, in install_actions
    txn = solver.solve_for_transaction(prune=prune, ignore_pinned=not pinned)
  File "C:\bin\Anaconda3\lib\site-packages\conda\core\solve.py", line 107, in solve_for_transaction
    force_remove, force_reinstall)
  File "C:\bin\Anaconda3\lib\site-packages\conda\core\solve.py", line 145, in solve_for_diff
    force_remove)
  File "C:\bin\Anaconda3\lib\site-packages\conda\core\solve.py", line 242, in solve_final_state
    ssc = self._run_sat(ssc)
  File "C:\bin\Anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
    return f(*args, **kwds)
  File "C:\bin\Anaconda3\lib\site-packages\conda\core\solve.py", line 475, in _run_sat
    conflicting_specs = ssc.r.get_conflicting_specs(tuple(final_environment_specs))
  File "C:\bin\Anaconda3\lib\site-packages\conda\resolve.py", line 852, in get_conflicting_specs
    reduced_index = self.get_reduced_index(specs)
  File "C:\bin\Anaconda3\lib\site-packages\conda\common\io.py", line 88, in decorated
    return f(*args, **kwds)
  File "C:\bin\Anaconda3\lib\site-packages\conda\resolve.py", line 356, in get_reduced_index
    specs, features = self.verify_specs(specs)
  File "C:\bin\Anaconda3\lib\site-packages\conda\resolve.py", line 244, in verify_specs
    raise ResolvePackageNotFound(bad_deps)
conda.exceptions.ResolvePackageNotFound:
  - poppler[version='<=0.62']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\bin\Anaconda3\Scripts\conda-build-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\cli\main_build.py", line 456, in main
    execute(sys.argv[1:])
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\cli\main_build.py", line 447, in execute
    verify=args.verify, variants=args.variants)
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\api.py", line 208, in build
    notest=notest, need_source_download=need_source_download, variants=variants)
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\build.py", line 2314, in build_tree
    notest=notest,
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\build.py", line 1324, in build
    output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)])
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\render.py", line 735, in expand_outputs
    for (output_dict, m) in _m.copy().get_output_metadata_set(permit_unsatisfiable_variants=False):
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\metadata.py", line 2038, in get_output_metadata_set
    bypass_env_check=bypass_env_check)
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\metadata.py", line 721, in finalize_outputs_pass
    permit_unsatisfiable_variants=permit_unsatisfiable_variants)
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\render.py", line 509, in finalize_metadata
    exclude_pattern)
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\render.py", line 371, in add_upstream_pins
    permit_unsatisfiable_variants, exclude_pattern)
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\render.py", line 359, in _read_upstream_pin_files
    permit_unsatisfiable_variants=permit_unsatisfiable_variants)
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\render.py", line 143, in get_env_dependencies
    channel_urls=tuple(m.config.channel_urls))
  File "C:\bin\Anaconda3\lib\site-packages\conda_build\environ.py", line 755, in get_install_actions
    raise DependencyNeedsBuildingError(exc, subdir=subdir)
conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform win-64: {"poppler[version='<=0.62']"}

我不知道为什么conda认为我需要poppler(不在我的菜谱中,也不在那些软件包的依赖项中)或为什么它需要该版本。 win-64可用的最低版本是0.77。

我认为我可以忽略此错误,因为该软件包可以正常安装并运行,但是我想确定之前该构建可以顺利进行。

0 个答案:

没有答案