Re: [Qgis-developer] Error : cannot connect to X server on Ubuntu

2014-12-10 Thread devquestio...@gmail.com
Yeah, I am trying to use headless application. I was able to overcome the earlier error, but now i am stuck with a new error message. QPixmap: Cannot create a QPixmap when no GUI is being used QPixmap: Cannot create a QPixmap when no GUI is being used QPixmap: Cannot create a QPixmap when no GUI

[Qgis-developer] Error : cannot connect to X server on Ubuntu

2014-12-09 Thread devquestio...@gmail.com
I am seeing the error cannot connect to X server in a stand alone python application at app = QgsApplication([], True). As suggested in the mailing archives I tried setting DISPLAY env variable to , but that does not resolve the problem. Would be a great help if you can point me any references on

Re: [Qgis-developer] Error : cannot connect to X server on Ubuntu

2014-12-09 Thread devquestio...@gmail.com
Hi Richard, Thanks for the reply. Can you please let me know what should be the values for PYTHONPATH and LD_LIBRARY . Kindof new to this whole linux/unix world. Appreciate your help. Thanks ! -- View this message in context:

Re: [Qgis-developer] Error : cannot connect to X server on Ubuntu

2014-12-09 Thread devquestio...@gmail.com
on X-server, I want to run it in a headless mode i.e no GUI. I want to be able to invoke in batch mode ( ie headless standalone) a model developed via graphical modelling tool of qgis. So, ideally i dont want to connect to x-server this is needed for automation purpose. Cant really use python