You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "SamWheating (via GitHub)" <gi...@apache.org> on 2023/03/02 18:17:24 UTC
[GitHub] [airflow] SamWheating opened a new pull request, #29883: Including airflow/example_dags/sql/sample.sql in MANIFEST.in
SamWheating opened a new pull request, #29883:
URL: https://github.com/apache/airflow/pull/29883
I was debugging another issue and running the official helm chart in Kind, and when I tried to run the `example_python_operator` DAG it failed on the `log_sql_query` task with the following error:
```
File "/home/airflow/.local/lib/python3.7/site-packages/jinja2/environment.py", line 969, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
File "/home/airflow/.local/lib/python3.7/site-packages/jinja2/loaders.py", line 126, in load
source, filename, uptodate = self.get_source(environment, name)
File "/home/airflow/.local/lib/python3.7/site-packages/jinja2/loaders.py", line 218, in get_source
raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: sql/sample.sql
```
Which then causes all of the downstream tasks to fail.
This is because the template used in the example DAG isn't bundled into the build. I suspect this might work in `breeze` because the source directory is mounted, but when Airflow is installed from pip it won't include this file.
Anyways, I think that this minor change should fix things.
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk merged pull request #29883: Including airflow/example_dags/sql/sample.sql in MANIFEST.in
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #29883:
URL: https://github.com/apache/airflow/pull/29883
--
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.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org