https://dagster.io/ logo
#ask-community
Title
# ask-community
s

Sean Han

12/13/2022, 5:49 PM
Hi Team, I’m trying to test out environment variable locally in dagit. I put in a .env file and in the same folder run dagit, but still see env not set error.
Copy code
$ cat .env
# .env
SNOWFLAKE_USERNAME=user@example.com
$ dagit
2022-12-13 09:48:21 -0800 - dagit - INFO - Serving dagit on <http://127.0.0.1:3000> in process 58295
Is there any indication that dagit has recognized the file and ingested it correctly? The error I see is
Copy code
dagster._core.errors.DagsterInvalidConfigError: Error in config for resource snowflake
Error 1: Post processing at path root:config:user of original value {'env': 'SNOWFLAKE_USERNAME'} failed:
dagster._config.errors.PostProcessingError: You have attempted to fetch the environment variable "SNOWFLAKE_USERNAME" which is not set. In order for this execution to succeed it must be set in this environment.
Dagit and dagster version are all version 1.0.17
d

daniel

12/13/2022, 5:51 PM
Hi Sean - the .env support was rolled out in 1.1, so I think you're just one version off
❤️ 1
s

Sean Han

12/13/2022, 5:52 PM
That is why! Thank you for pointing out
condagster 1