From 1461a80b8da47b2d3cc9985e4ebb4e8f4d3c80b1 Mon Sep 17 00:00:00 2001 From: Edi <111094955+edilsonclodoalves@users.noreply.github.com> Date: Mon, 19 Jun 2023 00:36:24 -0300 Subject: [PATCH] Fix error install ishare2-gui - Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ocaa6w_r/MarkupSafe/ Changed python dependences for python3 in ishare2 gui instalation, and upgrade pip version in $ISHARE2_GUI_DIR/venv/bin/pip install --upgrade pip --- ishare2 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ishare2 b/ishare2 index c1fb7f3..ee753b6 100755 --- a/ishare2 +++ b/ishare2 @@ -1554,7 +1554,7 @@ function ishare2_gui_install() { fi # Make sure venv is installed - apt-get install -y python3-venv + apt-get install -y python3.8-venv if [[ $? -ne 0 ]]; then echo "${RED} [-] Error installing venv. ${NO_COLOR}" echo "${RED} [-] Please install venv manually and try again. ${NO_COLOR}" @@ -1563,15 +1563,19 @@ function ishare2_gui_install() { fi # Make venv for ishare2 GUI - python3 -m venv $ISHARE2_GUI_DIR/venv + python3.8 -m venv $ISHARE2_GUI_DIR/venv if [[ $? -ne 0 ]]; then echo "${RED} [-] Error creating venv for ishare2 GUI. ${NO_COLOR}" echo "${RED} [-] Please read previous logs for troubleshooting. ${NO_COLOR}" exit 1 fi + + #Upgrade PIP + $ISHARE2_GUI_DIR/venv/bin/pip install --upgrade pip + # Install requirements - $ISHARE2_GUI_DIR/venv/bin/pip install -r $ISHARE2_GUI_DIR/requirements.txt + $ISHARE2_GUI_DIR/venv/bin/pip3 install -r $ISHARE2_GUI_DIR/requirements.txt if [[ $? -ne 0 ]]; then echo "${RED} [-] Error installing ishare2 GUI requirements. ${NO_COLOR}" echo "${RED} [-] Please read previous logs for troubleshooting. ${NO_COLOR}"