gorilla-llm / gorilla-cli

LLMs for your CLI
https://gorilla.cs.berkeley.edu/
Apache License 2.0
1.3k stars 76 forks source link

python3.11 support #4

Open wmichelin opened 1 year ago

wmichelin commented 1 year ago
> python --version
Python 3.11.3
> gorilla help
Traceback (most recent call last):
  File "/opt/homebrew/bin/gorilla", line 5, in <module>
    from go_cli import main
  File "/opt/homebrew/lib/python3.11/site-packages/go_cli.py", line 24, in <module>
    import go_questionary
  File "/opt/homebrew/lib/python3.11/site-packages/go_questionary/__init__.py", line 2, in <module>
    from prompt_toolkit.validation import Validator, ValidationError
  File "/opt/homebrew/lib/python3.11/site-packages/prompt_toolkit/__init__.py", line 16, in <module>
    from .interface import CommandLineInterface
  File "/opt/homebrew/lib/python3.11/site-packages/prompt_toolkit/interface.py", line 19, in <module>
    from .application import Application, AbortAction
  File "/opt/homebrew/lib/python3.11/site-packages/prompt_toolkit/application.py", line 8, in <module>
    from .key_binding.bindings.basic import load_basic_bindings
  File "/opt/homebrew/lib/python3.11/site-packages/prompt_toolkit/key_binding/bindings/basic.py", line 9, in <module>
    from prompt_toolkit.renderer import HeightIsUnknownError
  File "/opt/homebrew/lib/python3.11/site-packages/prompt_toolkit/renderer.py", line 11, in <module>
    from prompt_toolkit.styles import Style
  File "/opt/homebrew/lib/python3.11/site-packages/prompt_toolkit/styles/__init__.py", line 8, in <module>
    from .from_dict import *
  File "/opt/homebrew/lib/python3.11/site-packages/prompt_toolkit/styles/from_dict.py", line 9, in <module>
    from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/opt/homebrew/Cellar/python@3.11/3.11.4_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/collections/__init__.py)
ShishirPatil commented 1 year ago

Thanks for the pointer @wmichelin Would you be interested in potentially helping us with a PR? Happy to merge and welcome you as a contributor!

mohidmeer commented 1 year ago

@ShishirPatil

I am using python 3.11.4 it seems fine

image

abitrolly commented 1 month ago

@wmichelin can this be closed?