-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to run Python script displays QT error #32
Comments
This is related to trying to run QGIS (which uses Qt for UI) in a headless mode on the GCP server. In general, UI programs are able to run in headless mode but may need some configuration because program output is not actually going to a display (there is no physical display). There are two initial questions to start with:
Note that TSTool will also need to be tested in headless mode. It has worked before in headless mode. I found the following:
If X windows is running on GCP and is used to support QGIS and TSTool, it should be possible to ssh -Y to the GCP machine similar to cygwin/Dev machine and run a basic program like xclock, as long as xclock, etc. is installed. |
Also the following discusses QGIS server. We don't need that (QGIS desktop should be enough), but the following indicates installing QGIS Server on a machine with X Windows. and says that QGIS is used by the server. So, I think we need to make sure that the X window server software is installed on the GCP machine. https://docs.qgis.org/3.16/en/docs/server_manual/getting_started.html |
See also information about enabling a virtual display device on GCP compute engine. This may be needed. https://cloud.google.com/compute/docs/instances/enable-instance-virtual-display |
We confirmed that X windows is running on the server and were able to ssh in and run |
I had forgotten to add localhost since it was in a different terminal instance. After that was added, it's working now! Steps to recreate are:
|
First I edited the This caused another error described in the following article. I made the change to
|
When
sudo python3 SNODASDaily_Interactive
is ran in the GCP VM terminal, the following error is displayed:It seems like a QT issue, but more research will be done to determine what exactly is the problem.
The text was updated successfully, but these errors were encountered: