mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
fix
This commit is contained in:
parent
841927fea3
commit
8f060d0376
@ -804,12 +804,13 @@ else
|
|||||||
pip3 install dbus_next zstandard
|
pip3 install dbus_next zstandard
|
||||||
fi
|
fi
|
||||||
### additional python pip dependencies for kvmd 3.238 and higher
|
### additional python pip dependencies for kvmd 3.238 and higher
|
||||||
|
pip3 install gpiod
|
||||||
case $PYTHONVER in
|
case $PYTHONVER in
|
||||||
3.10*|3.[987]*)
|
3.10*|3.[987]*)
|
||||||
pip3 install async-lru 2> /dev/null
|
pip3 install async-lru 2> /dev/null
|
||||||
### Fix for kvmd 3.291 -- only applies to python 3.10 ###
|
### Fix for kvmd 3.291 -- only applies to python 3.10 ###
|
||||||
sed -i -e 's|gpiod.EdgeEvent|gpiod.LineEvent|g' /usr/lib/python3/dist-packages/kvmd/aiogp.py
|
#sed -i -e 's|gpiod.EdgeEvent|gpiod.LineEvent|g' /usr/lib/python3/dist-packages/kvmd/aiogp.py
|
||||||
sed -i -e 's|gpiod.line,|gpiod.Line,|g' /usr/lib/python3/dist-packages/kvmd/aiogp.py
|
#sed -i -e 's|gpiod.line,|gpiod.Line,|g' /usr/lib/python3/dist-packages/kvmd/aiogp.py
|
||||||
;;
|
;;
|
||||||
3.11*)
|
3.11*)
|
||||||
pip3 install async-lru --break-system-packages 2> /dev/null
|
pip3 install async-lru --break-system-packages 2> /dev/null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user