Skip to content

Commit

Permalink
Updated run script to check for Python 3.10 and above, and provide in…
Browse files Browse the repository at this point in the history
…formative error messages for unsupported versions.
  • Loading branch information
amokduke committed Apr 30, 2023
1 parent 91537b0 commit a4ff4ff
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/bin/bash
python scripts/check_requirements.py requirements.txt
if [ $? -eq 1 ]
then
echo Installing missing packages...
pip install -r requirements.txt
if python3 -c "import sys; sys.exit(sys.version_info < (3, 10))"; then
python3 scripts/check_requirements.py requirements.txt
if [ $? -eq 1 ]
then
echo Installing missing packages...
pip3 install -r requirements.txt
fi
python3 -m autogpt $@
read -p "Press any key to continue..."
else
echo "Python 3.10 or higher is required to run Auto GPT."
fi
python -m autogpt $@
read -p "Press any key to continue..."

0 comments on commit a4ff4ff

Please sign in to comment.