Giter Site home page Giter Site logo

Comments (7)

ecorban avatar ecorban commented on August 21, 2024

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.

armartirosyan avatar armartirosyan commented on August 21, 2024

Eddie,

Please use below steps to fix the issues on the Ubuntu host and make adjustments on Windows machine.

  1. Open LXTerminal and navigate to /home/cisco/Code folder
  2. Remove the code-samples folder by using following command sudo rm -rf devnet-express-code-samples
  3. Clone the repository to Code folder by using git clone https://www.github.com/CiscoDevNet/devnet-express-code-samples.git command
  4. 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/
  1. 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
  1. Remove .ngrok2 folder from user's home directory using sudo rm -rf .ngrok2/ command.

  2. Install flask module by using pip install flask and pip3 install flask commands

Please make following changes on the Windows machine as well.

  1. Open Notepad text editor and use Ctrl+O shortcut keys to open a file. Type git-pull.bat and click Open

image

  1. 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
  1. Open Use me as a Terminal terminal and install flask module by using pip install flask and pip3 install flask commands.

image

  1. Open Windows CMD and install flask using commands mentioned in step 3.

image

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.

ecorban avatar ecorban commented on August 21, 2024

hi armen. thanks for the capturing the information. all are updated from yesterday.

from devnet-express-dna-issues.

austinMarcos avatar austinMarcos commented on August 21, 2024

@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.

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.

yawming avatar yawming commented on August 21, 2024
  1. devnet-express/labs/06-dmi-05-mission/1.md @ line 28
    module06/lab05_mission need to change to LM-4602/05-mission

  2. 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
Traceback (most recent call last):
File "01_get_interface_stats.py", line 8, in
import xmltodict
ImportError: No module named 'xmltodict'
(mycode) cisco@ubuntu:
/devnet-express-code-samples/LM-4602/05-mission$ pip3 install xmltodict
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
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:
/devnet-express-code-samples/LM-4602/05-mission$ pip install --upgrade pip
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.

austinMarcos avatar austinMarcos commented on August 21, 2024

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.

austinMarcos avatar austinMarcos commented on August 21, 2024

Delivered as part of v2.1.

from devnet-express-dna-issues.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.