sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

sonic-cli not working with python not found error

Open dinosn opened this issue 4 years ago • 1 comments

Description

From the latest github repo, and following the guide on sonic build under ubuntu 16.04 the result will come with the following issue

admin@sonic:~$ which python
/usr/bin/python
admin@sonic:~$ sonic-cli
sonic# show system
/tmp/klish.fifo.79.Reptjb: 1: /tmp/klish.fifo.79.Reptjb: python: not found
sonic#

Output of show version

SONiC Software Version: SONiC.master.0-dirty-20210814.105059
Distribution: Debian 10.10
Kernel: 4.19.0-12-2-amd64
Build commit: 3ad4096ea
Build date: Sat Aug 14 16:52:03 UTC 2021
Built by: user@Sonic

Platform: x86_64-cel_seastone-r0
HwSKU: Seastone-DX010
ASIC: broadcom
ASIC Count: 1
Serial Number: SSC36SR09020017
Model Number: R0872-F0004-01
Hardware Revision: N/A
Uptime: 12:28:36 up 10:22,  1 user,  load average: 0.34, 0.52, 0.73

dinosn avatar Aug 15 '21 05:08 dinosn

Have the same issue. I tried to symlink "ln python3 python" and it start throwing python syntax errors. I guess wrong version of python.

andres-moya avatar Nov 01 '24 21:11 andres-moya