GitHub user AshutoshSrivastavaDev edited a discussion: Facing intermittent 
issue in DAG

I am facing an intermittent issue while I add a new dag file.

`File "/usr/local/lib/python3.9/site-packages/pygments/lexers/special.py", line 
13, in <module>
    from pygments.lexer import Lexer, line_re
ImportError: cannot import name 'line_re' from 'pygments.lexer' 
(/usr/local/lib/python3.9/site-packages/pygments/lexer.py) `

but if I rewrite the dag file with no changes the error goes away. 

im using airflow [v2.5.0](https://pypi.python.org/pypi/apache-airflow/2.5.0)
I have 3 master node and 3 worker nodes in the cluster.

I checked all three master nodes have pygments ==2.19.1

GitHub link: https://github.com/apache/airflow/discussions/50390

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to