vanna icon indicating copy to clipboard operation
vanna copied to clipboard

AttributeError: 'NoneType' object has no attribute 'questions'

Open anechii opened this issue 8 months ago • 3 comments

I am getting an exception when running vn.ask on a linux server.

~ $ python
>>> import vanna
>>> from vanna.remote import VannaDefault
>>> vn = VannaDefault(model='chinook', api_key=vanna.get_api_key('[email protected]'))
>>> vn.connect_to_sqlite('https://vanna.ai/Chinook.sqlite')
>>> vn.ask('What are the top 10 artists by sales?')
'NoneType' object has no attribute 'questions'
(None, None, None)
>>> 

Is there a reason this code here returns a None value, inevitably causing this NoneType error ? What does it mean and how to prevent this from happening ? https://github.com/vanna-ai/vanna/blob/a72b842d420cf1fa061e5f97d45ea08051651ebb/src/vanna/vannadb/vannadb_vector.py#L190

anechii avatar May 29 '24 09:05 anechii