The installation follows the documentation but requires slight change,

# default Python 3.6
module load python

virtualenv py36
source py36/bin/activate
git clone
cd aegis

# pip3 install -r requirements.txt
cat requirements.txt | \
grep -v MarkupSafe | \
xargs pip3 install

# setup
export PROJECT_PATH=/home/$USER/aegis/data
# wget -qO- | tar -xvzf local_20180719.tar.gz
cd -
python3 --lite --port 5001 --folder ${PROJECT_PATH} &
python3 --port 5002 --folder ${PROJECT_PATH} &
firefox http://localhost:5002 &

as it appears that MarkupSafe could not be installed according to the predefined order.