Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[gelöst] otr-verwaltung, PyGTK/GTK is missing
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
cryptosteve
Veteran
Veteran


Joined: 04 Jan 2004
Posts: 1169
Location: GER

PostPosted: Wed Sep 19, 2012 5:16 pm    Post subject: [gelöst] otr-verwaltung, PyGTK/GTK is missing Reply with quote

Moin,
ich versuche otr-verwaltung[1] zum Laufen zu bringen und ich könnte schwören, es hätte auch schonmal funktioniert. Aktuell wird mir der Startversuch allerdings mit folgender Meldung abgebrochen:
Code:
[stell @ fightclub:~]% otr
  File "/usr/local/bin/otr", line 35
    print "PyGTK/GTK is missing."
                                ^
SyntaxError: invalid syntax

wobei "otr" ein Symlink aufs richtige python-Skript ist.

dev-python/pygtk ist natürlich installiert, und revdep-rebuild, lafilefixer und python-updater laufen alle ohne Fehlermeldungen durch.

Hat das zufällig jemand im Einsatz und kann mir dazu ein paar Infos geben?

[1] = http://elbersb.de/otrverwaltung/
_________________
- born to create drama -
gpg: 0x9B6C7E15
CS Virtual Travel Bug: VF6G5D


Last edited by cryptosteve on Thu Sep 20, 2012 3:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Wed Sep 19, 2012 7:59 pm    Post subject: Reply with quote

otr mag kein python:3
entweder das Script portieren (puh...) oder mit python:2 starten

// edit:
Der Fehler liegt in der Syntax ^^
print "message" geht in py:3 nicht, da muss das print("message") heißen, also mit Klammern.
Back to top
View user's profile Send private message
cryptosteve
Veteran
Veteran


Joined: 04 Jan 2004
Posts: 1169
Location: GER

PostPosted: Wed Sep 19, 2012 8:27 pm    Post subject: Reply with quote

Hmm .. darauf bin ich jetzt gar nicht gekommen.

Vielen Dank, dann muss ich mal schauen, wie ich das löse. Hinsichtlich python3 ist print "message" sicher nicht mein größtes Problem. :D
_________________
- born to create drama -
gpg: 0x9B6C7E15
CS Virtual Travel Bug: VF6G5D
Back to top
View user's profile Send private message
cryptosteve
Veteran
Veteran


Joined: 04 Jan 2004
Posts: 1169
Location: GER

PostPosted: Thu Sep 20, 2012 3:42 pm    Post subject: Reply with quote

franzf wrote:
entweder das Script portieren (puh...) oder mit python:2 starten

danke nochmal, hat 1a funktioniert. Ich habe den Symlink jetzt einfach gegen ein kurzes Shellskript getauscht, dass otr.py direkt via python2 aufruft.
_________________
- born to create drama -
gpg: 0x9B6C7E15
CS Virtual Travel Bug: VF6G5D
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4565

PostPosted: Thu Sep 20, 2012 3:49 pm    Post subject: Reply with quote

cryptosteve wrote:
franzf wrote:
entweder das Script portieren (puh...) oder mit python:2 starten

danke nochmal, hat 1a funktioniert. Ich habe den Symlink jetzt einfach gegen ein kurzes Shellskript getauscht, dass otr.py direkt via python2 aufruft.

Geht auch einfacher:
Code:
#!/bin/env python2

in die erste Zeile des python-scripts, dann nimmt der selbstständig python2 :)
Back to top
View user's profile Send private message
cryptosteve
Veteran
Veteran


Joined: 04 Jan 2004
Posts: 1169
Location: GER

PostPosted: Thu Sep 20, 2012 3:59 pm    Post subject: Reply with quote

Ja, wäre 'ne tolle Idee, aber erstens checke ich direkt aus dem git aus und das würde immer überschrieben werden und zweitens ist das ein geteiltes Verzeichnis, auf das auch andere Distributionen zugreifen und da geht python2 ins Leere. Klar, da könnte ich dann auch symlinks setzen, aber ... ist schon ok so. :)
_________________
- born to create drama -
gpg: 0x9B6C7E15
CS Virtual Travel Bug: VF6G5D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum