Package Details: chatblade 0.3.0-1

Git Clone URL: https://aur.archlinux.org/chatblade.git (read-only, click to copy)
Package Base: chatblade
Description: A CLI Swiss Army Knife for ChatGPT
Upstream URL: https://github.com/npiv/chatblade
Licenses: GPL3
Submitter: hashworks
Maintainer: hashworks
Last Packager: hashworks
Votes: 4
Popularity: 1.70
First Submitted: 2023-03-20 17:00 (UTC)
Last Updated: 2023-05-04 21:52 (UTC)

Latest Comments

hashworks commented on 2023-05-05 10:31 (UTC)

For Python Major/Minor Version changes all python packages need to be rebuild. For extra/community packages this is done for you, but you need to handle your AUR packages yourself. You can't rely on the AUR maintainers to bump the pkgrel.

"Reinstalling" a package with yay uses the cached package. Removing the cache triggers a rebuild on reinstall.

DarkestFox commented on 2023-05-04 22:24 (UTC)

Bizzare, I cleared my pacman and yay cache and then reinstalled python-openai and it works now. ¯_(ツ)_/¯

DarkestFox commented on 2023-05-04 22:20 (UTC) (edited on 2023-05-04 22:20 (UTC) by DarkestFox)

Thanks for the quick response. After upgrading I got errors about no module named tiktoken dependency which were resolved after (re)installing python-tiktoken-git.

Then I got an error about missing the 'openai' module. However even after reinstall python-openai I'm getting missing module errors:

Traceback (most recent call last):
  File "/usr/bin/chatblade", line 33, in <module>
    sys.exit(load_entry_point('chatblade==0.3.0', 'console_scripts', 'chatblade')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/chatblade", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/chatblade/__main__.py", line 1, in <module>
    from . import cli
  File "/usr/lib/python3.11/site-packages/chatblade/cli.py", line 10, in <module>
    from . import printer, chat, utils, storage, errors, parser, session
  File "/usr/lib/python3.11/site-packages/chatblade/chat.py", line 4, in <module>
    import openai
ModuleNotFoundError: No module named 'openai'

All the packages on my system are up to date including python-importlib-metadata.

hashworks commented on 2023-05-04 21:57 (UTC) (edited on 2023-05-04 21:59 (UTC) by hashworks)

What version of python-importlib-metadata do you have installed on your system? You need at least 5.0.0-5 due to the python 3.11 rebuild. Partial updates are not supported in Arch.

EDIT: You might have also missed rebuilding chatblade, but that's my bad to not bump the pkgrel. Try the new 0.3.0.

DarkestFox commented on 2023-05-04 21:16 (UTC) (edited on 2023-05-04 22:20 (UTC) by DarkestFox)

Appears to be broken:

Traceback (most recent call last):
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 563, in from_name
    return next(cls.discover(name=name))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/chatblade", line 33, in <module>
    sys.exit(load_entry_point('chatblade==0.2.1', 'console_scripts', 'chatblade')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/chatblade", line 22, in importlib_load_entry_point
    for entry_point in distribution(dist_name).entry_points
                       ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 981, in distribution
    return Distribution.from_name(distribution_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for chatblade