11-27-2020 08:00 AM
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.
11-27-2020 11:43 PM
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
11-30-2020 05:45 AM
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.
11-30-2020 10:25 AM
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 ?
11-30-2020 11:07 AM
@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.
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