gopidesupavan commented on code in PR #53390:
URL: https://github.com/apache/airflow/pull/53390#discussion_r2260159261


##########
providers/standard/src/airflow/providers/standard/operators/python.py:
##########
@@ -880,9 +889,13 @@ def execute_callable(self):
 
         with TemporaryDirectory(prefix="venv") as tmp_dir:
             tmp_path = Path(tmp_dir)
+            tmp_dir, temp_venv_dir = 
tmp_path.relative_to(tmp_path.anchor).parts

Review Comment:
   Yeah you can do it simply in local. your assumption will work inside 
container. but it may not work if it installed standalone in local.
   
   you can follow these steps:
   
   ```
   uv venv --python 3.10
   source .venv/bin/activate
   mkdir airflow_home
   export AIRFLOW_HOME=<pwd>/airflow_home
   uv pip install -U apache-airflow==3.0.4rc2 --pre --constraints 
https://github.com/apache/airflow/blob/constraints-3.0.4rc2/constraints-3.10.txt
   airflow standalone
   ```
   pwd -> repalce full path
   And you can run an example with PythonVirtualenvOperator



-- 
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