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.pyindex 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 CLIimport logging+ import sysfrom 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