cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1999
Views
0
Helpful
2
Replies

CSR1000v 17.3.4a azure agent install

enrico.corvino
Level 1
Level 1

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

  Using cached https://files.pythonhosted.org/packages/ea/59/fe4e14d870cb161f4515f004262c7d203b5519d4de7996d87d527182cbe2/csr_azure_guestshell-1.1.4.tar.gz

    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

  Using cached https://files.pythonhosted.org/packages/ea/59/fe4e14d870cb161f4515f004262c7d203b5519d4de7996d87d527182cbe2/csr_azure_guestshell-1.1.4.tar.gz

    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?

2 Replies 2

eleculier
Level 1
Level 1

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.

leonardo_neves
Level 1
Level 1

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