Another Python library that OpenSpades depends on became incompatible

This commit is contained in:
DeathByDenim 2022-03-18 21:08:18 -04:00
parent c9ed41e700
commit c31ce0216d
Signed by: DeathByDenim
GPG Key ID: 4A475283D925365B
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ fi
virtualenv -p python3 /opt/openspades/env
source /opt/openspades/env/bin/activate
pip install -U piqueserver
pip install "twisted<21.0.0" # Twisted 22 removed getPage that piqueserver depends on for 1.0.0
pip install "twisted<21.0.0" # Twisted 22 removed getPage that piqueserver 1.0.0 depends on
pip install "MarkupSafe==2.0.1" # MarkupSafe removed soft_unicode that piqueserver 1.0.0 depends on
sudo -u ${systemuser} /opt/openspades/env/bin/piqueserver --copy-config
sudo -u ${systemuser} sed -i ${systemuserhome}/.config/piqueserver/config.toml -e s/"piqueserver instance"/"onFOSS"/ -e s/"#admin = \[\"adminpass1\", \"adminpass2\"\]"/"admin = \[\"${systempassword}\"\]"/
deactivate