Verify if sonic_platform installed =================================== root@sonic:~# pip list DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Package Version --------------------- --------------- bitarray 0.8.1 certifi 2019.6.16 chardet 3.0.4 click 6.7 click-default-group 1.2 colorama 0.3.7 docker-py 1.6.0 idna 2.8 ipaddr 2.2.0 Jinja2 2.10.1 lxml 3.7.1 MarkupSafe 1.1.1 natsort 4.0.3 netaddr 0.7.19 netifaces 0.10.7 pexpect 4.7.0 pip 19.2.1 ptyprocess 0.6.0 pyang 2.0.1 pyangbind 0.6.0 python-apt 1.4.0b3 PyYAML 3.12 redis 2.10.6 redis-dump-load 1.1 requests 2.22.0 scapy unknown.version setuptools 33.1.1 six 1.12.0 sonic-config-engine 1.0 sonic-platform 1.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< sonic-platform-common 1.0 sonic-utilities 1.2 swsssdk 2.0.1 tabulate 0.8.2 urllib3 1.25.3 websocket-client 0.56.0 Inside Docker ================ root@sonic:~# !do docker exec -it pmon bash root@sonic:/# root@sonic:/# root@sonic:/# pip list DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Package Version --------------------- ------- bitarray 0.8.1 ipaddr 2.2.0 Jinja2 2.10.1 lxml 3.4.0 MarkupSafe 1.1.1 meld3 1.0.0 natsort 3.5.1 netaddr 0.7.19 pip 19.2.1 pyang 2.0.1 pyangbind 0.6.0 PyYAML 3.11 redis 2.10.6 sonic-config-engine 1.0 sonic-ledd 1.1 sonic-platform 1.0 <<<<<<<<<<<<<<<<<<<<<<<<<<<<< sonic-platform-common 1.0 sonic-xcvrd 1.0 supervisor 3.3.3 swsssdk 2.0.1 root@sonic:/#