Hi All. Iâm facing a problem when deploying an app that uses LlamaIndexâs Database Reader. The app fetches data from Snowflake tables and work perfectly on local machine. However. during deployment to the community cloud it throwsâ an error:
sqlalchemy.exc.ObjectNotExecutableError: Not an executable object: âSHOW /* sqlalchemy:get_table_names */ TABLESâ
What I tried already:
Used different versions of Python while deploying
Used different versions of llama-index, sqlalchemy and snowflake-sqlalchemy libraries.
I did, it seems like the issue is related to specific versions of snowflake-connector-python or snowflake-sqlalchemy. However, I wasnât able to fix it yet
Hi @Oleksandr_Arsentiev it is probably the dependency issue. Could you refer this conda channel and ping the snowflake-connector-python==3.1.0 and sqlalchemy==1.4.39
thank you, it seems like the dependency issue is caused by llama-index. Strangely enough, it works on my local machine. Should snowflake-snowpark-python be added to the requirements? This is what I got from the Streamlit console:
llama-index 0.8.29 depends on sqlalchemy>=2.0.15
snowflake-sqlalchemy 1.5.0 depends on sqlalchemy<2.0.0 and >=1.4.0
@Oleksandr_Arsentiev i see it looks like there is known issue in sqlalchemy support for snowflake-sqlalchemy . There is a patch i found in the thread and hope this helps with the issue
thanks! In the time being I just forked llama-index repo and changed the requirements to support sqlalchemy <2.0.0,>=1.4.0. Works fine for the hackathon
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking âAccept allâ, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.