AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Adds check for Python 3.10 and print error message if required version not detected.

Open amokduke opened this issue 2 years ago • 5 comments

Background

This pull request adds a check for Python 3.10 and above before running the Auto GPT script. This change ensures that the script only runs in supported Python versions, improving stability and reliability.

Changes

The code has been modified to check for Python 3.10 and above before running the Auto GPT script. If the required version of Python is not detected, an error message is printed to the console.

Documentation

The changes have been documented with in-code comments to explain the purpose and functionality of the added code.

Test Plan

The changes have been tested on a local machine running Python 3.10 and above. The script was also tested with lower versions of Python to ensure that the error message is displayed when attempting to run Auto GPT.

PR Quality Checklist

  • [x] My pull request is atomic and focuses on a single change.
  • [x] I have thoroughly tested my changes with multiple different prompts.
  • [x] I have considered potential risks and mitigations for my changes.
  • [x] I have documented my changes clearly and comprehensively.
  • [x] I have not snuck in any "extra" small tweaks changes.
  • [] I have added new test cases to cover the added functionality. <= Not Applicable

amokduke avatar Apr 30 '23 21:04 amokduke

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview May 16, 2023 3:05pm

vercel[bot] avatar Apr 30 '23 21:04 vercel[bot]

Note that this is more important than people may think, since python 3.10 is now really being required - until yesterday the stable branch would still work with 3.8 (which still is the default on some distros), but today's changes require at least 3.10+

Boostrix avatar May 02 '23 17:05 Boostrix

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar May 14 '23 20:05 github-actions[bot]

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

github-actions[bot] avatar May 15 '23 12:05 github-actions[bot]

Codecov Report

Patch and project coverage have no change.

Comparison is base (f424fac) 62.75% compared to head (82347b9) 62.75%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3598   +/-   ##
=======================================
  Coverage   62.75%   62.75%           
=======================================
  Files          73       73           
  Lines        3367     3367           
  Branches      487      487           
=======================================
  Hits         2113     2113           
  Misses       1107     1107           
  Partials      147      147           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar May 15 '23 12:05 codecov[bot]