failed to get the current screen resources

Hi I am attempting to post process a large database of CFD solutions. I have paraview installed on the cluster. I have installed Xming and can confirm that the Xming connection works by running xfe and seeing a file browser pop up in a new window. Attempting to create a render view inside my python code yields the following error:
If I try to run paraview from the command line by typing ‘paraview’, the following error is shown:
‘failed to get the current screen resources’
Apologies if this question is not descriptive enough. I am happy to provide more information if required.