所以我有针对Python 3.7构建的我自己的程序包。我已经在下面附加了meta.yaml文件。看起来似乎认为需要构建Python 3.6。所有依赖项都存在。我可以和他们一起创造一个新的环境。我不确定要检查什么。
conda build命令的输出如下:
{applesCount, plural,
zero {{pearsCount, plural,
zero {{orangesCount, plural,
zero {I have no fruit}
other {I have some oranges}
}}
other {{orangesCount, plural,
zero {I have some pears}
other {I have some pears and some oranges}
}}
}}
other {{pearsCount, plural,
zero {{orangesCount, plural,
zero {I have some apples}
other {I have some apples and some oranges}
}}
other {{orangesCount, plural,
zero {I have some apples and some pears}
other {I have some apples, some pears, and some oranges}
}}
}}
}
下面是meta.yaml文件。如果我将python 3.6更改为python 3.7,它的构建就可以了。
No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
Cloning into '/Users/paul/opt/miniconda3/envs/cdpm/conda-bld/arma_wrapper_1578771617051/work'...
done.
checkout: 'HEAD'
Your branch is up to date with 'origin/_conda_cache_origin_head'.
==> git log -n1 <==
commit f777fa1f8301b5f8f828cd6d7bd480b0822fe28f
Author: sangrey <paul.sangrey@gmail.com>
Date: Sat Jan 11 11:33:44 2020 -0800
Why don't we use python 3.6|
==> git describe --tags --dirty <==
0.12.01-20-gf777fa1
==> git status <==
On branch _conda_cache_origin_head
Your branch is up to date with 'origin/_conda_cache_origin_head'.
nothing to commit, working tree clean
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Attempting to finalize metadata for arma_wrapper
INFO:conda_build.metadata:Attempting to finalize metadata for arma_wrapper
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed
Leaving build/test directories:
Work:
/Users/paul/opt/miniconda3/envs/cdpm/conda-bld/work
Test:
/Users/paul/opt/miniconda3/envs/cdpm/conda-bld/test_tmp
Leaving build/test environments:
Test:
source activate /Users/paul/opt/miniconda3/envs/cdpm/conda-bld/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh
Build:
source activate /Users/paul/opt/miniconda3/envs/cdpm/conda-bld/_build_env
Traceback (most recent call last):
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/environ.py", line 757, in get_install_actions
actions = install_actions(prefix, index, specs, force=True)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
return f(*args, **kwds)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/plan.py", line 474, in install_actions
txn = solver.solve_for_transaction(prune=prune, ignore_pinned=not pinned)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
should_retry_solve)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/core/solve.py", line 158, in solve_for_diff
force_remove, should_retry_solve)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/core/solve.py", line 275, in solve_final_state
ssc = self._add_specs(ssc)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/core/solve.py", line 555, in _add_specs
explicit_pool = ssc.r._get_package_pool(self.specs_to_add)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/resolve.py", line 523, in _get_package_pool
pool = self.get_reduced_index(specs)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
return f(*args, **kwds)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/resolve.py", line 544, in get_reduced_index
explicit_specs, features = self.verify_specs(explicit_specs)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda/resolve.py", line 280, in verify_specs
raise ResolvePackageNotFound(bad_deps)
conda.exceptions.ResolvePackageNotFound:
- python[version='3.6.*,3.7.1.*']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/paul/opt/miniconda3/envs/cdpm/bin/conda-build", line 11, in <module>
sys.exit(main())
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 469, in main
execute(sys.argv[1:])
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 460, in execute
verify=args.verify, variants=args.variants)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/api.py", line 209, in build
notest=notest, need_source_download=need_source_download, variants=variants)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/build.py", line 2344, in build_tree
notest=notest,
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/build.py", line 1335, in build
output_metas = expand_outputs([(m, need_source_download, need_reparse_in_env)])
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/render.py", line 746, in expand_outputs
for (output_dict, m) in _m.copy().get_output_metadata_set(permit_unsatisfiable_variants=False):
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/metadata.py", line 2048, in get_output_metadata_set
bypass_env_check=bypass_env_check)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/metadata.py", line 716, in finalize_outputs_pass
output_d = om.get_rendered_output(metadata.name()) or {'name': metadata.name()}
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/metadata.py", line 2106, in get_rendered_output
permit_undefined_jinja=permit_undefined_jinja, variant=variant):
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/metadata.py", line 2095, in get_rendered_outputs_section
variant=variant)) or
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/metadata.py", line 1528, in _get_contents
rendered = template.render(environment=env)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/Users/paul/Repositories/Arma_Wrapper/info/meta.yaml", line 25, in top-level template code
- pybind11 2.2
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/jinja_context.py", line 230, in pin_compatible
pins, _, _ = get_env_dependencies(m, 'host', m.config.variant)
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/render.py", line 154, in get_env_dependencies
channel_urls=tuple(m.config.channel_urls))
File "/Users/paul/opt/miniconda3/envs/cdpm/lib/python3.7/site-packages/conda_build/environ.py", line 759, in get_install_actions
raise DependencyNeedsBuildingError(exc, subdir=subdir)
conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform osx-64: {"python[version='3.6.*,3.7.1.*']"}