gpt-cli
gpt-cli copied to clipboard
Unable to install
I tried a simple install using pip
and received the following error:
ModuleNotFoundError: No module named '_cffi_backend'
thread '<unnamed>' panicked at /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/pyo3-0.18.3/src/err/mod.rs:790:5:
Python API call failed
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
File "/opt/homebrew/bin/gpt", line 5, in <module>
from gptcli.gpt import main
File "/opt/homebrew/lib/python3.11/site-packages/gptcli/gpt.py", line 16, in <module>
import google.generativeai as genai
File "/opt/homebrew/lib/python3.11/site-packages/google/generativeai/__init__.py", line 69, in <module>
from google.generativeai import types
File "/opt/homebrew/lib/python3.11/site-packages/google/generativeai/types/__init__.py", line 17, in <module>
from google.generativeai.types.discuss_types import *
File "/opt/homebrew/lib/python3.11/site-packages/google/generativeai/types/discuss_types.py", line 21, in <module>
import google.ai.generativelanguage as glm
File "/opt/homebrew/lib/python3.11/site-packages/google/ai/generativelanguage/__init__.py", line 21, in <module>
from google.ai.generativelanguage_v1beta2.services.discuss_service.async_client import (
File "/opt/homebrew/lib/python3.11/site-packages/google/ai/generativelanguage_v1beta2/__init__.py", line 21, in <module>
from .services.discuss_service import DiscussServiceAsyncClient, DiscussServiceClient
File "/opt/homebrew/lib/python3.11/site-packages/google/ai/generativelanguage_v1beta2/services/discuss_service/__init__.py", line 16, in <module>
from .async_client import DiscussServiceAsyncClient
File "/opt/homebrew/lib/python3.11/site-packages/google/ai/generativelanguage_v1beta2/services/discuss_service/async_client.py", line 32, in <module>
from google.api_core import gapic_v1
File "/opt/homebrew/lib/python3.11/site-packages/google/api_core/gapic_v1/__init__.py", line 18, in <module>
from google.api_core.gapic_v1 import method
File "/opt/homebrew/lib/python3.11/site-packages/google/api_core/gapic_v1/method.py", line 24, in <module>
from google.api_core import grpc_helpers
File "/opt/homebrew/lib/python3.11/site-packages/google/api_core/grpc_helpers.py", line 27, in <module>
import google.auth.transport.grpc
File "/opt/homebrew/lib/python3.11/site-packages/google/auth/transport/grpc.py", line 25, in <module>
from google.oauth2 import service_account
File "/opt/homebrew/lib/python3.11/site-packages/google/oauth2/service_account.py", line 77, in <module>
from google.auth import _service_account_info
File "/opt/homebrew/lib/python3.11/site-packages/google/auth/_service_account_info.py", line 20, in <module>
from google.auth import crypt
File "/opt/homebrew/lib/python3.11/site-packages/google/auth/crypt/__init__.py", line 41, in <module>
from google.auth.crypt import rsa
File "/opt/homebrew/lib/python3.11/site-packages/google/auth/crypt/rsa.py", line 20, in <module>
from google.auth.crypt import _cryptography_rsa
File "/opt/homebrew/lib/python3.11/site-packages/google/auth/crypt/_cryptography_rsa.py", line 22, in <module>
import cryptography.exceptions
File "/opt/homebrew/lib/python3.11/site-packages/cryptography/exceptions.py", line 9, in <module>
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
pyo3_runtime.PanicException: Python API call failed
I have no idea what any of this means. I did try installing the latest build but that made no difference. Thanks in advance :-)