環境
- conda 4.6.14
- python 3.6.6
- Xubuntu 18.04
やりたいこと
PyPIに登録した自作パッケージをcondaパッケージに変換して、condaに登録したいです。
実施したこと
以下のサイトを参考にして、condaパッケージの作成を試みました。
https://qiita.com/iisaka51/items/5828a50744be209705d0
meta.yamlの作成
$ conda skeleton
コマンドを実行して、meta.yaml
を生成しました。
meta.yaml
の中身(一部)は以下の通りです。
requirements:
host:
- backoff
- pip
- python
- python-dateutil
- requests
run:
- backoff
- python
- python-dateutil
- requests
conda build
の実行
$ conda build
を実行したら、以下のエラーが発生しました。
Leaving build/test directories:
Work:
/home/vagrant/miniconda3/conda-bld/work
Test:
/home/vagrant/miniconda3/conda-bld/test_tmp
Leaving build/test environments:
Test:
source activate /home/vagrant/miniconda3/conda-bld/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_
Build:
source activate /home/vagrant/miniconda3/conda-bld/_build_env
Traceback (most recent call last):
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/environ.py", line 753, in get_install_actions
actions = install_actions(prefix, index, specs, force=True)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
return f(*args, **kwds)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/plan.py", line 473, in install_actions
txn = solver.solve_for_transaction(prune=prune, ignore_pinned=not pinned)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 107, in solve_for_transaction
force_remove, force_reinstall)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 145, in solve_for_diff
force_remove)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 242, in solve_final_state
ssc = self._run_sat(ssc)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
return f(*args, **kwds)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/core/solve.py", line 475, in _run_sat
conflicting_specs = ssc.r.get_conflicting_specs(tuple(final_environment_specs))
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/resolve.py", line 852, in get_conflicting_specs
reduced_index = self.get_reduced_index(specs)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
return f(*args, **kwds)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/resolve.py", line 356, in get_reduced_index
specs, features = self.verify_specs(specs)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda/resolve.py", line 244, in verify_specs
raise ResolvePackageNotFound(bad_deps)
conda.exceptions.ResolvePackageNotFound:
- backoff
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "miniconda3/bin/conda-build", line 11, in <module>
sys.exit(main())
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 456, in main
execute(sys.argv[1:])
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 447, in execute
verify=args.verify, variants=args.variants)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/api.py", line 208, in build
notest=notest, need_source_download=need_source_download, variants=variants)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/build.py", line 2314, in build_tree
notest=notest,
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/build.py", line 1324, in build
output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)])
File "/home/vagrant/miniconda3/lib/python3.7/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 "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/metadata.py", line 2038, in get_output_metadata_set
bypass_env_check=bypass_env_check)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/metadata.py", line 721, in finalize_outputs_pass
permit_unsatisfiable_variants=permit_unsatisfiable_variants)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/render.py", line 509, in finalize_metadata
exclude_pattern)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/render.py", line 393, in add_upstream_pins
permit_unsatisfiable_variants, exclude_pattern)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/render.py", line 359, in _read_upstream_pin_files
permit_unsatisfiable_variants=permit_unsatisfiable_variants)
File "/home/vagrant/miniconda3/lib/python3.7/site-packages/conda_build/render.py", line 143, in get_env_dependencies
channel_urls=tuple(m.config.channel_urls))
File "/home/vagrant/miniconda3/lib/python3.7/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 linux-64: {'backoff'}
エラー内容
linux-64環境で、backoff
モジュールの依存関係が正しくないそうです。
conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {'backoff'}
質問
backoff
モジュールはcondaに登録されていましたが、PyPIでのバージョンが1.8.0なのに対して、linux-x64
のバージョンは1.6.0でした。
https://anaconda.org/conda-forge/backoff
上記のエラーを解決するには、どのように対応すればよいでしょうか?