cannot connect to X server

Asked by James Dingwall

Using either python-qt4 or python-pyside.qtwebkit on Ubuntu Saucy from a console:

root@zynode01:~# python2.7
Python 2.7.5+ (default, Sep 19 2013, 13:48:49)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pouchdb
>>> db = pouchdb.PouchDB("mydb")
: cannot connect to X server

Is there a solution for this or must I use a headless X server (xvfb)?

Question information

English Edit question
Python-PouchDB Edit question
Marten de Vries Edit question
Last query:
Last reply:
Revision history for this message
Marten de Vries (marten-de-vries) said :

Python-PouchDB uses WebKit behind the scenes to wrap PouchDB, which unfortunately requires an X server. I use xvfb to work around that on X-less machines myself, so that's what I would recommend. There's no easier solution that I'm aware of.

Can you help with this problem?

Provide an answer of your own, or ask James Dingwall for more information if necessary.

To post a message you must log in.