cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
945
Views
6
Helpful
4
Replies

YDK installation on offline server

sosul
Level 1
Level 1

Following "How to install" part in http://ydk.cisco.com/py/docs/getting_started.html#how-to-install, I'm blocked because "pip install ydk-models-something" does not work properly my offline CentOS7 server.


I've managed to install libydk-0.6.2-1.x86_64.rpm by downloading the file and dependencies.

1. Are there downloadable package files for ydk-models?


2. If not, maybe I have to follow instructions in http://ydk.cisco.com/py/docs/getting_started.html#installing-from-source part, but I have no idea which source it is talking about.


1 Accepted Solution

Accepted Solutions

saalvare
Cisco Employee
Cisco Employee

The following commands should put you at the starting point of installing from source:

$ git clone https://github.com/CiscoDevNet/ydk-py.git

$ cd ydk-py

View solution in original post

4 Replies 4

saalvare
Cisco Employee
Cisco Employee

The following commands should put you at the starting point of installing from source:

$ git clone https://github.com/CiscoDevNet/ydk-py.git

$ cd ydk-py

Thank you for your answer. I've downloaded the git repository from another PC and moved it to the server.

After that I could find folders like core, ietf, openconfig, etc.

However, after running "python setup.py sdist", I still have problems with "pip install dist/ydk*.gz" command since the server has no internet connection.

[tsdn@tsdn-nfvo core]$ pip install dist/ydk*.gz

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

Collecting pybind11>=2.1.1 (from ydk==0.6.2)

  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', gaierror(-3, 'Temporary failure in name resolution'))': /simple/pybind11/

  Could not find a version that satisfies the requirement pybind11>=2.1.1 (from ydk==0.6.2) (from versions: )

No matching distribution found for pybind11>=2.1.1 (from ydk==0.6.2)

Tried to install pybind11 manually but could not find version >= 2.1.1 as seen in https://pkgs.org/download/pybind11

Since you're offline, you can't rely on the packaging system taking care of dependencies automatically.  You need to download and install pybind11 manually.


You can get the package from:

https://pypi.org/project/pybind11/#files

The latest release should do the trick.  That's what I got on my system:

$ pip list | grep pybind

pybind11                2.2.1      

$

After satisfying requirement for pybind11, installation is all smooth even in offline condition. Thank you.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: