cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1465
Views
5
Helpful
2
Replies

Installing and Running YANG Suite on a Mac - Tips

Alex Stevenson
Cisco Employee
Cisco Employee

 

What I wish someone would have told me about installing YANG Suite 

This was on a MacBook Pro, done today April 25, 2022

 

  1. Install Docker Desktop on your PC, start it and keep it running when you want to use YANG Suite
  2. Figure out where you want to install YANG Suite and run ‘git clone https://github.com/CiscoDevNet/yangsuite/'
  3. Enter the Yang Suite folder --> 'cd yangsuite'
  4. I like to start a virtual environment here ‘python3 -m vent vent’. And then ‘source venv/bin/activate’ it’s a little different for Python2 and/or on Windows
  5. You’ll need to install docker-compose if you want to use that to start YANG Suite. I prefer starting YANG Suite with this command instead --> from the yangsuite/docker folder: ‘./start_yang_suite.sh’
  6. Enter the GUI  --> Go to http://localhost    I had to use Firefox as it was blocked on Chrome
  7. There is a free, Always-On sandbox to try out YANG Suite with: IOS XE on CSR Recommended Code AlwaysOn  
  8. This lab is helpful for beginners: Introduction to YANG Suite 

 

Enjoy!

2 Replies 2

hypnotoad
Level 3
Level 3

I'm trying to get YangSuite installed on my Mac.  I followed the above.  I get this error:

 

#13 15.67   Downloading https://files.pythonhosted.org/packages/a1/0d/a1b490503545b3b4600b965eae5d44cc2b6ce27cfb44f4debc563dbb56d3/textfsm-0.4.1.tar.gz
#13 15.91 Collecting cryptography>3.3.1 (from yangsuite-devices; extra == "core"->yangsuite[core])
#13 16.42   Downloading https://files.pythonhosted.org/packages/89/d9/5fcd312d5cce0b4d7ee8b551a0ea99e4ea9db0fdbf6dd455a19042e3370b/cryptography-37.0.4.tar.gz (585kB)
#13 16.76     Complete output from command python setup.py egg_info:
#13 16.76     Traceback (most recent call last):
#13 16.76       File "<string>", line 1, in <module>
#13 16.76       File "/tmp/pip-build-5eb_0lt0/cryptography/setup.py", line 14, in <module>
#13 16.76         from setuptools_rust import RustExtension
#13 16.76     ModuleNotFoundError: No module named 'setuptools_rust'
#13 16.76     
#13 16.76             =============================DEBUG ASSISTANCE==========================
#13 16.76             If you are seeing an error here please try the following to
#13 16.76             successfully install cryptography:
#13 16.76     
#13 16.76             Upgrade to the latest pip and try again. This will fix errors for most
#13 16.76             users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
#13 16.76             =============================DEBUG ASSISTANCE==========================
#13 16.76     
#13 16.76     
#13 16.76     ----------------------------------------
#13 17.11 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5eb_0lt0/cryptography/
------
executor failed running [/bin/sh -c pip3 install --upgrade --no-cache yangsuite[core]]: exit code: 1
ERROR: Service 'yangsuite' failed to build : Build failed

I've tried upgrading pip and setuptools.

 

Package           Version

----------------- -------

pip               22.1.2

semantic-version  2.10.0

setuptools        63.1.0

setuptools-rust   1.4.1

typing_extensions 4.3.0

 

How do I fix?

 

Thanks,

Patrick

It looks like you need to install cryptography and updating to the latest version of pip might help too.