Hi,
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
import sys
from PySide import QtGui
app = QtGui.QtApplication(sys.argv) —> this line giving error “cannot connect to x server”
sys.exit(app.exec_())
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.
$export DISPLAY=:0.0
$python samplePyside.py
No protocol specified
samplePyside.py: cannot connect to X server :0.0
Could you please help me resolve this issue?