06-08-2018 06:48 AM
Hi Team
I was trying to install YDK in my server and tried the below things. But ended up with the error saying no module named git.
https://wiki.cisco.com/display/PYATS/YDK#YDK-UsingYDK-Gen
Requesting you to help me on this.
1. GIT Clone.
git clone https://github.com/CiscoDevNet/ydk-gen
Cloning into 'ydk-gen'...
remote: Counting objects: 15661, done.
remote: Compressing objects: 100% (77/77), done.
remote: Total 15661 (delta 84), reused 97 (delta 65), pack-reused 15519
Receiving objects: 100% (15661/15661), 6.47 MiB | 9.80 MiB/s, done.
Resolving deltas: 100% (11027/11027), done.
Checking out files: 100% (976/976), done.
2.
./generate.py --core
Traceback (most recent call last):
File "./generate.py", line 34, in <module>
from git import Repo
ImportError: No module named 'git'
Thanks,
06-21-2018 12:34 AM
Hi Koushai,
Moving your question under YANG Development Kit (YDK) for more visibility of support engineers. Found one related url - https://cisco-marketing.hosted.jivesoftware.com/message/276340
Thanks and Regards,
Geevarghese
06-21-2018 09:46 AM
Thanks much Geevarghese for moving the query to appropriate forum.
06-21-2018 01:36 AM
It may be missing git module. try pip install gitpython.
06-21-2018 09:47 AM
Thanks Vincent for the reply. I will try it and get back.
06-21-2018 07:58 AM
Please run 'pip install -r requirements.txt'
06-21-2018 09:48 AM
Thanks Abhi Ramesh for the reply. I will execute the command which you mentioned.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide