Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Print a warning if current py version < 3.10

Richard Beales0400d72824ec
diff --git a/autogpt/cli.py b/autogpt/cli.py
index a2e99cb421..6fe9ecbb0e 100644
--- a/autogpt/cli.py
+++ b/autogpt/cli.py
@@ -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