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

"import request" on NX-OS -> Error Message

rhanisch_01
Level 1
Level 1

Hi all,

can anybody help me please ? Thats my first steps with pyton on nx-os.

When i insert the command "import request", to load the module, i become this error Message:

 

9kv_lab# python Python 2.7.11 (default, Feb 26 2018, 03:34:16)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import request
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named request

 

The N9Kv runs on "virtual box" with Linux Mint.

Is it possible to install the module on the N9Kv ?

 

Rgds

 

2 Replies 2

rhanisch_01
Level 1
Level 1

its running ....

 

yawming
Cisco Employee
Cisco Employee

1. I think module name is "requests"

2. "pip list" to see if it's there if not, won't hurt to try pip install.