Skip to content

Having issues with Vapi_python dependencies. #5

Description

@vihandesilva
  • Vapi Python SDK version: 0.1
  • Python version: 3.11
  • Operating System: Windows 11

Description

As according to instructions provided in the Readme file, I installed vapi_python using the following command:

pip install vapi_python

And I executed the following code to test the connection:

from vapi_python import Vapi

if __name__ == "__main__":
    vapi = Vapi(api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
    vapi.start(assistant_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)

(Please note that the key id and assistant id work and they have been anonymized)

I am getting the following error when executing this code:

Traceback (most recent call last): File "E:\code\python_playground\vapi_test.py", line 1, in <module> from vapi_python import Vapi ImportError: cannot import name 'Vapi' from 'vapi_python' (X:\Users\vihan\AppData\Local\Programs\Python\Python311\Lib\site-packages\vapi_python\__init__.py)

Can someone explain me the cause of this error or an alternative to avoid it? The pip package installation of vapi_python is successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions