cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3092
Views
5
Helpful
6
Replies

No module named git when installing YDK

Koushal
Cisco Employee
Cisco Employee

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,

6 Replies 6

Geevarghese Cheria
Cisco Employee
Cisco Employee

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

Thanks much Geevarghese for moving the query to appropriate forum.

Vince
Level 1
Level 1

It may be missing git module. try pip install gitpython.

Koushal
Cisco Employee
Cisco Employee

Thanks Vincent for the reply. I will try it and get back.

abhirame
Cisco Employee
Cisco Employee

Please run 'pip install -r requirements.txt'

Thanks Abhi Ramesh for the reply. I will execute the command which you mentioned.

Getting Started

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: