(2023-03-23) Installing Chap for ChatGPT

I'm Installing Chap for ChatGPT https://github.com/jepler/chap

Install

  • Did pip3 install chap
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python'
Consider using the '--user' option or check the permissions.
  • Did pip3 install chap --user
WARNING: The script httpx is installed in '/Users/billseitz/Library/Python/3.8/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  • put API key into /etc/chap/openai_api_key
  • do cd ~/Library/Python/3.8/bin, see chap is in there
  • do chap ask "help"command not found: chap

Ask for help - duh

  • do ~/Library/Python/3.8/bin/chap
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/billseitz/Library/Python/3.8/lib/python/site-packages/chap/commands/ask.py", line 12, in <module>
    from ..session import Session
  File "/Users/billseitz/Library/Python/3.8/lib/python/site-packages/chap/session.py", line 33, in <module>
    class Session:
  File "/Users/billseitz/Library/Python/3.8/lib/python/site-packages/chap/session.py", line 36, in Session
    session: list[Message] = field(default_factory=list)
TypeError: 'type' object is not subscriptable

Edited:    |       |    Search Twitter for discussion