Print a warning if current py version < 3.10

This commit is contained in:
Richard Beales
2023-04-19 18:05:56 +01:00
parent 4ba46307f7
commit 0400d72824

View File

@@ -70,6 +70,7 @@ def main(
"""
# Put imports inside function to avoid importing everything when starting the CLI
import logging
import sys
from colorama import Fore
@@ -113,6 +114,15 @@ def main(
f"You are running on `{git_branch}` branch "
"- this is not a supported branch.",
)
if sys.version_info < (3, 10):
logger.typewriter_log(
"WARNING: ",
Fore.RED,
"You are running on an older version of Python. "
"Some people have observed problems with certain "
"parts of Auto-GPT with this version. "
"Please consider upgrading to Python 3.10 or higher.",
)
system_prompt = construct_prompt()
# print(prompt)
# Initialize variables