VapiAI / python

MIT License
59 stars 25 forks source link

Having issues with Vapi_python dependencies. #5

Open vihandesilva opened 4 months ago

vihandesilva commented 4 months ago

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.

hal-8999-alpha commented 4 months ago

Same

jmanhype commented 4 months ago

same

jmanhype commented 4 months ago
  • 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.

I figured it out... its the pypi we have to install from git,,, the pypi has been delted all files are empty.!

Alexiiiine commented 4 months ago

I have also run into this problem and have resorted to using the API with requests and basically putting together my own internal package.

Reynold97 commented 4 months ago

same issue

vihandesilva commented 4 months ago

I have also run into this problem and have resorted to using the API with requests and basically putting together my own internal package.

What's the endpoint to send a message to the Assistant from the User? I couldn't figure it out.

vihandesilva commented 4 months ago

Update

I'm getting an error with one of the dependencies of Vapi, now. It says that the dailypackage is not found, and I can't locate the correct dailypackage on Pypi or pip.

File "X:\code\Chatbot\backend\app.py", line 4, in <module> from models import Models File "X:\code\Chatbot\backend\models.py", line 18, in <module> from vapi_python import Vapi File "X:\code\Chatbot\backend\venv\Lib\site-packages\vapi_python\__init__.py", line 3, in <module> from .vapi_python import Vapi File "X:\code\Chatbot\backend\venv\Lib\site-packages\vapi_python\vapi_python.py", line 3, in <module> from .daily_call import DailyCall File "X:\code\Chatbot\backend\venv\Lib\site-packages\vapi_python\daily_call.py", line 18, in <module> class DailyCall(daily.EventHandler): ^^^^^^^^^^^^^^^^^^ AttributeError: module 'daily' has no attribute 'EventHandler'

nikhilro commented 4 months ago

hey y'all, sorry about the delay. try now: https://pypi.org/project/vapi-python

umar-anzar commented 4 months ago

hey y'all, sorry about the delay. try now: https://pypi.org/project/vapi-python

This isn't working, I have tried it today.

jordancde commented 4 months ago

Hi there, sorry for the delay. Seems I'm unable to reproduce on my end on a fresh install.

Can you try

pip uninstall vapi-python
pip uninstall daily-python
pip install vapi-python
namanyayg commented 4 months ago

Same. @jordancde even your latest uninstall/reinstall doesn't work

namanyayg commented 4 months ago

Okay, I figured out the cause, the dependency daily-python does not exist for Windows (https://pypi.org/project/daily-python/0.7.4/#files)

Trying in WSL now

ahmadfalcon commented 3 months ago

@namanyayg did you find the solution?

namanyayg commented 3 months ago

WSL2 seems to work (WSL1 won't, don't bother trying). But it seems to have much worse latency than Vapi Web.

nikhilro commented 3 months ago

Confirmed with Daily. They expect to have Windows support by July.

olup commented 2 months ago

Same error on raspberry pi zero, how could I confirm if underlying module is responsible ?

Abhijeet-Deve commented 2 weeks ago

same error

nikhilro commented 2 weeks ago

windows is not supported: https://github.com/daily-co/daily-python/issues/7