12-13-2017 05:09 PM
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.
Solved! Go to Solution.
12-13-2017 09:15 PM
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
12-13-2017 09:15 PM
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
12-13-2017 10:24 PM
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
12-14-2017 10:43 AM
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
$
12-14-2017 05:16 PM
After satisfying requirement for pybind11, installation is all smooth even in offline condition. Thank you.
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: