CiscoDevNet / ydk-gen

Generate model-driven APIs from YANG models
http://ciscodevnet.github.io/ydk-gen/
Apache License 2.0
137 stars 74 forks source link

Repository cannot be created with libydk RPM #700

Closed ghost closed 6 years ago

ghost commented 6 years ago

Getting the below error when using the libydk RPM.

[2018-03-01 17:04:08.212] [ydk] [error] Could not create repository in: /ydk/sdk/cpp/core/tests/models

Work around

It works when compiling+installing source code as specified here.

# Remove existing libydk
rpm -e libydk

# Install libydk from source
git clone https://github.com/CiscoDevNet/ydk-gen.git
cd ydk-gen
./test/dependencies_centos_basic.sh # If using CentOS. Use one of the other scripts for other OS
pip install -r requirements.txt
./generate --core --cpp 
[sudo] make -C gen-api/cpp/ydk/build install

# Reinstall ydk-py
pip uninstall ydk -y
pip install ydk
ghost commented 6 years ago

Fixed in 0.7.1