OpenInterpreter / open-interpreter

A natural language interface for computers
http://openinterpreter.com/
GNU Affero General Public License v3.0
50.58k stars 4.41k forks source link

Installation fails without specifying full Python version in one-liner `oi-mac-installer.sh` #1256

Open i-hodl opened 1 month ago

i-hodl commented 1 month ago

Describe the bug

Title: Installation fails without specifying full Python version in oi-mac-installer.sh

Body:

Issue Description: I know that this script is experimental, and i'm looking to help make it more functional. When running the oi-mac-installer.sh script for Open Interpreter, the installation of Python fails unless the full version number, including the patch version (e.g., 3.11.0 instead of 3.11), is explicitly specified in the script. This requirement isn't documented, which might lead to installation failures for users who attempt to modify the script without knowing the exact version requirement.

Steps to Reproduce:

  1. Run the oi-mac-installer.sh script with a Python version specified as 3.11 instead of 3.11.0.
  2. Observe that the installation fails because the full version wasn't specified.

Expected Behavior: The script should either handle minor version references automatically by determining the latest patch version, or it should clearly document the need to specify the full version number including the patch.

Actual Behavior: The script fails to install Python unless the version number includes the patch number (e.g., 3.11.0).

Suggested Fix: append .0 to the version of python in mac install script.

Additional Information:

This update should ensure that your report is precise and clearly directs the maintainers to the script in question.

Reproduce

Run the oneliner on macosx (I'm running a silicon device).

The install will fail once the script tries to install python version 3.11

Expected behavior

This fix would allow the script to fully run and install open-interpreter.

Screenshots

No response

Open Interpreter version

n/a as this is the script to install open-interpreter

Python version

3.11.0

Operating System name and version

macOS 14.4.1

Additional context

No response