cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
102
Views
0
Helpful
2
Replies
Highlighted
Beginner

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

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

 

Everyone's tags (1)
2 REPLIES 2
Beginner

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

its running ....

 

Cisco Employee

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

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.

Content for Community-Ad
July's Community Spotlight Awards
This widget could not be displayed.