fromm1990 commented on issue #48554:
URL: https://github.com/apache/airflow/issues/48554#issuecomment-2903910966

   I seem to get this error when using `Variable.get("my_variable")` inside an 
external_python task. The variable is perfectly able to be retrieved from an 
ordinary task. The variable is also listed when executing the `airflow 
variables list` command from an python environment activated terminal. The 
latter suggests, that the virtual environment should be properly set up, in my 
opinion. This setup worked fine in airflow 2.10.5 (however using `from 
airflow.models import Variable` instead of `from airflow.sdk import Variable`)
   
   I don't know if the cause of this issue is the same, but sounds similar to 
me.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to