Tuesday, 15 September 2015

pip - Anaconda Python Conda pipbuild failed with WindowsError cannot find file -



pip - Anaconda Python Conda pipbuild failed with WindowsError cannot find file -

i switched anaconda python distribution , i'm trying hang of things. wanted install this yaml-related package , since there isn't conda recipe it, tried

conda pipbuild layered-yaml-attrdict-config

which resulted in next output (i removed non-relevant entries of scheme path):

c:\anaconda>conda install layered-yaml-attrdict-config fetching bundle metadata: .. error: no packages found matching: layered-yaml-attrdict-config c:\anaconda>conda pipbuild layered-yaml-attrdict-config fetching bundle metadata: .. creating standard recipe layered-yaml-attrdict-config-14.06.7 using url https://pypi.python.org/packages/source/l/layered-yaml-attrdict-config /layered-yaml-attrdict-config-14.06.7.tar.gz (6147) layered-yaml-attrdict-co nfig. downloading layered-yaml-attrdict-config (use --no-download skip step) unpacking layered-yaml-attrdict-config... done working in c:\users\bnables\appdata\local\temp\1\tmp07kkdbconda_skeleton_layered -yaml-attrdict-config fetching bundle metadata: ... solving bundle specifications: . next packages downloaded: bundle | build ---------------------------|----------------- python-2.7.7 | 2 17.1 mb next packages linked: bundle | build ---------------------------|----------------- python-2.7.7 | 2 hard-link pyyaml-3.11 | py27_0 hard-link setuptools-3.6 | py27_0 hard-link fetching packages ... python-2.7.7-2 100% |###############################| time: 0:00:08 2.00 mb/s extracting packages ... [ finish ] |#################################################| 100% linking packages ... [ finish ] |#################################################| 100% applying patch: u'c:\\users\\bnables\\appdata\\local\\temp\\1\\tmp07kkdbconda_sk eleton_layered-yaml-attrdict-config\\pypi-distutils.patch' error: did not find 'patch' in: c:\anaconda\envs\_build\scripts;c:\anaconda\scripts ;c:\anaconda;c:\anaconda\scripts can install 'patch' using apt-get, yum (linux), xcode (macosx), or conda, cygwin (windows), conda create -n _pipbuild_ --yes python pip fetching bundle metadata: .. solving bundle specifications: . bundle plan installation in environment c:\anaconda\envs\_pipbuild_: next packages linked: bundle | build ---------------------------|----------------- pip-1.5.6 | py27_0 hard-link python-2.7.7 | 2 hard-link setuptools-3.6 | py27_0 hard-link warning: process c:\anaconda\python.exe c:\anaconda\scripts\conda-script.py pipbuild layered-yaml-attrdict-config (7712) running warning: process c:\anaconda\scripts\conda-pipbuild.exe layered-yaml-attrdic t-config (4596) running warning: process c:\anaconda\python.exe c:\anaconda\scripts\conda-pipbuild-s cript.py layered-yaml-attrdict-config (7208) running warning: continuing installation while above processes running not recommended. please, close anaconda programs before installing or updating things conda. extracting packages ... [ finish ] |#################################################| 100% linking packages ... [ finish ] |#################################################| 100% # # activate environment, use: # > activate _pipbuild_ # c:\anaconda\envs\_pipbuild_/bin/pip install layered-yaml-attrdict-config==14.06. 7 traceback (most recent phone call last): file "c:\anaconda\scripts\conda-pipbuild-script.py", line 4, in <module> sys.exit(main()) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 76, in main args.func(args, p) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 347, n execute build_package(package, version) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 300, n build_package directory, dependencies = make_recipe(package, version) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 244, n make_recipe depends = get_all_dependencies(package, version) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 214, n get_all_dependencies ret = subprocess.popen(cmd2.split()).wait() file "c:\anaconda\lib\subprocess.py", line 710, in __init__ errread, errwrite) file "c:\anaconda\lib\subprocess.py", line 958, in _execute_child startupinfo) windowserror: [error 2] scheme cannot find file specified c:\anaconda>

i'm not sure happened since don't know file looking , don't yet know conda recipes except they're supposed awesome , not give these kinda of errors.

i hoping install through conda managed conda instead of stuff beingness managed pip.

digging main_pipbuild.py source looks it's trying run c:\anaconda\envs\_pipbuild_\bin\pip install package==version (with appropriate bundle , version). when @ c:\anaconda\envs_pipbuild_ there no bin folder, i'm guessing pip didn't installed pipbuild environment correctly. previous warnings not having "patch" may problem...

after installing patch conda install patch tried 1 time again next results:

c:\anaconda>conda pipbuild layered-yaml-attrdict-config fetching bundle metadata: .. creating standard recipe layered-yaml-attrdict-config-14.06.7 using url https://pypi.python.org/packages/source/l/layered-yaml-attrdict-config/layered-yaml-attrdict-config-14.06.7.ta r.gz (6147) layered-yaml-attrdict-config. downloading layered-yaml-attrdict-config (use --no-download skip step) unpacking layered-yaml-attrdict-config... done working in c:\users\bnables\appdata\local\temp\1\tmp7cuibgconda_skeleton_layered-yaml-attrdict-config fetching bundle metadata: ... solving bundle specifications: .69 unparsed bytes left @ end of stream file 1/1: core.py hunk no.1 doesn't match source file @ line 165 expected: actual : raise systemexit, "error: " + str(msg) source file different - core.py applying patch: u'c:\\users\\bnables\\appdata\\local\\temp\\1\\tmp7cuibgconda_skeleton_layered-yaml-attrdict-config\\pyp i-distutils.patch' traceback (most recent phone call last): file "c:\anaconda\scripts\conda-skeleton-script.py", line 4, in <module> sys.exit(main()) file "c:\anaconda\lib\site-packages\conda_build\main_skeleton.py", line 124, in main args.func(args, p) file "c:\anaconda\lib\site-packages\conda_build\main_skeleton.py", line 135, in execute pypi.main(args, parser) file "c:\anaconda\lib\site-packages\conda_build\pypi.py", line 314, in main run_setuppy(src_dir, tempdir, args) file "c:\anaconda\lib\site-packages\conda_build\pypi.py", line 485, in run_setuppy apply_patch(join(stdlib_dir, 'distutils'), patch) file "c:\anaconda\lib\site-packages\conda_build\source.py", line 202, in apply_patch check_call([patch, '-p0', '-i', path], cwd=src_dir) file "c:\anaconda\lib\subprocess.py", line 540, in check_call raise calledprocesserror(retcode, cmd) subprocess.calledprocesserror: command '[u'c:\\anaconda\\scripts\\patch.bat', u'-p0', u'-i', u'c:\\users\\bnables\\appda ta\\local\\temp\\1\\tmp7cuibgconda_skeleton_layered-yaml-attrdict-config\\pypi-distutils.patch']' returned non-zero exit status -1 conda create -n _pipbuild_ --yes python pip error: prefix exists: c:\anaconda\envs\_pipbuild_ c:\anaconda\envs\_pipbuild_/bin/pip install layered-yaml-attrdict-config==14.06.7 traceback (most recent phone call last): file "c:\anaconda\scripts\conda-pipbuild-script.py", line 4, in <module> sys.exit(main()) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 76, in main args.func(args, p) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 347, in execute build_package(package, version) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 300, in build_package directory, dependencies = make_recipe(package, version) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 244, in make_recipe depends = get_all_dependencies(package, version) file "c:\anaconda\lib\site-packages\conda_build\main_pipbuild.py", line 214, in get_all_dependencies ret = subprocess.popen(cmd2.split()).wait() file "c:\anaconda\lib\subprocess.py", line 710, in __init__ errread, errwrite) file "c:\anaconda\lib\subprocess.py", line 958, in _execute_child startupinfo) windowserror: [error 2] scheme cannot find file specified

so finds kind of problem bundle perhaps @ solving bundle specifications: .69 unparsed bytes left @ end of stream. patch thing apparently fails. tries pip install , 1 time again can't find bin/pip directory in pipbuild environment.

should looking pip @ c:\anaconda\envs\_pipbuild_\scripts\pip.exe? because exist.

if bug, here's study it: https://github.com/conda/conda-build/issues. i'll wait feedback before doing more.

any help great!

there prepare same issue on python 3 @ https://groups.google.com/a/continuum.io/d/msg/anaconda/6_reeaijx5c/fhrjba4adqkj. involves editing distutils\cygwinccompiler.py file in python standard library.

i think can same thing in python 2, though may require translation, python 2 version of cygwinccompiler uses os.popen instead of subprocess.check_output. assumedly can utilize subprocess.check_output(['gcc', '-dumpmachine'], shell=true) in relevant place in file , prepare issue.

python pip anaconda conda

No comments:

Post a Comment