Unable to acces the X Display

Plattformunabhängige GUIs mit wxWidgets.
Antworten
Dav1d
User
Beiträge: 1437
Registriert: Donnerstag 30. Juli 2009, 12:03
Kontaktdaten:

Ich habe ein Problem mit meinem Debian, lenny, ich hab wxPython nach: http://wiki.wxpython.org/InstallingOnUbuntuOrDebian installiert, wenn ich jetzt irgendein Fenster erstellen will

Code: Alles auswählen

import wx
app = wx.App()
kommt der "Fehler", kein Traceback

Code: Alles auswählen

No protocol specified
Unable to access the X Display, is $DISPLAY set properly?
Ich hoffe ihr könnt mir weiterhelfen

mfg
the more they change the more they stay the same
Dav1d
User
Beiträge: 1437
Registriert: Donnerstag 30. Juli 2009, 12:03
Kontaktdaten:

gelöst, ich habe Python immer mit sudo gestartet

Code: Alles auswählen

sudo python test.py => Fehler
python test.py => Geht
the more they change the more they stay the same
Leonidas
Python-Forum Veteran
Beiträge: 16025
Registriert: Freitag 20. Juni 2003, 16:30
Kontaktdaten:

Natürlich, weil root nicht einfach Fenster auf deinem Desktop öffnen kann. Wenn du das trotzdem willst gibt es gksudo. Aber wenn du Python "immer" mit ``sudo`` gestartet hast, machst du was falsch.
My god, it's full of CARs! | Leonidasvoice vs (former) Modvoice
Dav1d
User
Beiträge: 1437
Registriert: Donnerstag 30. Juli 2009, 12:03
Kontaktdaten:

Jo, das dacht ich mir dann auch!

allerdings gibt es doch Funktionen / Skripte die root zugriff brauchen, oder irre ich mich da?
Zuletzt geändert von Dav1d am Samstag 14. November 2009, 13:50, insgesamt 1-mal geändert.
the more they change the more they stay the same
Leonidas
Python-Forum Veteran
Beiträge: 16025
Registriert: Freitag 20. Juni 2003, 16:30
Kontaktdaten:

Dav1d hat geschrieben:alerdings gibt es doch Funktionen / Skripte die root zugriff brauchen, oder irre ich mich da?
Ja, grob 0.1%.
My god, it's full of CARs! | Leonidasvoice vs (former) Modvoice
Antworten