Jump to content

Brickv does not run on Raspberry - QXcbConnection


Recommended Posts

Geschrieben

Dear community,

 

I'd like to log data to a csv file from my bricklets using the brick datalogger functionality directly on my Raspberry Pi.

 

Brick Deamon runs as well on the Pi. Brick Viewer on my Macbook runs perfectly fine together with this deamon. Here I can easily enable the function to write log files to a csv. Now I am stuck at the last step of installing Brickviewer on the Pi, as described here: https://www.tinkerforge.com/en/doc/Software/Brickv_Install_Linux.html#brickv-install-linux

 

Which is run main.py from folder "src/brickv/"

 

I get the following error. Please note that I run this from a different folder as this seems to be the folder where the relevant files are residing.

 

root@raspberrypi:/usr/share/brickv# python main.py

QXcbConnection: Could not connect to display

Abgebrochen

Geschrieben

As there is a brickv folder in /usr/share, did you install the Brick Viewer Debian package or from source? The Debian package typically is installed to /usr/share/brickv. To start the Brick Viewer, you can run brickv from the terminal instead of calling main.py directly.

 

The error message indicates, that Qt can not reach the X server. Are you running your graphical interface as root or as another user? If so, Brick Viewer should work if you run it as the "normal" user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

×   Du hast formatierten Text eingefügt.   Formatierung jetzt entfernen

  Only 75 emoji are allowed.

×   Dein Link wurde automatisch eingebettet.   Einbetten rückgängig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Clear editor

×   Du kannst Bilder nicht direkt einfügen. Lade Bilder hoch oder lade sie von einer URL.

×
×
  • Neu erstellen...