11-16-2021 03:02 AM - edited 11-16-2021 03:09 AM
On a CSR100v 17.1 on azure we are able to install azure agent by the command "sudo pip install csr_azure_guestshell"
On a CSR100v 17.3.4a we get this error:
sudo pip install csr_azure_guestshell
sudo: pip: command not found
so we tried by:
sudo pip3 install csr_azure_guestshell
but we get this error:
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting csr_azure_guestshell
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/var/volatile/tmp/pip-build-76dezzdh/csr-azure-guestshell/setup.py", line 21
print "We are running in the postInstallCommand"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("We are running in the postInstallCommand")?
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /var/volatile/tmp/pip-build-76dezzdh/csr-azure-guestshell/
[guestshell@guestshell ~]$ sudo pip3 install csr_azure_guestshell
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting csr_azure_guestshell
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/var/volatile/tmp/pip-build-z6gh3bi9/csr-azure-guestshell/setup.py", line 21
print "We are running in the postInstallCommand"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("We are running in the postInstallCommand")?
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /var/volatile/tmp/pip-build-z6gh3bi9/csr-azure-guestshell/
any suggestion?
01-27-2022 01:14 AM
Hello Enrico,
Did you solve this issue?
csr_azure_guestshell package was made for Python2 but from IOS XE 17.3.1, GuestShell remove Python2 and use Python3 as the default...
Did not find any dev for Python3
Thanks in advance, best regards, Edouard.
12-27-2022 06:06 AM
Hi,
In my case I just installed the Python2.7 and installed csr_azure_guestshell using 2.7 version.
1st - Update your yum repo:
cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
2nd - Install Python2
sudo yum install python2
3rd - Install csr_azure_guestshell and fish.
sudo pip2 install csr_azure_guestshell
sudo python2 -m pip install fish
Check if the service is started, if not, start it.
sudo systemctl status waagent.service
sudo systemctl start waagent.service
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide