Comments (7)
i will work on this issue with armen and update an share i have running on dcloud in SJ. This will need an revision and need to be re-published.
from devnet-express-dna-issues.
Eddie,
Please use below steps to fix the issues on the Ubuntu host and make adjustments on Windows machine.
- Open LXTerminal and navigate to
/home/cisco/Code
folder - Remove the code-samples folder by using following command
sudo rm -rf devnet-express-code-samples
- Clone the repository to
Code
folder by usinggit clone https://www.github.com/CiscoDevNet/devnet-express-code-samples.git
command - After cloning, the folder structure should look like this
(mycode) cisco@ubuntu:~/Code$ pwd
/home/cisco/Code
(mycode) cisco@ubuntu:~/Code$ ll
total 20
drwxrwxr-x 5 cisco cisco 4096 May 18 18:09 ./
drwxr-xr-x 26 cisco cisco 4096 May 18 18:04 ../
drwxr-xr-x 13 cisco cisco 4096 May 18 18:09 devnet-express-code-samples/
drwxrwxr-x 7 cisco cisco 4096 Oct 14 2016 mycode/
drwxrwxr-x 6 cisco cisco 4096 Oct 17 2016 virl-utils/
- Replace contents of the
rc.local
file located in/etc
folder with below script
USER=cisco
BASHRC=/home/$USER/.bashrc
CODE=/home/$USER/Code/devnet-express-code-samples
cp /home/$USER/.bashrc.bak /home/$USER/.bashrc
if cd $CODE && git pull; then
logger "git pull succeeded"
echo 'echo -e "Code-Samples were successfully updated.\\n"' >>$BASHRC
echo 'echo -e "Navigate to '$CODE' and start coding.\\n"' >>$BASHRC
else
logger "git pull failed. Make a fresh clone of a repository"
rm -rf $CODE
cd /home/$USER/Code && git clone https://www.github.com/CiscoDevNet/devnet-express-code-samples.git
echo 'echo -e "Code-Samples were successfully updated.\\n"' >>$BASHRC
echo 'echo -e "Navigate to '$CODE' and start coding.\\n"' >>$BASHRC
fi
chown -R cisco:cisco $CODE
exit 0
-
Remove
.ngrok2
folder from user's home directory usingsudo rm -rf .ngrok2/
command. -
Install
flask
module by usingpip install flask
andpip3 install flask
commands
Please make following changes on the Windows machine as well.
- Open Notepad text editor and use Ctrl+O shortcut keys to open a file. Type
git-pull.bat
and click Open
- Change the contents of the file with below commands
@echo off
cd "C:\Users\Administrator.WKST1\Code\" && rmdir /s /q devnet-express-code-samples && git clone https://github.com/CiscoDevNet/devnet-express-code-samples.git >> pull_log.txt
- Open
Use me as a Terminal
terminal and installflask
module by usingpip install flask
andpip3 install flask
commands.
- Open Windows CMD and install flask using commands mentioned in step 3.
Note: The difference between steps 3 and 4 is virtual environment (venv) and global site-packages directory for python
Above steps should fix all issues we have noticed with Ubuntu and Windows machines.
Please let me know if you have any questions.
Thanks,
Armen
from devnet-express-dna-issues.
hi armen. thanks for the capturing the information. all are updated from yesterday.
from devnet-express-dna-issues.
@yawming can you test the following 2 missions from the DNA track to see if the pod image is now working. Make sure that the 3 issues reported above are fixed.
- Test the APIC-EM Mission:
- Test the NETCONF Mission
You might need to check out the pre-event setup to make sure you have access to the Ubuntu host in the dCloud pod: https://learninglabs.cisco.com/tracks/devnet-express-dna/00-pre-event-preparation/00-prep-01-prep-before-you-go/step/1
from devnet-express-dna-issues.
-
05-apic-04-mission - working fine
-
https://learninglabs.cisco.com/tracks/devnet-express-dna/dna-restconf-netconf-yang/06-dmi-05-mission/step/1 - couple of problems:
-
devnet-express/labs/06-dmi-05-mission/1.md @ line 28
module06/lab05_mission need to change to LM-4602/05-mission -
I ran script "01_get_interface_stats.py" in Ubuntu. Script itself is ok but got some environment issue - module not found.
(mycode) cisco@ubuntu:/devnet-express-code-samples/LM-4602/05-mission$ python3 01_get_interface_stats.py/devnet-express-code-samples/LM-4602/05-mission$ pip3 install xmltodict
Traceback (most recent call last):
File "01_get_interface_stats.py", line 8, in
import xmltodict
ImportError: No module named 'xmltodict'
(mycode) cisco@ubuntu:
Collecting xmltodict
Downloading xmltodict-0.11.0-py2.py3-none-any.whl
Installing collected packages: xmltodict
Successfully installed xmltodict-0.11.0
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(mycode) cisco@ubuntu:/devnet-express-code-samples/LM-4602/05-mission$ pip install xmltodict/devnet-express-code-samples/LM-4602/05-mission$ pip install --upgrade pip
Requirement already satisfied (use --upgrade to upgrade): xmltodict in /home/cisco/Code/mycode/lib/python3.4/site-packages
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(mycode) cisco@ubuntu:
Collecting pip
Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100%
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Successfully installed pip-9.0.1
from devnet-express-dna-issues.
Corrected item 1 from comment above:
devnet-express/labs/06-dmi-05-mission/1.md @ line 28
module06/lab05_mission need to change to LM-4602/05-mission
I published the updated mission to stage and prod.
from devnet-express-dna-issues.
Delivered as part of v2.1.
from devnet-express-dna-issues.
Related Issues (20)
- Python 2 is Sunset, its installation should be removed from the Content Guide HOT 5
- Using the CentOS workstation in dcloud/Devnet Express, pip install -r requirements.txt fails ! HOT 15
- Postman instructions are not clear HOT 2
- Step https://developer.cisco.com/learning/devnet-express/dnav4-track/dnav4-intro-dnac/dne-dnac-auth/step/2 has wrong import HOT 2
- Instructions not clear enough in https://developer.cisco.com/learning/devnet-express/dnav4-track/dnav4-intro-dnac/dne-dnac-path-trace/step/2 HOT 2
- Mission in dnav4 is hard to follow HOT 1
- dnac_config.py doesn't exist HOT 1
- Meraki Lab not well documented preventing attendees complete the lab HOT 1
- DNEv4 Confusing screenshots in DNA Modul HOT 3
- DNEv4 10.10.22.74 ipaddress is not available HOT 1
- DNEv4 confusing query param description in DNAC Modul HOT 1
- DNAv4 DNAC Mission Todo1 command_runner ios_cmd not clear
- verify.py errors out and doesnt complete. Needs better error handling to explain what problem is HOT 2
- Rebooting a crashed Pod HOT 2
- Login to Webex failed using cco account HOT 1
- intro-dnac/05_Template_Prg/dnac_utils.py uncomment line 38
- Missing Sydney-Deployment Template Projects on sandboxdnac2.cisco.com
- No Postman Collection/Environment for PathTrace
- No ASR part of sandboxdnac2.cisco.com
- Ubuntu Setup Guide for DNAv3 has incorrect command
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devnet-express-dna-issues.