Why am I getting zsh: segmentation fault in streamlit when trying to get query results from snowflake?

Viewed 30

I'm running my app.py from streamlit and that starts fine but when I run a particular function I get: zsh: segmentation fault I'm using streamlit 1.12 (latest right now) snowflake python connector (2.7.12) poetry (1.2.1) I had this streamlit app working before I started using poetry so maybe related to that?

Everything else I've seen mentions it's a memory issue but I've tried solutions like:

ulimit -s -H 65532

from What causes a Python segmentation fault? to no avail

Here's my code:

import snowflake.connector

context = snowflake.connector.connect()
sf_cursor = context.cursor()
sf_cursor.get_results_from_sfqid(query_dict['id'])
data = sf_cursor.fetch_pandas_all()

I get the segmentation error only when calling the fetch_pandas_all method.

0 Answers
Related