Replies: 2 comments 2 replies
-
I have attempted to get a version wor work with virtualenv using @task.external_python and then creating the venv as part of the dockerfile build. but the dockerfile build fails due to conflicts still. I assume it is related to using the postgres hook
Im now stuck short of downgrading our app to use sqlalchemy v1 and stop using SQLModel which we dont really want to do. |
Beta Was this translation helpful? Give feedback.
-
Having the same problem here. I have looked at quite a few issues relating to this topic, and it seems like the workaround for sqlalchemy is to install |
Beta Was this translation helpful? Give feedback.
-
Hi All,
We are new to Airflow and have setup some basic DAGs with little effort, however we are now looking at more complex DAGs and have hit an issue with SQL Alchemy dependencies clashing with airflow. We need version 2.0 + as we use SQLModel but airflow uses 1.x so conflicts.
so now we want to use virtual env's, the issue is we have all our python packages live in private github repositories.
We need to be able to run all our dags in their own virtual env, but the packages we use for our tasks are stored in private github repos, we are a GCP house so could put the wheels onto Artifact Registry if that makes it easier.
The biggest thing that im not sure how to get around is the authentication to our github repositories, is there an ENV variable that i can set to tell it to use for authentication when it gets a git+https://github.com in the requiremenets? The documentation i have read doesnt really give a clear example of doing this.
I would also want it to be cached so that it doesnt re-install every time the dag runs unless a version has changed.
I'm sure that this is a common use case but struggling to progress due to lack of knowledge
We are using the official Apache Airflow Helm chart for our deployment
We use a Github App for authentication to git repos (could we use git sync??)
Beta Was this translation helpful? Give feedback.
All reactions