CROCO PyTools with no User Interface

I am trying to execute make_grid.py using croco_pytools via terminal and I do not have UI. The installation of the environment went well with no errors, but when attempting “python make_grid.py” I get “Unable to access the X Display, is $DISPLAY set properly?”. I have tried commenting some imports such as main_window or tools_make_grid but it does not work properly. I made sure to use the no UI option.