Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mercedesbunz opened this issue Sep 4, 2024 · 5 comments

Comments

@mercedesbunz
Copy link

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
Copy link
Collaborator

@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
Copy link
Collaborator

hey @codefromthecrypt maybe you can try in your env?

@michaelneale
Copy link
Collaborator

@mercedesbunz (and great github username BTW!)

@mercedesbunz
Copy link
Author

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/[email protected]/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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants