Save a project as *.qgs and *.qgz. Rename the two project files in your file manager. Open another project that isn't empty. Try to open the *.qgs project file from ...
If you run the script on a server without X Server, you could get an error like: qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt ...