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

Unable to install #73

Open
matthewblott opened this issue Apr 25, 2024 · 0 comments
Open

Unable to install #73

matthewblott opened this issue Apr 25, 2024 · 0 comments

Comments

@matthewblott
Copy link

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 :-)

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