cannot connect to X server

Asked by James Dingwall on 2014-01-10

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

Language:
English Edit question
Status:
Answered
For:
Python-PouchDB Edit question
Assignee:
Marten de Vries Edit question
Last query:
2014-01-10
Last reply:
2014-02-01

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.