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

SQL Optimizer Snowflake Cortex App cannot import Cortex #18

Open
calder-holt opened this issue Oct 29, 2024 · 2 comments
Open

SQL Optimizer Snowflake Cortex App cannot import Cortex #18

calder-holt opened this issue Oct 29, 2024 · 2 comments

Comments

@calder-holt
Copy link

The code for the SQL Optimizer Cortex App does not appear to be valid for Streamlit in Snowflake. When creating an app and using the source code it cannot import the Complete function.

Traceback:
File "/usr/lib/python_udf/5759b01ddf3c89a7f38cfbfdd013907ebb882e6a2a64eb71d0c9c3880f2d0f2b/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 600, in _run_script
    exec(code, module.__dict__)
File "/tmp/appRoot/streamlit_app.py", line 3, in <module>
    from snowflake.cortex import Complete```
@calder-holt calder-holt changed the title SQL Optimizer Snowflake Cortex App does not work SQL Optimizer Snowflake Cortex App cannot import Cortex Oct 29, 2024
@sfc-gh-asaini
Copy link
Collaborator

Hi @calder-holt - Thanks for reporting this issue. Can you share the Python version, and versions of libraries you're trying to use in your app?

@calder-holt
Copy link
Author

image

  • snowflake-snowpark-python = 1.23.0
  • streamlit = 1.35.0
  • python = 3.8
  • snowflake = 1.0.0

Worth calling out these are all basically the defaults from SIS.

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

2 participants