During the build process, try to set the env variable: SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 it should fix your problem
During the build process, try to set the env variable: ENABLE_ HEADLESS= 1
SCI_DISABLE_TK=1 SCI_JAVA_
it should fix your problem