- I would suggest you modify the pipeline and exclude the display-related elements and sinks…
- Have you tried removing the env var at the beginning of the script? eg:
import os os.environ.pop("DISPLAY",None) ...
(before all other imports)
import os
os.environ.pop("DISPLAY",None)
...
(before all other imports)