Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

module 'vanna' has no attribute 'connect_to_mysql' #371

Closed
Abhinav0905 opened this issue Apr 17, 2024 · 4 comments
Closed

module 'vanna' has no attribute 'connect_to_mysql' #371

Abhinav0905 opened this issue Apr 17, 2024 · 4 comments

Comments

@Abhinav0905
Copy link

Describe the bug
unable to connect to MySQL. When printing the directory of Vanna, connect_to_mysql wasn't listed.
Even tried using pip install vanna[mysql]

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Error logs/Screenshots
If applicable, add logs/screenshots to give more information about the issue.

Desktop (please complete the following information where):

  • OS: [Windows]
  • Version:
  • Python: [3.12
  • Vanna: [2.8.0]

Additional context
Add any other context about the problem here.
image

@Abhinav0905 Abhinav0905 added the bug Something isn't working label Apr 17, 2024
@zainhoda
Copy link
Contributor

zainhoda commented Apr 17, 2024

Upgrade your vanna installation please

pip install -U vanna

@Abhinav0905
Copy link
Author

Tried doing on the vanna colab official page . Still facing the same issue

image

@Abhinav0905
Copy link
Author

even tried like this --
image

@zainhoda
Copy link
Contributor

Ah it's the "import vanna as vn" that's the issue. That's deprecated.

Try this setup to instantiate vn as a class:

https://vanna.ai/docs/mysql-openai-standard-chromadb/

image

@zainhoda zainhoda removed the bug Something isn't working label Apr 18, 2024
@vanna-ai vanna-ai locked and limited conversation to collaborators Apr 18, 2024
@zainhoda zainhoda converted this issue into discussion #374 Apr 18, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants