## How to install ydk / cicso-nx-os model on macos catalina ??
- Hitting an error when trying to install ydk with nx-os YDK on macOS (Catalina): where can I find /usr/local/include/ydkjson_subtree_codec.hpp ??
- so far, I was only able to ***successfully*** install ydk, ydk-model-ietf, ydk-model-openconfig and cisco-ios-xr following the below procedure.
- I further modified the original yang-explorer>setup.sh file to include cisco-ios-xe (installation worked).
```
cd ../cisco-ios-xe; \
python setup.py sdist; \
pip install dist/ydk*.gz; \
```
- however the installation for cisco-nx-os fails <<<<
(1) Procedure that successfully installs ydk, ydk-models-cisco-ios-xe, ydk-models-cisco-ios-xr, ydk-models-ietf,ydk-models-openconfig
```
brew install graphviz
git clone https://github.com/mbj4668/pyang.git
cd pyang
python setup.py install
git clone https://github.com/CiscoDevNet/yang-explorer.git
cd yang-explorer
bash setup.sh
```
pip list
< snip >
ydk 0.5.5
ydk-models-cisco-ios-xe 16.5.1
ydk-models-cisco-ios-xr 6.2.1
ydk-models-ietf 0.1.2
ydk-models-openconfig 0.1.2
### ERROR #1
❯ pip install ydk-models-cisco-nx-os
< snip >
missing this file: ydk/json_subtree_codec.hpp, which is specified in [python.cpp](https://github.com/CiscoDevNet/ydk-py/blob/master/core/python.cpp) <<<<<<
" [ 50%] Building CXX object CMakeFiles/ydk_.dir/python.cpp.o
/private/var/folders/xv/dgy2lcw15xgbk5b6g6st88xm0000gp/T/pip-install-uPU_oR/ydk/python.cpp:38:10: fatal error: 'ydk/json_subtree_codec.hpp' file not found
#include <ydk/json_subtree_codec.hpp>" <<<<
not available in the expected location: /usr/local/include/ydk
### ERROR-2
I did find a file json.hpp in the location /usr/local/include/ydk and tentatively renamed it to json_subtree_codec.hpp ...
new attempt to install got passed the 1st error but now hitting this....
" [ 50%] Building CXX object CMakeFiles/ydk_.dir/python.cpp.o
/private/var/folders/xv/dgy2lcw15xgbk5b6g6st88xm0000gp/T/pip-install-c3I9mL/ydk/python.cpp:388:143: error: no member named 'execute_netconf_operation' in 'ydk::path::NetconfSession'
.def("execute_netconf_operation", (std::string (ydk::path::NetconfSession::*)(ydk::path::Rpc& rpc) const) &ydk::path::NetconfSession::execute_netconf_operation)"
### ASK
Wondering if anyone has actually been successful installing cisco-nx-os model using the instructions from the 1st reference...
### REFERENCES
1. https://ydkgen.readthedocs.io/en/latest/getting_started.html
2. https://github.com/CiscoDevNet/ydk-py/blob/master/core/python.cpp << "#include <ydk/json_subtree_codec.hpp>"
3. https://community.cisco.com/t5/yang-development-kit-ydk/how-to-install-ydk-py-in-macos/td-p/3783128 << No go.