VOLTTRON: `python3 bootstrap.py` Does not install all packages

Question:

I am in the process of installing VOLTTRON on my raspberry Pi. I came across this VOLTTON installation video and followed the same steps. But my installation is running into some issues:

On a Linux machine, as shown in the installation video: It installed all packages without any errors and I observed seven bars (showing the installation progress)
enter image description here

On my Raspberry Pi 4 Model B machine: installed few packages initially and then it stops with errors.
enter image description here

I need your help to understand what went wrong. I repeated the installation 2 to 3 times and I don’t know if error is to with this. But there is one error message I clearly see is ERROR: you must give atleast one requirement to install. I don’t know what it means and what additional input I have to give? I appreciate your help. Thanks

Update: More information on my Raspberry Pi 4 OS

enter image description here

Python3 version:
enter image description here

Result of installing pre-required packages:
enter image description here
enter image description here

I tried installing VOLLTRON on another Raspberry Pi 4 Model B (2 GB RAM). Unlike the previous one, I did not repeat the installation instructions and install any unnecessary packages. Initially, two packages seem to have been installed without any errors. How do I know? Well, I see two bars (below screenshot). On the video demo, I observed seven bars, meaning that for some reason, five packages failed to install on my RPi board. Then it ended with some errors with text in red color. Screenshot:
enter image description here

Asked By: Mainland

||

Answers:

I just did a fresh VOLTTRON install on RPI4 but it was running Raspbian version 11. I had no issues. I guess make sure you have python3-dev, python3-venv, and build-essential installed via apt prior to bootstrap.

Answered By: rlutes

Based on the accepted answer, I wrote Raspberry PI OS 11 onto a new MicroSD, started and installed it on a spare RPi 3 Model B (1 GB RAM). The OS started well and I had some hiccups due to time mismatch and sync issues. Sorted them out. Also, I installed VOLTTRON successfully without any issues:
I am posting here complete installation steps with screenshots, so this helps any beginner on how to install VOLLTRON on a RPi board:

Reference:
https://volttron.readthedocs.io/en/develop/introduction/platform-install.html
Video: Video link

Step0: Some pre-checks before you even proceed to the VOLLTRON. Check the OS version and Python (should be > 3.6)

enter image description here

Step1: Install prerequisites. Execute the following one by one.

sudo apt-get update 
sudo apt-get full-upgrade 
sudo apt-get install build-essential python3-dev python3-venv openssl libssl-dev libevent-dev git
sudo apt-get install libffi-dev

enter image description here

Step2: Clone VOLTTRON code. The voltron will download into the home directory.

git clone https://github.com/VOLTTRON/volttron

enter image description here

Step3: Set up virtual environment. Just go for ZMQ bus installation and this is easier and faster to install. I did not install RabbitMQ.

cd volttron
python3 bootstrap.py # Coffee is a good to have now. It takes good time. 
source env/bin/activate # activate the volttron platform 

enter image description here

Step4: Test the VOLLTRON.

# start the volttron
./start-volttron
# vctl stands for volttron control; install an agent (listens to user and controls something) by giving a tag name
vctl install examples/ListenerAgent --tag listener
# now make the agent start/run
vctl start --tag listener
# check the status of listeners 
vctl status
# check the volttron log files
tail -f volttron.log
# to stop the volttron
./stop-volttron
# to deactivate the volttron platform
deactivate

enter image description here
enter image description here

Things that did not work or impact the installation:
There are couple of things that did not work as explained in the installation video.

# Each instance to have a voltton home
VOLTTRON_HOME = /opt/volttron/.volttron2 ./start-volttron

Result:
enter image description here
In the above code, the path is directing to a directory or folder called volttron in the opt. I searched and found no directory named volttron in opt. The only location where I have the volttron directory located in my machine is on the very directory cloned from the github volttron account.
enter image description here

Answered By: Mainland