You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/06/15 12:23:44 UTC
[GitHub] [airflow] saul-gush opened a new issue #16457: Key errors on importing DAGs
saul-gush opened a new issue #16457:
URL: https://github.com/apache/airflow/issues/16457
We are receiving import errors on environment variables that we use inside our DAGs - used to switch between local docker compose and our staging environment. Not sure why?
```
Broken DAG: [/opt/airflow/dags/people_spine/2processing/pro_workday.py] Traceback (most recent call last):
File "/opt/airflow/dags/people_spine/2processing/pro_workday.py", line 16, in <module>
if os.environ["ENVIRONMENT"] == 'staging':
File "/usr/local/lib/python3.6/os.py", line 669, in __getitem__
raise KeyError(key) from None
KeyError: 'ENVIRONMENT'
```
![image](https://user-images.githubusercontent.com/63714857/122051573-a8988880-cddc-11eb-90cd-199d5d82405b.png)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] saul-gush edited a comment on issue #16457: Key errors on importing DAGs
Posted by GitBox <gi...@apache.org>.
saul-gush edited a comment on issue #16457:
URL: https://github.com/apache/airflow/issues/16457#issuecomment-861459330
I see - OK I got it to work thanks @uranusjr
Changed the docker compose as follows:
![image](https://user-images.githubusercontent.com/63714857/122053195-6ff9ae80-cdde-11eb-8cfa-81bb4be7add1.png)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] saul-gush edited a comment on issue #16457: Key errors on importing DAGs
Posted by GitBox <gi...@apache.org>.
saul-gush edited a comment on issue #16457:
URL: https://github.com/apache/airflow/issues/16457#issuecomment-861459330
I see - OK I got it to work thanks @uranusjr
Changed the docker compose as follows:
![image](https://user-images.githubusercontent.com/63714857/122053004-3e80e300-cdde-11eb-87b3-7d6326c2cef0.png)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] saul-gush closed issue #16457: Key errors on importing DAGs
Posted by GitBox <gi...@apache.org>.
saul-gush closed issue #16457:
URL: https://github.com/apache/airflow/issues/16457
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] saul-gush commented on issue #16457: Key errors on importing DAGs
Posted by GitBox <gi...@apache.org>.
saul-gush commented on issue #16457:
URL: https://github.com/apache/airflow/issues/16457#issuecomment-861459330
I see - OK I got it to work thanks @uranusjr
![image](https://user-images.githubusercontent.com/63714857/122053004-3e80e300-cdde-11eb-87b3-7d6326c2cef0.png)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] boring-cyborg[bot] commented on issue #16457: Key errors on importing DAGs
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #16457:
URL: https://github.com/apache/airflow/issues/16457#issuecomment-861453236
Thanks for opening your first issue here! Be sure to follow the issue template!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org