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

every hermes CLI subcomand fails with "An error occurred during execution of[subcommand]" #307

Open
aaronpeikert opened this issue Jan 31, 2025 · 1 comment

Comments

@aaronpeikert
Copy link

aaronpeikert commented Jan 31, 2025

My python version is:

python --version
Python 3.11.5

I installed hermes with:

pip install hermes and later with pip install git+https://github.com/hermes-hmc/hermes.git and pip install git+https://github.com/softwarepub/hermes.git

Only hermes -h gives something except the error message: "An error occurred during execution of[subcommand]".

Then I tried it with:

docker run --rm -it python:3.11.11-slim-bookworm bash
pip install hermes
hermes help

and again get:

An error occurred during execution of help.

root@0d8a83a371f6:/# cat hermes.log
1738314539.112698:          hermes.cli:     DEBUG | Running hermes with the following command line arguments: Namespace(subcommand=None, path=PosixPath('.'), config=PosixPath('hermes.toml'), options=[], command=<hermes.commands.base.HermesHelpCommand object at 0xffff999328d0>)
1738314539.112782:          hermes.cli:     DEBUG | Loading settings...
1738314539.112812:          hermes.cli:     ERROR | An error occurred during execution of help
1738314539.112936:          hermes.cli:     DEBUG | Original exception was: [Errno 2] No such file or directory: 'hermes.toml'
root@0d8a83a371f6:/# 
@zyzzyxdonta
Copy link
Contributor

Thank you for the report!

I agree that the error message on the command line is not very useful. Especially if users don't find the hermes.log file of which you added the contents to the description.

You can create a hermes.toml config file by running hermes init

As for how we should handle this: I think this is the same general problem as #238

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