You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sfc-gh-astus Why would we end up failing the deploy if the pages directory is empty? Why not skip the directory if there are no *.py files.
The deploy is only working upon removing pages/ directory and removing entry from snowflake.yml "pages_dir: pages/"
It is failing if I have "pages_dir: pages/" in snowflake.yml and pages/ directory exists with .placeholder ( no .py file )
When we are setting up projects we still want to keep the directories available and config available to be used if pages are added in future.
Ideally the code should be independent of it and should ignore if *.py files are not present.
SnowCLI version
2.7
Python version
Python 3.9.10
Platform
Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.31
What happened
As per the documentation, snow streamlit deploy --replace will deploy the application as per configuration in snowflake.yml
and also upload files from pages/ if exists
https://docs.snowflake.com/en/developer-guide/snowflake-cli-v2/streamlit-apps/manage-apps/deploy-app#how-to-deploy-a-streamlit-app
I am trying to deploy a streamlit app, which isn't a multi page app hence the pages/ directory is empty ( No *.py files present )
As per the documentation, snow streamlit deploy --replace should deploy the app but its failing with below error,
ProgrammingError: 253006: 253006: File doesn't exist: ['pages/*.py']
Console output
How to reproduce
Create a single page app with no file in pages/ directory.
Try to run snow streamlit deploy --replace to see if it is able to deploy
The text was updated successfully, but these errors were encountered: