Replies: 9 comments 3 replies
-
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Beta Was this translation helpful? Give feedback.
-
Please share also traceback so we can see the error |
Beta Was this translation helpful? Give feedback.
-
Ah OK I get your issue. it's not about virtual env it's about variables. You are doing it wrong. You can not do |
Beta Was this translation helpful? Give feedback.
-
get_variable2's full log. The first errors seems to be linked to the usage of sqlalchemy 2 (failed to import plugin openlinage and the like). I'm not sure there's much usable traceback in the final error, though...
|
Beta Was this translation helpful? Give feedback.
-
@eladkal You sure about that? I hadn't had any trouble up to now. For instance, that dag will run get_variable3 just fine:
|
Beta Was this translation helpful? Give feedback.
-
Hello sir may i work on this issue with a bit of your guidance |
Beta Was this translation helpful? Give feedback.
-
@laksh-krishna-sharma Sure! Do you need anything beside what I had already posted? |
Beta Was this translation helpful? Give feedback.
-
This is clear I think. Aoache Airflow does not work with sqlalchemy > 2.0 - mainly because some of the dependencies do not work with it. I thin it's clear because airflow has sqlalchemy < 2.0 as requirement. |
Beta Was this translation helpful? Give feedback.
-
Converting into a discussion. |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.10.4
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Note: just adding this to be tracked for future reference (I haven't seen this specific issue with
sqlalchemy
2 in the roadmap toward airflow 3). If you feel this is redondant, please just close this issue.Running airflow 2.10.4 from the docker image with python 3.10.
Setting a virtualenv config with "sqlalchemy>2.0.0" breaks Variable retrieval (but otherwise works fine).
What you think should happen instead?
Up to now, I had'nt seen side effects linked to using sqlalchemy 2 in virtualenv (that's even something recommented on some SO's answers like here). Maybe that's just something that needs to be displayed explicitly until airflow 3 is out?
How to reproduce
Dag example:
Operating System
Ubuntu 22.04.3 LTS
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
Deployment details
Docker image derived from apache/airflow:2.10.4-python3.10
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions