cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
627
Views
1
Helpful
1
Replies

ydp-py "Getting Started" doc updates

joeknigh
Cisco Employee
Cisco Employee

Hi all,

Just going through the getting started docs (http://ydk.cisco.com/py/docs/getting_started.html) and noticed a couple of errors/omissions with respect to installing on macOS.

1. (http://ydk.cisco.com/py/docs/getting_started.html#macos) Instructions say to "brew install xml2" but I found I also need to install libxml2 to avoid the following error:

~/git/sdapov% python test.py

Traceback (most recent call last):

  File "test.py", line 1, in <module>

    from ydk_.services import CRUDService

ImportError: dlopen(/Users/jknight/.venvs/sdapov/lib/python2.7/site-packages/ydk_.so, 2): Library not loaded: /usr/local/opt/libxml2/lib/libxml2.2.dylib

  Referenced from: /Users/jknight/.venvs/sdapov/lib/python2.7/site-packages/ydk_.so

  Reason: Incompatible library version: ydk_.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

2. (http://ydk.cisco.com/py/docs/getting_started.html#quick-install) The instructions state "You get a fully operational YDK environment by installing the cisco-ios-xr". This isn't toally truthful because it does not install the cisco-ios-xe bundle. Not sure if the xr bundle is supposed to pull that in, or if the instructions need to be amended to state you need to install the xe bundle yourself.

.joel

1 Reply 1

xiaoqinz
Level 4
Level 4

Thanks for catching those issues.

For the first item, maybe you could submit pull request at GitHub - CiscoDevNet/ydk-gen: Generate model-driven APIs from YANG models ydk-gen repository, or we could do this for you.