hussein-awala commented on issue #32879:
URL: https://github.com/apache/airflow/issues/32879#issuecomment-1657261449
I just tested with dag:
```python
import pendulum
from airflow.models import DAG
from airflow.operators.python import PythonVirtualenvOperator
with DAG(
dag_id="venv_dag",
start_date=pendulum.datetime(2021, 10, 1),
schedule=None,
) as venv_dag:
def print_hello():
print("hello world")
PythonVirtualenvOperator(
task_id='test_venv',
python_callable=print_hello,
requirements='openpyxl==3.0.10',
)
```
and I couldn't reproduce the issue.
I tried with tasks test command:
```bash
airflow tasks test venv_dag test_venv
```
And with:
```python
if __name__ == '__main__':
venv_dag.test(execution_date=pendulum.datetime(2021, 10, 1))
```
Could you provide more information about your issue? (for example provide
the task log)
--
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]