block / goose

Goose is a developer agent that operates from your command line to help you do the boring stuff.
https://block.github.io/goose/
Apache License 2.0
109 stars 17 forks source link

Installing fails with package hash error: `ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE` #41

Closed mercedesbunz closed 3 weeks ago

mercedesbunz commented 1 month ago

When following the README I am running into an error for

> pipx install goose-ai

ERROR

Fatal error from pip prevented installation. Full pip output in file:
    .../.local/pipx/logs/cmd_2024-09-04_08.55.26_pip_errors.log

pip seemed to fail to build package:
    goose-ai

Some possibly relevant errors from pip install:
    ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.

Error installing goose-ai.

The log says I should examine

goose-ai from https://files.pythonhosted.org/packages/16/f6/d317f780892148d7d5158075f9ac5c2c59566e9d73db92018766578383f1/goose_ai-0.8.6-py3-none-any.whl:

for which it expects a different hash.

My python skills are very limited and maybe this rings a bell and someone is able to assist 🙏

michaelneale commented 1 month ago

@mercedesbunz can you share more about your environment?

https://colab.research.google.com/drive/1lePeyy5695ZNuuVJIfwxd1YPx3sGMZIj?authuser=0#scrollTo=I0X291xDh3cI - I wasn't able to see it on my mac or that linux colab machine

michaelneale commented 1 month ago

hey @codefromthecrypt maybe you can try in your env?

michaelneale commented 1 month ago

@mercedesbunz (and great github username BTW!)

mercedesbunz commented 1 month ago

Not sure what env properties you need but I installed pipx with

brew install pipx
pipx ensurepath
sudo pipx ensurepath --global # optional to allow pipx actions with --global argument

some more

> pipx environment
Environment variables (set by user):

PIPX_HOME=
PIPX_GLOBAL_HOME=
PIPX_BIN_DIR=
PIPX_GLOBAL_BIN_DIR=
PIPX_MAN_DIR=
PIPX_GLOBAL_MAN_DIR=
PIPX_SHARED_LIBS=
PIPX_DEFAULT_PYTHON=
PIPX_FETCH_MISSING_PYTHON=
USE_EMOJI=
PIPX_HOME_ALLOW_SPACE=

Derived values (computed by pipx):

PIPX_HOME=/Users/malte/.local/pipx
PIPX_BIN_DIR=/Users/malte/.local/bin
PIPX_MAN_DIR=/Users/malte/.local/share/man
PIPX_SHARED_LIBS=/Users/malte/.local/pipx/shared
PIPX_LOCAL_VENVS=/Users/malte/.local/pipx/venvs
PIPX_LOG_DIR=/Users/malte/.local/pipx/logs
PIPX_TRASH_DIR=/Users/malte/.local/pipx/trash
PIPX_VENV_CACHEDIR=/Users/malte/.local/pipx/.cache
PIPX_STANDALONE_PYTHON_CACHEDIR=/Users/malte/.local/pipx/py
PIPX_DEFAULT_PYTHON=/opt/homebrew/opt/python@3.12/libexec/bin/python
USE_EMOJI=true
PIPX_HOME_ALLOW_SPACE=false

> which python
python: aliased to /usr/bin/python3
> which pip
pip: aliased to /usr/bin/pip3
michaelneale commented 1 month ago

@mercedesbunz I would use pipx unintall and then try again -