Ich habe Schwierigkeiten, ein Conda Rezept für meine Conda-Umgebung auf Python 2.7 (Windows 64) mit der osrm github repository zu bauen.Konda Rezept für Github Repo nicht erstellen
Meine bld.bat Datei ist:
python setup.py install
if errorlevel 1 exit 1
meta.yaml
package:
name: osrm
version: 0.11.1
source:
git_url: [email protected]/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
Als ich conda build osrm/
laufen bekomme ich folgende Ausgabe:
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.
ich wirklich kämpfen mit dieser, warum bekomme ich diesen Fehler?
Dies schlägt fehl, da '0.11.1' kein Git-Tag in diesem Repository ist (siehe https://github.com/ustroetz/python-osrm/tags). – darthbith
Hey @darthbith danke für deine Idee. Eigentlich war es das. Das Problem ist, wenn ich jetzt den Befehl ohne das Tag ausführen, erhalte ich eine andere Fehlermeldung (die zu lang ist, um es hier zu posten). Die letzten Zeilen sagen: Datei "C: \ Benutzer Samuel \ Anaconda3 \ \ lib \ subprocess.py", Linie 291, in check_call raise CalledProcessError (retcode, cmd) subprocess.CalledProcessError: Befehl '[' cmd.exe ','/c ',' bld.bat ']' hat den Nicht-Null-Exit-Status 1 zurückgegeben. – DaLeibniz
Es sieht also so aus, als ob die bld.bat-Datei nicht richtig konfiguriert ist. Ich habe den ganzen Prozess in den Conda Build-Dokumentationen, aber etwas ist immer noch falsch hier – DaLeibniz