<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting started with YANG Suite in Tools</title>
    <link>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/5019817#M3469</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a similar issue to&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/394718"&gt;@shuangli&lt;/a&gt;&amp;nbsp;.&amp;nbsp; It feels like I'm missing something fundamental like an environment path setting or something similar.&lt;/P&gt;&lt;P&gt;No matter what platform I install on I cant get the yangsuite command to be recognised as though it isn't installed correctly.&amp;nbsp; I have tried&amp;nbsp; Ubuntu 22.04/20.04 VMs both docker and pip installs, windows the same pip/WSL2 or docker and brew for MacOS.&lt;/P&gt;&lt;P&gt;The docker error is as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1

# Copyright 2022 Cisco Systems, Inc
2


3

FROM ubuntu:20.04
4


5

ENV DOCKER_RUN  true
6


7

ARG PY=python3
8

ARG PY_VER=3.8
9

ARG YS_DIST=/usr/local/lib/python${PY_VER}/dist-packages/yangsuite/
10

ARG YS_SETTINGS=${YS_DIST}/settings/
11


12

# Postgres requires timezone to be specified at run time
13

RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime &amp;amp;&amp;amp; echo $CONTAINER_TIMEZONE &amp;gt; /etc/timezone
14


15

# Install required packages and remove the apt packages cache when done
16

RUN apt-get update &amp;amp;&amp;amp; \
17

    apt-get install -y \
18

        git \
19

        software-properties-common \
20

        postgresql \
21

        openssh-client \
22

        iputils-ping \
23

        python3.8 \
24

        python3-pip \
25

        gcc \
26

        libffi-dev \
27

        sqlite3 \
28

        vim \
29

        snmp \
30

        sendmail \
31

        &amp;amp;&amp;amp; \
32

    apt-get clean &amp;amp;&amp;amp; \
33

    rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
34


35

# Run the rest of the commands as the ``postgres`` user created by the ``postgres`` package when it was ``apt-get installed``
36

# USER postgres
37


38

# Create a PostgreSQL role named ``docker`` with ``docker`` as the password and
39

# then create a database `docker` owned by the ``docker`` role.
40

# Note: here we use ``&amp;amp;&amp;amp;\`` to run commands one after the other - the ``\``
41

#       allows the RUN command to span multiple lines.
42

# RUN   /etc/init.d/postgresql start &amp;amp;&amp;amp;\
43

44

#     createdb -O ysadmin yangsuite_db
45


46

RUN mkdir -p /yangsuite/uwsgi
47

COPY uwsgi.ini /yangsuite/
48

COPY migrate_and_start.sh /yangsuite/
49

RUN chmod +x /yangsuite/migrate_and_start.sh
50

RUN pip3 install --upgrade pip
51

RUN pip3 install --upgrade setuptools wheel uwsgi
52


53

# For PostgresSQL
54

# RUN  pip3 install --upgrade psycopg2-binary==2.8.6 tzdata
55


56

# Installing YANG Suite
57

RUN pip3 install --upgrade --no-cache yangsuite
58


59

# Installing YANG Suite optional free plugins
60

RUN pip3 install --upgrade --no-cache \
61

    yangsuite-grpc-telemetry \
62

    yangsuite-coverage \
63

    yangsuite-gnmi \
64

    yangsuite-restconf
65


66

# Uncomment to add another pypi repository to search for here
67

#
68

# ARG PIP_EXTRA_URL=https://private.pypi.com/simple
69

# RUN pip3 install --upgrade --no-cache --extra-index-url=${PIP_EXTRA_URL}  private_lib
70


71

# Uncomment to install optional plugin or replacement wheels
72

#
73

# COPY *.whl /yangsuite/
74

# RUN pip3 install --upgrade --no-cache /yangsuite/*.whl
75


76

COPY production.py ${YS_SETTINGS}
77

COPY wsgi.py ${YS_DIST}
78

RUN mkdir /ys-data
79

RUN mkdir /ys-static
80


81

RUN yangsuite --save-settings --configure-only \
82

    --allowed-hosts localhost \
83

    --static-root /ys-static \
84

    --data-path /ys-data \
85

    --settings yangsuite.settings.production
/bin/sh: 1: yangsuite: not found

86


87

# For PostgresSQL
88

# CMD service postgresql start
89


90

CMD /etc/init.d/sendmail start
91&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i run the python command from a venv i get the same:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(.venv) xxx@xxx-wks:~/testing/yangsuite$ yangsuite
yangsuite: command not found
(.venv) xxx@xxx-wks:~/testing/yangsuite$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(.venv) xxx@xxx-wks:~/testing/yangsuite/.venv$ cd lib/python3.10/site-packages/
(.venv) xxx@xxx-wks:~/testing/yangsuite/.venv/lib/python3.10/site-packages$ ls
Automat-22.10.0.dist-info                      netmiko
Deprecated-1.2.14.dist-info                    netmiko-2.4.2.dist-info
Django-5.0.2.dist-info                         networkx
GitPython-3.1.42.dist-info                     networkx-3.2.1.dist-info
Jinja2-3.1.3.dist-info                         numpy
Markdown-3.5.2.dist-info                       numpy-1.24.4.dist-info
MarkupSafe-2.0.1.dist-info                     numpy.libs
OpenSSL                                        openpyxl
PyGithub-2.2.0.dist-info                       openpyxl-3.1.2.dist-info
PyJWT-2.8.0.dist-info                          ordered_set
PyNaCl-1.5.0.dist-info                         ordered_set-4.1.0.dist-info
PyYAML-6.0.1.dist-info                         packaging
XlsxWriter-3.1.9.dist-info                     packaging-23.2.dist-info
__pycache__                                    pandas
_cffi_backend.cpython-310-x86_64-linux-gnu.so  pandas-1.5.3.dist-info
_distutils_hack                                paramiko
_yaml                                          paramiko-2.12.0.dist-info
amqp                                           past
amqp-5.2.0.dist-info                           pexpect
appdirs-1.4.4.dist-info                        pexpect-4.9.0.dist-info
appdirs.py                                     pip
asgiref                                        pip-24.0.dist-info
asgiref-3.7.2.dist-info                        pkg_resources
async_timeout                                  prompt_toolkit
async_timeout-4.0.3.dist-info                  prompt_toolkit-3.0.43.dist-info
attr                                           protobuf-4.25.3.dist-info
attrs                                          ptyprocess
attrs-23.2.0.dist-info                         ptyprocess-0.7.0.dist-info
autobahn                                       pyOpenSSL-24.0.0.dist-info
autobahn-23.6.2.dist-info                      pyang
automat                                        pyang-2.6.0.dist-info
bcrypt                                         pyasn1
bcrypt-4.1.2.dist-info                         pyasn1-0.5.1.dist-info
beautifulsoup4-4.12.3.dist-info                pyasn1_modules
billiard                                       pyasn1_modules-0.3.0.dist-info
billiard-4.2.0.dist-info                       pycparser
bs4                                            pycparser-2.21.dist-info
celery                                         pyserial-3.5.dist-info
celery-5.3.6.dist-info                         python_dateutil-2.8.2.dist-info
certifi                                        python_dotenv-1.0.1.dist-info
certifi-2024.2.2.dist-info                     python_json_logger-2.0.7.dist-info
cffi                                           python_slugify-4.0.1.dist-info
cffi-1.16.0.dist-info                          pythonjsonlogger
channels                                       pytz
channels-4.0.0.dist-info                       pytz-2024.1.dist-info
channels_redis                                 redis
channels_redis-4.2.0.dist-info                 redis-5.0.1.dist-info
charset_normalizer                             regex
charset_normalizer-3.3.2.dist-info             regex-2023.12.25.dist-info
click                                          requests
click-8.1.7.dist-info                          requests-2.31.0.dist-info
click_didyoumean                               rest_framework
click_didyoumean-0.3.0.dist-info               scp-0.14.5.dist-info
click_plugins                                  scp.py
click_plugins-1.1.1.dist-info                  serial
click_repl                                     service_identity
click_repl-0.3.0.dist-info                     service_identity-24.1.0.dist-info
concurrent                                     setuptools
confusable_homoglyphs                          setuptools-69.1.0.dist-info
confusable_homoglyphs-3.3.1.dist-info          six-1.16.0.dist-info
constantly                                     six.py
constantly-23.10.4.dist-info                   slugify
corsheaders                                    sly
cryptography                                   sly-0.5.dist-info
cryptography-42.0.3.dist-info                  smmap
daphne                                         smmap-5.0.1.dist-info
daphne-4.1.0.dist-info                         soupsieve
dateutil                                       soupsieve-2.5.dist-info
deepdiff                                       sqlparse
deepdiff-4.0.7.dist-info                       sqlparse-0.4.4.dist-info
deprecated                                     testdata
distutils-precedence.pth                       text_unidecode
django                                         text_unidecode-1.3.dist-info
django_cors_headers-4.3.1.dist-info            textfsm
django_filter-23.5.dist-info                   textfsm-1.1.3.dist-info
django_filters                                 twisted
django_registration                            twisted-23.10.0.dist-info
django_registration-3.4.dist-info              txaio
djangorestframework-3.14.0.dist-info           txaio-23.1.1.dist-info
djproxy                                        typing_extensions-4.9.0.dist-info
djproxy-2.3.6.dist-info                        typing_extensions.py
docker                                         tzdata
docker-4.4.4.dist-info                         tzdata-2024.1.dist-info
docutils                                       urllib3
docutils-0.20.1.dist-info                      urllib3-1.26.18.dist-info
dotenv                                         vine
elastic_transport                              vine-5.1.0.dist-info
elastic_transport-8.12.0.dist-info             wcwidth
elasticsearch                                  wcwidth-0.2.13.dist-info
elasticsearch-7.17.9.dist-info                 websocket
et_xmlfile                                     websocket_client-1.7.0.dist-info
et_xmlfile-1.1.0.dist-info                     wheel
future                                         wheel-0.42.0.dist-info
future-0.18.3.dist-info                        whitenoise
futures-3.0.5.dist-info                        whitenoise-4.1.4.dist-info
git                                            wrapt
gitdb                                          wrapt-1.16.0.dist-info
gitdb-4.0.11.dist-info                         xeger
github                                         xeger-0.3.4.dist-info
google                                         xlsxwriter
grpc                                           yaml
grpcio-1.60.1.dist-info                        yamlordereddictloader-0.4.0.dist-info
hyperlink                                      yamlordereddictloader.py
hyperlink-21.0.0.dist-info                     yang
idna                                           yang.connector-24.1-py3.10-nspkg.pth
idna-3.6.dist-info                             yang.connector-24.1.dist-info
incremental                                    yangsuite
incremental-22.10.0.dist-info                  yangsuite-3.0.0.dist-info
jinja2                                         yangsuite_coverage-3.0.16.dist-info
jsonfield                                      yangsuite_devices-2.9.10.dist-info
jsonfield-3.1.0.dist-info                      yangsuite_filemanager-1.9.10.dist-info
jsonpickle                                     yangsuite_gnmi-2.7.13.dist-info
jsonpickle-3.0.2.dist-info                     yangsuite_grpc_telemetry-1.0.8.dist-info
jwt                                            yangsuite_netconf-1.17.25.dist-info
kombu                                          yangsuite_restconf-2.1.9.dist-info
kombu-5.3.5.dist-info                          yangsuite_yangtree-2.1.10.dist-info
libfuturize                                    yscoverage
libpasteurize                                  ysdevices
lxml                                           ysfilemanager
lxml-4.9.4.dist-info                           ysgnmi
markdown                                       ysgrpctelemetry
markupsafe                                     ysnetconf
msgpack                                        ysrestconf
msgpack-1.0.7.dist-info                        ysyangtree
nacl                                           zope
ncclient                                       zope.interface-6.2-py3.10-nspkg.pth
ncclient-0.6.15.dist-info                      zope.interface-6.2.dist-info
(.venv) xxx@xxx-wks:~/testing/yangsuite/.venv/lib/python3.10/site-packages$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Feb 2024 18:58:15 GMT</pubDate>
    <dc:creator>gavid</dc:creator>
    <dc:date>2024-02-18T18:58:15Z</dc:date>
    <item>
      <title>Getting started with YANG Suite</title>
      <link>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/4286507#M957</link>
      <description>&lt;H1&gt;YANG Suite is here&lt;/H1&gt;
&lt;P&gt;Well after a long anticipated release the YANG Suite tooling is finally here. Lets take a quick look at some resources for the tool as well as the getting started workflow once it has been installed and is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Resources&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DevNet/YANGSuite: &lt;A href="https://developer.cisco.com/yangsuite" target="_blank"&gt;https://developer.cisco.com/yangsuite&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Documentatoin: &lt;A href="https://developer.cisco.com/docs/yangsuite" target="_blank"&gt;https://developer.cisco.com/docs/yangsuite&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Github repository: &lt;A href="https://github.com/CiscoDevNet/yangsuite" target="_blank"&gt;https://github.com/CiscoDevNet/yangsuite&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Learning Lab: &lt;A href="https://developer.cisco.com/learning/lab/intro-yangsuite/step/1" target="_blank"&gt;https://developer.cisco.com/learning/lab/intro-yangsuite/step/1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;PyPi: &lt;A href="https://pypi.org/project/yangsuite/" target="_blank"&gt;https://pypi.org/project/yangsuite/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BrightTalk Webinar: &lt;A href="https://www.brighttalk.com/webcast/17628/455586/the-wait-is-over-for-the-cisco-yang-suite-tooling" target="_blank"&gt;https://www.brighttalk.com/webcast/17628/455586/the-wait-is-over-for-the-cisco-yang-suite-tooling&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Installation&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Installation using Git and docker is recommended:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;git clone https://github.com/CiscoDevNet/yangsuite
cd yangsuite/docker/ ; ./gen_test_certs.sh
docker-compose up
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The containers are ready when the following is seen on the console:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Successfully built 7f0c52fbeb08
Successfully tagged backup:latest
Starting docker_yangsuite_1 ... done
Starting docker_backup_1    ... done
Recreating docker_nginx_1   ... done&lt;BR /&gt;...&lt;BR /&gt;yangsuite_1 | spawned uWSGI master process (pid: 34)&lt;BR /&gt;yangsuite_1 | spawned uWSGI worker 1 (pid: 38, cores: 1)&lt;BR /&gt;yangsuite_1 | spawned uWSGI worker 2 (pid: 39, cores: 1)&lt;BR /&gt;yangsuite_1 | spawned uWSGI worker 3 (pid: 40, cores: 1)&lt;BR /&gt;yangsuite_1 | spawned uWSGI worker 4 (pid: 41, cores: 1)&lt;BR /&gt;yangsuite_1 | spawned uWSGI worker 5 (pid: 42, cores: 1)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Access YANG Suite at https://localhost to being working with the tool&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Day 0 Workflow&lt;/H2&gt;
&lt;P&gt;Now that the tool is accessible lets look at the getting started workflow:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Check for updates&lt;/LI&gt;
&lt;LI&gt;Add the DevNet Always IOS XE device&lt;/LI&gt;
&lt;LI&gt;Download YANG files&lt;/LI&gt;
&lt;LI&gt;Explore YANG&lt;/LI&gt;
&lt;LI&gt;Interact with NETCONF&lt;/LI&gt;
&lt;LI&gt;Receive gRPC telemetry&lt;/LI&gt;
&lt;LI&gt;... etc&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Demo Video&lt;/H2&gt;
&lt;P&gt;Each of the above steps are covered in detail in the demo video. Lets watch&amp;nbsp;&lt;A href="https://youtu.be/smrhjL5Ayz0" target="_self"&gt;Getting started with Cisco YANG Suite on YouTube&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you, please let me know if you found this helpful&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 02:18:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/4286507#M957</guid>
      <dc:creator>jcohoe</dc:creator>
      <dc:date>2021-02-05T02:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with YANG Suite</title>
      <link>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/4824989#M958</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;How can we have multiple&amp;nbsp;YANG Suite preferences files (/home/user/.config/yangsuite/yangsuite.ini) in a Python installation?&lt;/P&gt;&lt;P&gt;Is there any option to save different files per each venv we create?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 20:57:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/4824989#M958</guid>
      <dc:creator>Theodossis Mantzouratos</dc:creator>
      <dc:date>2023-04-30T20:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with YANG Suite</title>
      <link>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/4996517#M3446</link>
      <description>&lt;P&gt;can't found gen_test_certs.sh file after git clone:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;root@localhost yangsuite]# cd yangsuite/docker/ ; ./gen_test_certs.sh&lt;BR /&gt;bash: cd: yangsuite/docker/: No such file or directory&lt;BR /&gt;bash: ./gen_test_certs.sh: No such file or directory&lt;BR /&gt;[root@localhost yangsuite]# docker-compose up&lt;BR /&gt;ERROR: Couldn't find env file: /yangsuite/yangsuite/docker/yangsuite/setup.env&lt;BR /&gt;[root@localhost yangsuite]# &lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 02:21:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/4996517#M3446</guid>
      <dc:creator>shuangli</dc:creator>
      <dc:date>2024-01-15T02:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with YANG Suite</title>
      <link>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/4996627#M3447</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/394718"&gt;@shuangli&lt;/a&gt;&amp;nbsp;- There is a new startup script for Docker:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;git clone https://github.com/CiscoDevNet/yangsuite
cd yangsuite/docker/ ; bash ./start_yang_suite.sh&lt;/LI-CODE&gt;
&lt;P&gt;It's also documented on Github:&amp;nbsp;&lt;A href="https://github.com/CiscoDevNet/yangsuite/tree/main" target="_blank"&gt;https://github.com/CiscoDevNet/yangsuite/tree/main&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;HTH&lt;BR /&gt;Marcel&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 09:12:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/4996627#M3447</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2024-01-15T09:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with YANG Suite</title>
      <link>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/5019817#M3469</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a similar issue to&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/394718"&gt;@shuangli&lt;/a&gt;&amp;nbsp;.&amp;nbsp; It feels like I'm missing something fundamental like an environment path setting or something similar.&lt;/P&gt;&lt;P&gt;No matter what platform I install on I cant get the yangsuite command to be recognised as though it isn't installed correctly.&amp;nbsp; I have tried&amp;nbsp; Ubuntu 22.04/20.04 VMs both docker and pip installs, windows the same pip/WSL2 or docker and brew for MacOS.&lt;/P&gt;&lt;P&gt;The docker error is as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1

# Copyright 2022 Cisco Systems, Inc
2


3

FROM ubuntu:20.04
4


5

ENV DOCKER_RUN  true
6


7

ARG PY=python3
8

ARG PY_VER=3.8
9

ARG YS_DIST=/usr/local/lib/python${PY_VER}/dist-packages/yangsuite/
10

ARG YS_SETTINGS=${YS_DIST}/settings/
11


12

# Postgres requires timezone to be specified at run time
13

RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime &amp;amp;&amp;amp; echo $CONTAINER_TIMEZONE &amp;gt; /etc/timezone
14


15

# Install required packages and remove the apt packages cache when done
16

RUN apt-get update &amp;amp;&amp;amp; \
17

    apt-get install -y \
18

        git \
19

        software-properties-common \
20

        postgresql \
21

        openssh-client \
22

        iputils-ping \
23

        python3.8 \
24

        python3-pip \
25

        gcc \
26

        libffi-dev \
27

        sqlite3 \
28

        vim \
29

        snmp \
30

        sendmail \
31

        &amp;amp;&amp;amp; \
32

    apt-get clean &amp;amp;&amp;amp; \
33

    rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/*
34


35

# Run the rest of the commands as the ``postgres`` user created by the ``postgres`` package when it was ``apt-get installed``
36

# USER postgres
37


38

# Create a PostgreSQL role named ``docker`` with ``docker`` as the password and
39

# then create a database `docker` owned by the ``docker`` role.
40

# Note: here we use ``&amp;amp;&amp;amp;\`` to run commands one after the other - the ``\``
41

#       allows the RUN command to span multiple lines.
42

# RUN   /etc/init.d/postgresql start &amp;amp;&amp;amp;\
43

44

#     createdb -O ysadmin yangsuite_db
45


46

RUN mkdir -p /yangsuite/uwsgi
47

COPY uwsgi.ini /yangsuite/
48

COPY migrate_and_start.sh /yangsuite/
49

RUN chmod +x /yangsuite/migrate_and_start.sh
50

RUN pip3 install --upgrade pip
51

RUN pip3 install --upgrade setuptools wheel uwsgi
52


53

# For PostgresSQL
54

# RUN  pip3 install --upgrade psycopg2-binary==2.8.6 tzdata
55


56

# Installing YANG Suite
57

RUN pip3 install --upgrade --no-cache yangsuite
58


59

# Installing YANG Suite optional free plugins
60

RUN pip3 install --upgrade --no-cache \
61

    yangsuite-grpc-telemetry \
62

    yangsuite-coverage \
63

    yangsuite-gnmi \
64

    yangsuite-restconf
65


66

# Uncomment to add another pypi repository to search for here
67

#
68

# ARG PIP_EXTRA_URL=https://private.pypi.com/simple
69

# RUN pip3 install --upgrade --no-cache --extra-index-url=${PIP_EXTRA_URL}  private_lib
70


71

# Uncomment to install optional plugin or replacement wheels
72

#
73

# COPY *.whl /yangsuite/
74

# RUN pip3 install --upgrade --no-cache /yangsuite/*.whl
75


76

COPY production.py ${YS_SETTINGS}
77

COPY wsgi.py ${YS_DIST}
78

RUN mkdir /ys-data
79

RUN mkdir /ys-static
80


81

RUN yangsuite --save-settings --configure-only \
82

    --allowed-hosts localhost \
83

    --static-root /ys-static \
84

    --data-path /ys-data \
85

    --settings yangsuite.settings.production
/bin/sh: 1: yangsuite: not found

86


87

# For PostgresSQL
88

# CMD service postgresql start
89


90

CMD /etc/init.d/sendmail start
91&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i run the python command from a venv i get the same:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(.venv) xxx@xxx-wks:~/testing/yangsuite$ yangsuite
yangsuite: command not found
(.venv) xxx@xxx-wks:~/testing/yangsuite$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(.venv) xxx@xxx-wks:~/testing/yangsuite/.venv$ cd lib/python3.10/site-packages/
(.venv) xxx@xxx-wks:~/testing/yangsuite/.venv/lib/python3.10/site-packages$ ls
Automat-22.10.0.dist-info                      netmiko
Deprecated-1.2.14.dist-info                    netmiko-2.4.2.dist-info
Django-5.0.2.dist-info                         networkx
GitPython-3.1.42.dist-info                     networkx-3.2.1.dist-info
Jinja2-3.1.3.dist-info                         numpy
Markdown-3.5.2.dist-info                       numpy-1.24.4.dist-info
MarkupSafe-2.0.1.dist-info                     numpy.libs
OpenSSL                                        openpyxl
PyGithub-2.2.0.dist-info                       openpyxl-3.1.2.dist-info
PyJWT-2.8.0.dist-info                          ordered_set
PyNaCl-1.5.0.dist-info                         ordered_set-4.1.0.dist-info
PyYAML-6.0.1.dist-info                         packaging
XlsxWriter-3.1.9.dist-info                     packaging-23.2.dist-info
__pycache__                                    pandas
_cffi_backend.cpython-310-x86_64-linux-gnu.so  pandas-1.5.3.dist-info
_distutils_hack                                paramiko
_yaml                                          paramiko-2.12.0.dist-info
amqp                                           past
amqp-5.2.0.dist-info                           pexpect
appdirs-1.4.4.dist-info                        pexpect-4.9.0.dist-info
appdirs.py                                     pip
asgiref                                        pip-24.0.dist-info
asgiref-3.7.2.dist-info                        pkg_resources
async_timeout                                  prompt_toolkit
async_timeout-4.0.3.dist-info                  prompt_toolkit-3.0.43.dist-info
attr                                           protobuf-4.25.3.dist-info
attrs                                          ptyprocess
attrs-23.2.0.dist-info                         ptyprocess-0.7.0.dist-info
autobahn                                       pyOpenSSL-24.0.0.dist-info
autobahn-23.6.2.dist-info                      pyang
automat                                        pyang-2.6.0.dist-info
bcrypt                                         pyasn1
bcrypt-4.1.2.dist-info                         pyasn1-0.5.1.dist-info
beautifulsoup4-4.12.3.dist-info                pyasn1_modules
billiard                                       pyasn1_modules-0.3.0.dist-info
billiard-4.2.0.dist-info                       pycparser
bs4                                            pycparser-2.21.dist-info
celery                                         pyserial-3.5.dist-info
celery-5.3.6.dist-info                         python_dateutil-2.8.2.dist-info
certifi                                        python_dotenv-1.0.1.dist-info
certifi-2024.2.2.dist-info                     python_json_logger-2.0.7.dist-info
cffi                                           python_slugify-4.0.1.dist-info
cffi-1.16.0.dist-info                          pythonjsonlogger
channels                                       pytz
channels-4.0.0.dist-info                       pytz-2024.1.dist-info
channels_redis                                 redis
channels_redis-4.2.0.dist-info                 redis-5.0.1.dist-info
charset_normalizer                             regex
charset_normalizer-3.3.2.dist-info             regex-2023.12.25.dist-info
click                                          requests
click-8.1.7.dist-info                          requests-2.31.0.dist-info
click_didyoumean                               rest_framework
click_didyoumean-0.3.0.dist-info               scp-0.14.5.dist-info
click_plugins                                  scp.py
click_plugins-1.1.1.dist-info                  serial
click_repl                                     service_identity
click_repl-0.3.0.dist-info                     service_identity-24.1.0.dist-info
concurrent                                     setuptools
confusable_homoglyphs                          setuptools-69.1.0.dist-info
confusable_homoglyphs-3.3.1.dist-info          six-1.16.0.dist-info
constantly                                     six.py
constantly-23.10.4.dist-info                   slugify
corsheaders                                    sly
cryptography                                   sly-0.5.dist-info
cryptography-42.0.3.dist-info                  smmap
daphne                                         smmap-5.0.1.dist-info
daphne-4.1.0.dist-info                         soupsieve
dateutil                                       soupsieve-2.5.dist-info
deepdiff                                       sqlparse
deepdiff-4.0.7.dist-info                       sqlparse-0.4.4.dist-info
deprecated                                     testdata
distutils-precedence.pth                       text_unidecode
django                                         text_unidecode-1.3.dist-info
django_cors_headers-4.3.1.dist-info            textfsm
django_filter-23.5.dist-info                   textfsm-1.1.3.dist-info
django_filters                                 twisted
django_registration                            twisted-23.10.0.dist-info
django_registration-3.4.dist-info              txaio
djangorestframework-3.14.0.dist-info           txaio-23.1.1.dist-info
djproxy                                        typing_extensions-4.9.0.dist-info
djproxy-2.3.6.dist-info                        typing_extensions.py
docker                                         tzdata
docker-4.4.4.dist-info                         tzdata-2024.1.dist-info
docutils                                       urllib3
docutils-0.20.1.dist-info                      urllib3-1.26.18.dist-info
dotenv                                         vine
elastic_transport                              vine-5.1.0.dist-info
elastic_transport-8.12.0.dist-info             wcwidth
elasticsearch                                  wcwidth-0.2.13.dist-info
elasticsearch-7.17.9.dist-info                 websocket
et_xmlfile                                     websocket_client-1.7.0.dist-info
et_xmlfile-1.1.0.dist-info                     wheel
future                                         wheel-0.42.0.dist-info
future-0.18.3.dist-info                        whitenoise
futures-3.0.5.dist-info                        whitenoise-4.1.4.dist-info
git                                            wrapt
gitdb                                          wrapt-1.16.0.dist-info
gitdb-4.0.11.dist-info                         xeger
github                                         xeger-0.3.4.dist-info
google                                         xlsxwriter
grpc                                           yaml
grpcio-1.60.1.dist-info                        yamlordereddictloader-0.4.0.dist-info
hyperlink                                      yamlordereddictloader.py
hyperlink-21.0.0.dist-info                     yang
idna                                           yang.connector-24.1-py3.10-nspkg.pth
idna-3.6.dist-info                             yang.connector-24.1.dist-info
incremental                                    yangsuite
incremental-22.10.0.dist-info                  yangsuite-3.0.0.dist-info
jinja2                                         yangsuite_coverage-3.0.16.dist-info
jsonfield                                      yangsuite_devices-2.9.10.dist-info
jsonfield-3.1.0.dist-info                      yangsuite_filemanager-1.9.10.dist-info
jsonpickle                                     yangsuite_gnmi-2.7.13.dist-info
jsonpickle-3.0.2.dist-info                     yangsuite_grpc_telemetry-1.0.8.dist-info
jwt                                            yangsuite_netconf-1.17.25.dist-info
kombu                                          yangsuite_restconf-2.1.9.dist-info
kombu-5.3.5.dist-info                          yangsuite_yangtree-2.1.10.dist-info
libfuturize                                    yscoverage
libpasteurize                                  ysdevices
lxml                                           ysfilemanager
lxml-4.9.4.dist-info                           ysgnmi
markdown                                       ysgrpctelemetry
markupsafe                                     ysnetconf
msgpack                                        ysrestconf
msgpack-1.0.7.dist-info                        ysyangtree
nacl                                           zope
ncclient                                       zope.interface-6.2-py3.10-nspkg.pth
ncclient-0.6.15.dist-info                      zope.interface-6.2.dist-info
(.venv) xxx@xxx-wks:~/testing/yangsuite/.venv/lib/python3.10/site-packages$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 18:58:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/5019817#M3469</guid>
      <dc:creator>gavid</dc:creator>
      <dc:date>2024-02-18T18:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting started with YANG Suite</title>
      <link>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/5032726#M3476</link>
      <description>&lt;P&gt;This works now with the PIP package update to 3.0.2, with version 3.0.1 when installing the plugin "yangsuite-coverage" as per the github instructions it removed the yangsuite application.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 16:41:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/tools/getting-started-with-yang-suite/m-p/5032726#M3476</guid>
      <dc:creator>gavid</dc:creator>
      <dc:date>2024-03-02T16:41:39Z</dc:date>
    </item>
  </channel>
</rss>

