For the first part of the lab I was able to install and run pyang on my pi using the following commands:
$ sudo apt install libxml2-dev libxslt1-dev
$ sudo pip3 install -U lxml pyang
$ cp ~/iot/lesson9/intrusiondetection.yang ~/demo
$ cd ~/demo
$ cat intrusiondetection.yang
$ pyang -f yin -o intrusiondetection.yin intrusiondetection.yang
$ cat intrusiondetection.yin
$ pyang -f uml -o intrusiondetection.uml intrusiondetection.yang --uml-no=stereotypes,annotation,typedef
$ cat intrusiondetection.uml
The image below is the result of running these commands:
Next I was able to successfully install -U plantuml onto my pi and run the intrusiondetction.uml program which you can see below:
Lastly for this part, we were given commands to run and install gimp onto out pi. When I ran the command: $ pinta intrusiondetection.png it produced this pop up which as you can see it is creating the intrusion detection png.
Then with running the last two commands, it then launched the actual gimp software seen below:
$ gimp -a intrusiondetection.png
For this part of the lab I actually ran into a lot of issues and errors. I made the IBM Quantum Composer account and was able to access it, From there I began running the given commands and I was successfully able to run all of these:
$ sudo sed -i 's/CONF_SWAPSIZE=100/CONF_SWAPSIZE=1024/' /etc/dphys-swapfile
$ sudo /etc/init.d/dphys-swapfile stop
$ sudo /etc/init.d/dphys-swapfile start
$ pip3 install setuptools-rust
$ curl -o get_rustup.sh -s https://sh.rustup.rs
$ sh ./get_rustup.sh -y
$ source ~/.cargo/env
$ pip3 install --prefer-binary retworkx
$ sudo apt -y install cmake libatlas-base-dev git
$ git clone https://github.com/sunqm/libcint.git
$ mkdir -p libcint/build && cd libcint/build
But I then ran into an issue running the next line of code ( $ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/ ..) It gave me an error that the path there did not contain the file CMakeLists.txt. I trouble shooted this error for over two hours trying to solve it and tried every solution on stack over flow and other trouble shooting websites but none of them worked. I decided to try and continue without it but then I received further errors that I tried to again tried to work through but with no avail. The image below is a picture of the errors I received when running the following commands:
$ sudo make install
$ cd
$ sudo pip3 install --prefer-binary pyscf cython
$ sudo pip3 install --prefer-binary 'qiskit[visualization]==0.23.1'
$ python3
>>> from qiskit import IBMQ