Open vihandesilva opened 5 months ago
Same
same
- 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.!
I have also run into this problem and have resorted to using the API with requests and basically putting together my own internal package.
same issue
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.
Update
I'm getting an error with one of the dependencies of Vapi, now. It says that the daily
package is not found, and I can't locate the correct daily
package 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'
hey y'all, sorry about the delay. try now: https://pypi.org/project/vapi-python
hey y'all, sorry about the delay. try now: https://pypi.org/project/vapi-python
This isn't working, I have tried it today.
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
Same. @jordancde even your latest uninstall/reinstall doesn't work
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
@namanyayg did you find the solution?
WSL2 seems to work (WSL1 won't, don't bother trying). But it seems to have much worse latency than Vapi Web.
Confirmed with Daily. They expect to have Windows support by July.
Same error on raspberry pi zero, how could I confirm if underlying module is responsible ?
same error
windows is not supported: https://github.com/daily-co/daily-python/issues/7
I have solved with:
!sudo apt-get install portaudio19-dev
!pip install vapi-python
Confirmed with Daily. They expect to have Windows support by July.
Any news on that ? Working with wsl is so limiting.
Thanks.
I believe they have started work on it, let me check the ETA
End of Oct or Mid Nov~
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:
(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.