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

Having issues with Vapi_python dependencies. #5

Open
vihandesilva opened this issue Apr 26, 2024 · 25 comments
Open

Having issues with Vapi_python dependencies. #5

vihandesilva opened this issue Apr 26, 2024 · 25 comments

Comments

@vihandesilva
Copy link

  • 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.

@hal-8999-alpha
Copy link

Same

@jmanhype
Copy link

same

@jmanhype
Copy link

  • 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
Copy link

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
Copy link

same issue

@vihandesilva
Copy link
Author

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
Copy link
Author

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'

@nikhilro
Copy link
Contributor

nikhilro commented May 8, 2024

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

@umar-anzar
Copy link

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
Copy link
Contributor

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
Copy link

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

@namanyayg
Copy link

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
Copy link

@namanyayg did you find the solution?

@namanyayg
Copy link

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

@nikhilro
Copy link
Contributor

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

@olup
Copy link

olup commented Jun 25, 2024

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

@Abhijeet-Deve
Copy link

same error

@nikhilro
Copy link
Contributor

windows is not supported: daily-co/daily-python#7

@Rumeysakeskin
Copy link

I have solved with:

!sudo apt-get install portaudio19-dev
!pip install vapi-python

@ttamoud
Copy link

ttamoud commented Oct 16, 2024

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

Any news on that ? Working with wsl is so limiting.

Thanks.

@nikhilro
Copy link
Contributor

I believe they have started work on it, let me check the ETA

@nikhilro
Copy link
Contributor

End of Oct or Mid Nov~

@metorresa
Copy link

End of Oct or Mid Nov~

any update on this? thanks

@makerGeek
Copy link

any update on this? thanks

@DominicStewart
Copy link

Hi @makerGeek,

No update yet. It's definitely on our radar though.

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