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

error with version flag #86

Open
gzheng92 opened this issue May 22, 2024 · 0 comments
Open

error with version flag #86

gzheng92 opened this issue May 22, 2024 · 0 comments

Comments

@gzheng92
Copy link

I'm using the latest version of chatblade from homebrew (although the issue was there with 0.4.0_2 as well). Attempting to check the version gives the following response.

I suspect (no prof though) it's something to do with python 3.12?

➜ chatblade --version
/opt/homebrew/Cellar/chatblade/0.4.0_3/libexec/lib/python3.12/site-packages/chatblade/session.py:13: SyntaxWarning: invalid escape sequence '\.'
  re.sub("\.yaml\Z", "", os.path.basename(sess_path))
Traceback (most recent call last):
  File "/opt/homebrew/bin/chatblade", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/Cellar/chatblade/0.4.0_3/libexec/lib/python3.12/site-packages/chatblade/__main__.py", line 5, in main
    cli.cli()
  File "/opt/homebrew/Cellar/chatblade/0.4.0_3/libexec/lib/python3.12/site-packages/chatblade/cli.py", line 155, in cli
    version = dist.get_option_dict('metadata')['version'][1]
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'version'
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

1 participant