cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
896
Views
10
Helpful
4
Replies

devnet intro to sd-wan is unusable

laurens77
Level 1
Level 1

https://developer.cisco.com/learning/modules/sd-wan/intro-sd-wan-rest-api/step/1

 

Unable to perform

python3.6 -m venv venv

source venv/bin/activate

pip install -r requirements.txt

 

https://developer.cisco.com/learning/modules/sd-wan/sd-wan-rest-api-postman/step/2

 

unable to import Cisco-Reservable-SD-WAN-Env.postman_environment.json and Cisco-Reservable-SD-WAN.postman_collection.json into postman.

 

I want to do the labs, yet i can't. Any info on how to resolve this would be appreciated.

4 Replies 4

omz
VIP Alumni
VIP Alumni

You are trying to create and activate a virtual environment from Python interpreter .. exit and try to create again from normal shell prompt $ or #. Not Python >>> prompt

python3.9 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

As @omz has noted, you need to do this from the shell/bash, not your Python repl.

 

Virtualenv is a tool that lets you create an isolated Python environment for your project. It creates an environment that has its own installation directories, that doesn’t share dependencies with other virtualenv environments (and optionally doesn’t access the globally installed dependencies either). You can even configure what version of Python you want to use for each individual environment. It's very much recommended to use virtualenv when dealing with Python applications.

 

You can follow this guide on how to build/set a developer environment here --> https://developer.cisco.com/learning-labs/setup/.

I am unsure of your issue here with Postman, as it seems you are importing the correct files into your Postman client. I would suggest following this learning lab here for this https://developer.cisco.com/learning/tracks/sd-wan_programmability/sd-wan/sd-wan-rest-api-postman/step/1

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Hi @bigevilbeard 

 

i have completed the setup lab you provided me with, i understand now the mistake i made with the /bash. However, i am still not able to import the json files into postman, and the https://icanhazdadjoke.com/ is returning a bad request error. 

My githubrepository is located under C:\GITHUB REPOSITORY; which contains the json files.

Any options i can still try in order to get this working ? 

@laurens77 i am sorry i do not understand the URL you have shared here? Once you have imported the two json files

 

Cisco-Reservable-SD-WAN-Env.postman_environment.json
Cisco-Reservable-SD-WAN.postman_collection.json

Into your Postman client, set the environment to be that of the devnet sandbox ""Cisco-Reservable-SD-WAN-Environment" and you can run this. I would suggest reviewing this learning lab for this I would suggest following this learning lab here for this https://developer.cisco.com/learning/tracks/sd-wan_programmability/sd-wan/sd-wan-rest-api-postman/step/1

 

Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io