cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8764
Views
29
Helpful
23
Replies

YDK-Py installation made super simple!

saalvare
Cisco Employee
Cisco Employee

Starting with release 0.5.4, YDK-PY is now part of the Python package index (PyPi). This means a dramatically simpler installation experience.  Instead of downloading/cloning the YDK-Py code, building source packages and installing them in a particular order, you can just use the pip utility to automate the installation.  Previously, a full installation of YDK-Py (YDK core package, plus XR/OpenConfig/IETF) could take 12 steps.  Now, you just need to issue:

$ pip install ydk-models-cisco-ios-xr

If you already have YDK-Py installed and want to upgrade:

$ pip install ydk-models-cisco-ios-xr --upgrade

That's it.  That simple!

The installation process takes care of pulling all Python dependencies and install them for you.  Take into account that Python packaging doesn't handle system dependencies.  That is, non-python libraries and packages required by YDK-Py or by Python packages that YDK-Py uses.  You still need to install those system dependencies the first time you use YDK-Py.  See our updated installation instructions in the YDK-Py documentation.

Let's get hacking!

23 Replies 23

sofitapaul
Level 1
Level 1

How much time it will take to update?

$ pip install ydk-models-cisco-ios-xr --upgrade

for me it is taking more than 45 mins

That is interesting. Are you using a virtualenv? Which OS?

Is it getting stuck for you? or you're able to verify progress and validate installation after 45min?  Please share as many details about your environment as possible.   The longest it's taken for me is about 2.5 minutes.   In that case, I had a VPN session over a slow overseas Internet connection.

Hi ,

i am getting error like below , even i set proxy ... any idea how to fix ?

i used this proxy :source /auto/pyats/bin/lab_proxy.sh

[exec] baalagar@nkaliape-lnx-v1%>pip install ydk-models-cisco-ios-xr

Requirement already satisfied: ydk-models-cisco-ios-xr in /auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages

Requirement already satisfied: ydk-models-ietf>=0.1.1 in /auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: enum34==1.1.3 in /auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: ydk>=0.5.2 in /auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: lxml==3.4.4 in /auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: ydk-models-openconfig>=0.1.2 in /auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: ncclient>=0.4.7 in /auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: ecdsa==0.13 in /auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages (from ydk-models-ietf>=0.1.1->ydk-models-cisco-ios-xr)

Collecting paramiko==1.15.2 (from ydk-models-ietf>=0.1.1->ydk-models-cisco-ios-xr)

  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa777ecd278>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/paramiko/

  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa777ecd588>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/paramiko/

  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa777f3d9e8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/paramiko/

  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa777f3d8d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/paramiko/

  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fa777f384e0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/paramiko/

  Could not find a version that satisfies the requirement paramiko==1.15.2 (from ydk-models-ietf>=0.1.1->ydk-models-cisco-ios-xr) (from versions: )

No matching distribution found for paramiko==1.15.2 (from ydk-models-ietf>=0.1.1->ydk-models-cisco-ios-xr)

[exec] baalagar@nkaliape-lnx-v1%>

Bala,

Can you verify http/https connection to other websites with the proxy config you have?

Cheers,

Einar

yes http and https connection went fine .

[exec] baalagar@nkaliape-lnx-v1%>ping www.cisco.com

PING origin-www.cisco.com (173.37.145.84) 56(84) bytes of data.

64 bytes from www2.cisco.com (173.37.145.84): icmp_seq=1 ttl=242 time=42.9 ms

64 bytes from www2.cisco.com (173.37.145.84): icmp_seq=2 ttl=242 time=42.5 ms

64 bytes from www2.cisco.com (173.37.145.84): icmp_seq=3 ttl=242 time=42.5 ms

ICMP traffic is not dealt with by an HTTP proxy and Cisco websites are usually not routed via the lab proxies. Can you use curl or wget with external websites?

on lab machines I usually use proxy.esl.cisco.com:80<http://proxy.esl.cisco.com:80> as the setting and that works fine. For example:

export http_proxy=http://proxy.esl.cisco.com:80/

export https_proxy=http://proxy.esl.cisco.com:80/

export ftp_proxy=http://proxy.esl.cisco.com:80/

export no_proxy=.cisco.com<http://cisco.com>

export HTTP_PROXY=http://proxy.esl.cisco.com:80/

export HTTPS_PROXY=http://proxy.esl.cisco.com:80/

export FTP_PROXY=http://proxy.esl.cisco.com:80/

Cheers,

Einar

Thanks Einar , it is installed properly after proxy set that you shared

[root@exr-idt-ucs ~]# pip install ydk-models-cisco-ios-xr

Requirement already satisfied: ydk-models-cisco-ios-xr in /usr/lib/python2.7/site-packages

Requirement already satisfied: ydk-models-ietf>=0.1.1 in /usr/lib/python2.7/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: enum34==1.1.3 in /usr/lib/python2.7/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: lxml==3.4.4 in /usr/lib64/python2.7/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: ydk-models-openconfig>=0.1.2 in /usr/lib/python2.7/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: ydk>=0.5.2 in /usr/lib/python2.7/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: ncclient>=0.4.7 in /usr/lib/python2.7/site-packages (from ydk-models-cisco-ios-xr)

Requirement already satisfied: pybind11==2.0.1 in /usr/lib/python2.7/site-packages (from ydk>=0.5.2->ydk-models-cisco-ios-xr)

Requirement already satisfied: setuptools>0.6 in /usr/lib/python2.7/site-packages (from ncclient>=0.4.7->ydk-models-cisco-ios-xr)

Requirement already satisfied: paramiko>=1.15.0 in /usr/lib/python2.7/site-packages (from ncclient>=0.4.7->ydk-models-cisco-ios-xr)

Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from ncclient>=0.4.7->ydk-models-cisco-ios-xr)

Requirement already satisfied: cryptography>=1.1 in /usr/lib64/python2.7/site-packages (from paramiko>=1.15.0->ncclient>=0.4.7->ydk-models-cisco-ios-xr)

Requirement already satisfied: pyasn1>=0.1.7 in /usr/lib/python2.7/site-packages (from paramiko>=1.15.0->ncclient>=0.4.7->ydk-models-cisco-ios-xr)

Requirement already satisfied: idna>=2.0 in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.15.0->ncclient>=0.4.7->ydk-models-cisco-ios-xr)

Requirement already satisfied: ipaddress in /usr/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.15.0->ncclient>=0.4.7->ydk-models-cisco-ios-xr)

Requirement already satisfied: cffi>=1.4.1 in /usr/lib64/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.15.0->ncclient>=0.4.7->ydk-models-cisco-ios-xr)

Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography>=1.1->paramiko>=1.15.0->ncclient>=0.4.7->ydk-models-cisco-ios-xr)

===========================================================================

>>> from ydk.models.cisco_ios_xr import Cisco_IOS_XR_ip_static_cfg

>>> from ydk.providers import NetconfServiceProvider

>>> from ydk.services import CRUDService

>>> ncc = NetconfServiceProvider(address='172.27.121.52' , username='root', password='lab', port=830)

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

  File "/auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages/ydk/providers/netconf_provider.py", line 69, in __init__

    self._connect()

  File "/auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages/ydk/providers/netconf_provider.py", line 75, in _connect

    self.sp_instance.connect(self.session_config)

  File "/auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages/ydk/providers/_provider_plugin.py", line 296, in connect

    hostkey_verify=False)

  File "/auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages/ncclient/manager.py", line 154, in connect

    return connect_ssh(*args, **kwds)

  File "/auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages/ncclient/manager.py", line 119, in connect_ssh

    session.connect(*args, **kwds)

  File "/auto/cafy_dev/cafykit/exec/lib/python3.4/site-packages/ncclient/transport/ssh.py", line 383, in connect

    raise SSHError("Could not open socket to %s:%s" % (host, port))

ncclient.transport.errors.SSHError: Could not open socket to 172.27.121.52:830

i seen SSH exception , manually i could login

baalagar@exr-idt-ucs.cisco.com%>ssh root@172.27.121.52

Password:

RP/0/RP0/CPU0:ios#

thanks

Bala

jwatters06
Level 1
Level 1

Hi,

I am a network engineer and would like to experiment with yang and netconf on IOS XR. I have followed  the instructions but my install is failing with "Failed building wheel for ydk" Here is some info of my environment and some log messages that might help some one hopefully point me in the right direction which would be great:

Ubuntu (LUbuntu) running in VMWare Fusion on a Mac Book Pro.

lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 16.04.3 LTS

Release:        16.04

Codename:       xenial

python -V

Python 2.7.12

pip list

beautifulsoup4 (4.4.1)

cffi (1.9.1)

chardet (2.3.0)

cryptography (1.7.1)

defer (1.0.6)

enum34 (1.1.6)

html5lib (0.999)

idna (2.2)

ipaddress (1.0.18)

lxml (3.5.0)

netmiko (1.2.7)

paramiko (2.1.1)

pip (9.0.1)

psutil (3.4.2)

pyasn1 (0.1.9)

pybind11 (2.1.1)

pycparser (2.17)

pycups (1.9.73)

pycurl (7.43.0)

pygobject (3.20.0)

pysmbc (1.0.15.5)

pysqlite (2.7.0)

python-apt (1.1.0b1)

python-debian (0.1.27)

pyxdg (0.25)

PyYAML (3.12)

scp (0.10.2)

setuptools (36.2.7)

six (1.10.0)

wheel (0.29.0)

# portion of output during install

Building wheels for collected packages: ydk

  Running setup.py bdist_wheel for ydk ... error

  Failed building wheel for ydk

  Running setup.py clean for ydk

Failed to build ydk

Installing collected packages: ydk, ydk-models-ietf, ydk-models-openconfig, ydk-models-cisco-ios-xr

  Running setup.py install for ydk ... error

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-TS0UEL/ydk/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-M_zvho-record/install-record.txt --compile" failed with error code 1 in /tmp/pip-build-TS0UEL/ydk/

snippet form --log output from pip install command.

running build_ext

    -- The C compiler identification is GNU 5.4.0

    -- The CXX compiler identification is GNU 5.4.0

    -- Check for working C compiler: /usr/bin/cc

    -- Check for working C compiler: /usr/bin/cc -- works

    -- Detecting C compiler ABI info

    -- Detecting C compiler ABI info - done

    -- Detecting C compile features

    -- Detecting C compile features - done

    -- Check for working CXX compiler: /usr/bin/c++

    -- Check for working CXX compiler: /usr/bin/c++ -- works

    -- Detecting CXX compiler ABI info

    -- Detecting CXX compiler ABI info - done

    -- Detecting CXX compile features

    -- Detecting CXX compile features - done

    python library: /usr/lib/python2.7/config-x86_64-linux-gnu/libpython2.7.so

    python include: /usr/include/python2.7

    pybind11 include: /usr/local/include/python2.7;/home/jwatters/.local/include/python2.7

    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

    Please set them or make sure they are set and tested correctly in the CMake files:

    curl_location

        linked by target "ydk_" in directory /tmp/pip-build-86gcac/ydk

    pcre_location

        linked by target "ydk_" in directory /tmp/pip-build-86gcac/ydk

    ssh_location

        linked by target "ydk_" in directory /tmp/pip-build-86gcac/ydk

    ssh_threads_location

        linked by target "ydk_" in directory /tmp/pip-build-86gcac/ydk

    ydk_location

        linked by target "ydk_" in directory /tmp/pip-build-86gcac/ydk

    -- Configuring incomplete, errors occurred!

Thank you for any tips you can provide.

Jim

The error indicates the system dependencies have not been installed. Can you install these first?

https://github.com/CiscoDevNet/ydk-py

Also please make sure you're using a virtualenv on Mac OSX.

Thank you! I did a clean install of LUbuntu 16.04 I apologize I had used an older link and the linux requirements were a little different then they are now for 0.6.0. I am a little confused that i don't see ydk-models-cisco-ios-xr in my pip list:

pip list

DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.

chardet (2.3.0)

defer (1.0.6)

pip (9.0.1)

psutil (3.4.2)

pybind11 (2.1.1)

pygobject (3.20.0)

pysqlite (2.7.0)

python-apt (1.1.0b1)

python-debian (0.1.27)

pyxdg (0.25)

setuptools (36.2.7)

six (1.10.0)

wheel (0.29.0)

ydk (0.6.0)

ydk-models-ietf (0.1.3)

ydk-models-openconfig (0.1.3)

Will try to test a sample with an ASR 9001 that i have in the lab tomorrow.

Jim

Hi Jim,

Culd you please share the outcome of your testing ? I am doing the same testing on IOS-XR platforms and I am facing some issues with NETCONF and YANG.

Thanks

I have installed all the dependencies mentioned below.

"

apt-get install libcurl4-openssl-dev libpcre3-dev libssh-dev libxml2-dev libxslt1-dev libtool-bin cmake python3-dev python-dev

"

My ubuntu version:

root@frettay:/home/ytoolnew/ytool/v# lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description:    Ubuntu 14.04.5 LTS

Release:        14.04

Codename:       trusty

When i tried to install ydk from source in virtual environment i am getting cmake error as below.

(ydk) root@frettay:/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core# pip install dist/ydk*.gz

Processing ./dist/ydk-0.6.0.tar.gz

Requirement already satisfied: pybind11>=2.1.1 in ./ydk/lib/python2.7/site-packages (from ydk==0.6.0)

Building wheels for collected packages: ydk

  Running setup.py bdist_wheel for ydk ... error

  Complete output from command /home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-OGc57f-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpP97MKNpip-wheel- --python-tag cp27:

  running bdist_wheel

  running build

  running build_py

  creating build

  creating build/lib.linux-i686-2.7

  creating build/lib.linux-i686-2.7/ydk

  copying ydk/exthook.py -> build/lib.linux-i686-2.7/ydk

  copying ydk/__init__.py -> build/lib.linux-i686-2.7/ydk

  creating build/lib.linux-i686-2.7/ydk/entity_utils

  copying ydk/entity_utils/__init__.py -> build/lib.linux-i686-2.7/ydk/entity_utils

  creating build/lib.linux-i686-2.7/ydk/models

  copying ydk/models/__init__.py -> build/lib.linux-i686-2.7/ydk/models

  creating build/lib.linux-i686-2.7/ydk/path

  copying ydk/path/__init__.py -> build/lib.linux-i686-2.7/ydk/path

  creating build/lib.linux-i686-2.7/ydk/providers

  copying ydk/providers/codec_provider.py -> build/lib.linux-i686-2.7/ydk/providers

  copying ydk/providers/__init__.py -> build/lib.linux-i686-2.7/ydk/providers

  creating build/lib.linux-i686-2.7/ydk/errors

  copying ydk/errors/error_handler.py -> build/lib.linux-i686-2.7/ydk/errors

  copying ydk/errors/__init__.py -> build/lib.linux-i686-2.7/ydk/errors

  creating build/lib.linux-i686-2.7/ydk/types

  copying ydk/types/py_types.py -> build/lib.linux-i686-2.7/ydk/types

  copying ydk/types/__init__.py -> build/lib.linux-i686-2.7/ydk/types

  creating build/lib.linux-i686-2.7/ydk/logging

  copying ydk/logging/__init__.py -> build/lib.linux-i686-2.7/ydk/logging

  creating build/lib.linux-i686-2.7/ydk/filters

  copying ydk/filters/__init__.py -> build/lib.linux-i686-2.7/ydk/filters

  creating build/lib.linux-i686-2.7/ydk/services

  copying ydk/services/executor_service.py -> build/lib.linux-i686-2.7/ydk/services

  copying ydk/services/crud_service.py -> build/lib.linux-i686-2.7/ydk/services

  copying ydk/services/netconf_service.py -> build/lib.linux-i686-2.7/ydk/services

  copying ydk/services/codec_service.py -> build/lib.linux-i686-2.7/ydk/services

  copying ydk/services/__init__.py -> build/lib.linux-i686-2.7/ydk/services

  creating build/lib.linux-i686-2.7/ydk/ext

  copying ydk/ext/__init__.py -> build/lib.linux-i686-2.7/ydk/ext

  running build_ext

  -- The C compiler identification is GNU 4.8.4

  -- The CXX compiler identification is GNU 4.8.4

  -- Check for working C compiler: /usr/bin/cc

  -- Check for working C compiler: /usr/bin/cc -- works

  -- Detecting C compiler ABI info

  -- Detecting C compiler ABI info - done

  -- Detecting C compile features

  -- Detecting C compile features - done

  -- Check for working CXX compiler: /usr/bin/c++

  -- Check for working CXX compiler: /usr/bin/c++ -- works

  -- Detecting CXX compiler ABI info

  -- Detecting CXX compiler ABI info - done

  -- Detecting CXX compile features

  -- Detecting CXX compile features - done

  python library: libpython2.7.so

  python include: /usr/local/include/python2.7

  pybind11 include: /home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7;/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7

  CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

  Please set them or make sure they are set and tested correctly in the CMake files:

  ydk_location

      linked by target "ydk_" in directory /tmp/pip-OGc57f-build

  -- Configuring incomplete, errors occurred!

  See also "/tmp/pip-OGc57f-build/build/temp.linux-i686-2.7/CMakeFiles/CMakeOutput.log".

  Traceback (most recent call last):

    File "<string>", line 1, in <module>

    File "/tmp/pip-OGc57f-build/setup.py", line 157, in <module>

      zip_safe=False,

    File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup

      dist.run_commands()

    File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands

      self.run_command(cmd)

    File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command

      cmd_obj.run()

    File "/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 204, in run

      self.run_command('build')

    File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command

      self.distribution.run_command(command)

    File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command

      cmd_obj.run()

    File "/usr/local/lib/python2.7/distutils/command/build.py", line 127, in run

      self.run_command(cmd_name)

    File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command

      self.distribution.run_command(command)

    File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command

      cmd_obj.run()

    File "/tmp/pip-OGc57f-build/setup.py", line 69, in run

      self.build_extension(ext)

    File "/tmp/pip-OGc57f-build/setup.py", line 93, in build_extension

      subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp)

    File "/usr/local/lib/python2.7/subprocess.py", line 540, in check_call

      raise CalledProcessError(retcode, cmd)

  subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-OGc57f-build', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-OGc57f-build/build/lib.linux-i686-2.7', '-DPYBIND11_INCLUDE=/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7;/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7', '-DPYTHON_LIBRARY=libpython2.7.so', '-DPYTHON_INCLUDE=/usr/local/include/python2.7', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1

  ----------------------------------------

  Failed building wheel for ydk

  Running setup.py clean for ydk

Failed to build ydk

Installing collected packages: ydk

  Running setup.py install for ydk ... error

    Complete output from command /home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-OGc57f-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-QWoWnc-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7/ydk:

    running install

    running build

    running build_py

    creating build

    creating build/lib.linux-i686-2.7

    creating build/lib.linux-i686-2.7/ydk

    copying ydk/exthook.py -> build/lib.linux-i686-2.7/ydk

    copying ydk/__init__.py -> build/lib.linux-i686-2.7/ydk

    creating build/lib.linux-i686-2.7/ydk/entity_utils

    copying ydk/entity_utils/__init__.py -> build/lib.linux-i686-2.7/ydk/entity_utils

    creating build/lib.linux-i686-2.7/ydk/models

    copying ydk/models/__init__.py -> build/lib.linux-i686-2.7/ydk/models

    creating build/lib.linux-i686-2.7/ydk/path

    copying ydk/path/__init__.py -> build/lib.linux-i686-2.7/ydk/path

    creating build/lib.linux-i686-2.7/ydk/providers

    copying ydk/providers/codec_provider.py -> build/lib.linux-i686-2.7/ydk/providers

    copying ydk/providers/__init__.py -> build/lib.linux-i686-2.7/ydk/providers

    creating build/lib.linux-i686-2.7/ydk/errors

    copying ydk/errors/error_handler.py -> build/lib.linux-i686-2.7/ydk/errors

    copying ydk/errors/__init__.py -> build/lib.linux-i686-2.7/ydk/errors

    creating build/lib.linux-i686-2.7/ydk/types

    copying ydk/types/py_types.py -> build/lib.linux-i686-2.7/ydk/types

    copying ydk/types/__init__.py -> build/lib.linux-i686-2.7/ydk/types

    creating build/lib.linux-i686-2.7/ydk/logging

    copying ydk/logging/__init__.py -> build/lib.linux-i686-2.7/ydk/logging

    creating build/lib.linux-i686-2.7/ydk/filters

    copying ydk/filters/__init__.py -> build/lib.linux-i686-2.7/ydk/filters

    creating build/lib.linux-i686-2.7/ydk/services

    copying ydk/services/executor_service.py -> build/lib.linux-i686-2.7/ydk/services

    copying ydk/services/crud_service.py -> build/lib.linux-i686-2.7/ydk/services

    copying ydk/services/netconf_service.py -> build/lib.linux-i686-2.7/ydk/services

    copying ydk/services/codec_service.py -> build/lib.linux-i686-2.7/ydk/services

    copying ydk/services/__init__.py -> build/lib.linux-i686-2.7/ydk/services

    creating build/lib.linux-i686-2.7/ydk/ext

    copying ydk/ext/__init__.py -> build/lib.linux-i686-2.7/ydk/ext

    running build_ext

    -- The C compiler identification is GNU 4.8.4

    -- The CXX compiler identification is GNU 4.8.4

    -- Check for working C compiler: /usr/bin/cc

    -- Check for working C compiler: /usr/bin/cc -- works

    -- Detecting C compiler ABI info

    -- Detecting C compiler ABI info - done

    -- Detecting C compile features

    -- Detecting C compile features - done

    -- Check for working CXX compiler: /usr/bin/c++

    -- Check for working CXX compiler: /usr/bin/c++ -- works

    -- Detecting CXX compiler ABI info

    -- Detecting CXX compiler ABI info - done

    -- Detecting CXX compile features

    -- Detecting CXX compile features - done

    python library: libpython2.7.so

    python include: /usr/local/include/python2.7

    pybind11 include: /home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7;/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7

    CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

    Please set them or make sure they are set and tested correctly in the CMake files:

    ydk_location

        linked by target "ydk_" in directory /tmp/pip-OGc57f-build

  

    -- Configuring incomplete, errors occurred!

    See also "/tmp/pip-OGc57f-build/build/temp.linux-i686-2.7/CMakeFiles/CMakeOutput.log".

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-OGc57f-build/setup.py", line 157, in <module>

        zip_safe=False,

      File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup

        dist.run_commands()

      File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands

        self.run_command(cmd)

      File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command

        cmd_obj.run()

      File "/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run

        return orig.install.run(self)

      File "/usr/local/lib/python2.7/distutils/command/install.py", line 563, in run

        self.run_command('build')

      File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command

        self.distribution.run_command(command)

      File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command

        cmd_obj.run()

      File "/usr/local/lib/python2.7/distutils/command/build.py", line 127, in run

        self.run_command(cmd_name)

      File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command

        self.distribution.run_command(command)

      File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command

        cmd_obj.run()

      File "/tmp/pip-OGc57f-build/setup.py", line 69, in run

        self.build_extension(ext)

      File "/tmp/pip-OGc57f-build/setup.py", line 93, in build_extension

        subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp)

      File "/usr/local/lib/python2.7/subprocess.py", line 540, in check_call

        raise CalledProcessError(retcode, cmd)

    subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-OGc57f-build', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-OGc57f-build/build/lib.linux-i686-2.7', '-DPYBIND11_INCLUDE=/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7;/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7', '-DPYTHON_LIBRARY=libpython2.7.so', '-DPYTHON_INCLUDE=/usr/local/include/python2.7', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1

  

    ----------------------------------------

Command "/home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-OGc57f-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-QWoWnc-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ytoolnew/ytool/v/bin/ydk/ydk-py/core/ydk/include/site/python2.7/ydk" failed with error code 1 in /tmp/pip-OGc57f

Note: Even tried with quick install of ydk and facing the same issue.