I am trying to run simple python(PySide) code on BBB(debian) , but getting error “cannot connect to x server” after compilation. My code is
from PySide import QtGui
app = QtGui.QtApplication(sys.argv) —> this line giving error “cannot connect to x server”
I have checked whether there is x server running on BBB with “ps aux | grep X” command, and it returned list of processes running X server.
Xorg -config command also gave message “there is x server with display 0” or a message very close to this.
Typing commands below also did not help me.
No protocol specified
samplePyside.py: cannot connect to X server :0.0
Could you please help me resolve this issue?