我正在努力使用osrm github repository在Python 2.7(Windows 64)上为我的conda环境构建一个conda配方。
我的bld.bat文件是:
python setup.py install
if errorlevel 1 exit 1
meta.yaml
package:
name: osrm
version: 0.11.1
source:
git_url: git@github.com/ustroetz/python-osrm.git
git_rev: 0.11.1
requirements:
build:
- python
- setuptools
run:
- python
test:
imports:
- osrm
about:
home: https://github.com/ustroetz/python-osrm
license: MIT
license_file: LICENSE
当我运行conda build osrm/
时,我得到以下输出:
PS C:\Users\Samuel\Desktop> conda build osrm/
BUILD START: osrm-0.11.1-py36_0
updating index in: C:\Users\Samuel\Anaconda3\conda-bld\win-64
updating index in: C:\Users\Samuel\Anaconda3\conda-bld\noarch
The following NEW packages will be INSTALLED:
certifi: 2017.1.23-py36_0 conda-forge
pip: 9.0.1-py36_0 conda-forge
python: 3.6.0-2 conda-forge
setuptools: 33.1.1-py36_0 conda-forge
vs2015_runtime: 14.0.25420-0 conda-forge
wheel: 0.29.0-py36_0 conda-forge
wincertstore: 0.2-py36_0 conda-forge
Cloning into 'C:\Users\Samuel\Anaconda3\conda-bld\osrm_149017
done.
checkout: '0.11.1'
error: pathspec '0.11.1' did not match any file(s) known to g
Warning: failed to download source. If building, will try ag
Error was:
Command '['C:\\Program Files\\Git\\cmd\\git.exe', 'checkout',
Traceback (most recent call last):
File "C:\Users\Samuel\Anaconda3\Scripts\conda-build-script.
sys.exit(conda_build.cli.main_build.main())
File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
execute(sys.argv[1:])
File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
noverify=args.no_verify)
File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
need_source_download=need_source_download, config=config)
File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
config=config)
File "C:\Users\Samuel\Anaconda3\lib\site-packages\conda_bui
assert not need_source_download, "Source download failed.
AssertionError: Source download failed. Please investigate.
我真的在努力解决这个问题,为什么我会收到这个错误?
答案 0 :(得分:0)
错误消息是因为0.11.1
不是该存储库中的Git标记,因此git在结帐阶段失败。请参阅:https://github.com/ustroetz/python-osrm/tags