[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 referenc

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

2014-12-09 Thread Richard Duivenvoorde
On 09-12-14 14:16, devquestio...@gmail.com wrote: > 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 p

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: http://osgeo-org.1560.x6.nabble.com/Error-cannot-connect-to-X-s

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 pytho

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

2014-12-09 Thread Ziegler Stefan
g] Im Auftrag von devquestio...@gmail.com > Gesendet: Dienstag, 9. Dezember 2014 17:12 > An: qgis-developer@lists.osgeo.org > Betreff: Re: [Qgis-developer] Error : cannot connect to X server on Ubuntu > > >>on X-server, > > I want to run it in a headless mode i.e no GUI. I wan

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

2014-12-09 Thread Richard Duivenvoorde
On 09-12-14 16:49, devquestio...@gmail.com wrote: > Hi Richard, > > Thanks for the reply. > > Can you please let me know what should be the values for > > PYTHONPATH and LD_LIBRARY . I compile QGIS master in debug mode and install it in apps/qgis/master/debug So then these are the paths I use

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

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

2014-12-10 Thread Matthias Kuhn
The tests run on a headless server with xvfb. So I assume that doing anything with xvfb-run python yourapp.py and no messing with display should work perfectly as well. On 12/10/2014 08:50 PM, devquestio...@gmail.com wrote: > Yeah, I am trying to use headless application. I was able to overcome

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

2014-12-10 Thread devquestio...@gmail.com
thanks Matthias, Actually this is what i am trying to do. i need to calculate wetness index, so i have developed a model in qgis graphical modeler that invokes grss-saga algorithsm to calculate slope, wetness index etc. all i want to do is to run that algorithm in a headless mode. So, using pr

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

2014-12-10 Thread Matthias Kuhn
I have never run a processing model standalone, so I cannot help there. I don't know how closely tied this is to GUI related things. It may or may not work without X. But if you have to create a QgsApplication which is a QApplication I am pretty sure that you need to have some kind of X running. So