SNOW-947055: Import Error When Trying To Run App
Closed this issue · 7 comments
SnowCLI version
1.2.0
Python version
3.9.6
Platform
macOS-13.5.2-arm64-arm-64bit
What happened
I've deployed my app successfully. But when I go to run the app, comes back with a ModuleNotFoundError. In my main application python file, I import a separate python file with my functions. This file sits in the same folder as the main python file.
Console output
(myenv) mashsyed@mashs-mbp car-trends % snow streamlit deploy cars_app --file=Home.py -c mashsf --replace --query-warehouse MED_COMPUTE_WH --debug
Streamlit successfully deployed and available under https://app.snowflake.com/JZUYHUK/fha10802/#/streamlit-apps/ANALYTICS.CARS.CARS_APP
How to reproduce
I'm not sure
@sfc-gh-turbaszek Can we check on it ?
car_functions.py
is not uploaded to Snowflake. That's expected as we currently upload mian file, environment.yml and files from pages/
directory. Additional files are not yet supported.
@mashhype You can add an extra command to upload that file to the associated stage, something like
snow stage put car_functions.py analytics.public.streamlit/cars_app --overwrite -c mashsf
disregard @sfc-gh-zblackwood, its literally the path to my schema and database! Thank you for your help!
![Screenshot 2023-10-20 at 11 08 33 AM](https://private-user-images.githubusercontent.com/4706698/277018421-023580db-4b98-4a7b-9baf-5e550adc7c14.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1Mjg4MzYsIm5iZiI6MTcyMDUyODUzNiwicGF0aCI6Ii80NzA2Njk4LzI3NzAxODQyMS0wMjM1ODBkYi00Yjk4LTRhN2ItOWJhZi01ZTU1MGFkYzdjMTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDlUMTIzNTM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGViMTM1ZjNhNmUxMGUyYTlmZmQ5YzQyZDk4MmRjMzAwZWU1NTJmMDI3MWFiODljYmUxZDY5MjY3NjRlODc3ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.J0zInrN1Kd78cwFm7jNLnkygUBWQzfzZ5RvEVnUVQRY)
found the path needed to upload the file