Python-IDLE starten

B

baracuda

Mitglied
Hi

ich bin ja noch openSUSE-Anfänger aber das ich mal vor so einem Problem stehen würde, hätte ich nicht gedacht.
Ich habe mir mal das Python-IDLE heruntergeladen mit dem Paketmanager, aber ich kann es nicht starten, da es im Startmenu nicht auftaucht!? Auch in yast nicht... ich bin verzweifelt. Installiert ist es, so heissts zumindest im Paketmanager.

danke im voraus, baracuda
 
KDE oder gnome?

Wenn gnome, dann findest du unter "Applications" -> "Programming" den entsprechenden Eintrag.

Wenn nicht kannst du das Ding auch via Aufruf von

Code:
idle-python2.5 &

in der Konsole starten.

P.S.: Ich finde ja das User Interface von IDLE mit eines der schlechtesten Designs die ich jemals gesehen habe, deshalb verwende ich mittlerweile eclipse + entsprechendes Plugin für python.
 
?

Wenn ich das Kommando eingebe, kommt folgendes raus:
Code:
~> idle-python2.5 &
bash: idle-python2.5: command not found
[1] 9346
[1]+  Exit 127                idle-python2.5
Ich habe übrigens gnome. Ich habe mir Testweise mal "Eric" installiert (ein IDE für Python, muss mal sehen was es taugt) um zumindest die Rubrik "Entwicklung" im klassischen Startmenu einzurichten, falls das beim Python IDLE gescheitert sein sollte. Trotz Neuinstallation auch hier kein Ergebnis.

lg

PS: ein gnome-Bug? wenn ich auf das klassische Startmenu im Panel rechtsklicke und "Menüs bearbeiten" wähle, stürzt gnome ab und der Bug-Reporter taucht auf. Als aber selbst der trotz bestehender Internetverbindung versagte, meinen Fehlerbericht einzusenden, hab ichs aufgegeben, denn Bug zu melden.
 
Code:
idle &

funktioniert genauso wenig und führt zu folgender Ausgabe:

Code:
~> idle &
[1] 12646
~> Traceback (most recent call last):
  File "/usr/bin/idle", line 3, in <module>
    from idlelib.PyShell import main
  File "/usr/lib/python2.5/idlelib/PyShell.py", line 27, in <module>
    from EditorWindow import EditorWindow, fixwordbreaks
  File "/usr/lib/python2.5/idlelib/EditorWindow.py", line 42, in <module>
    class EditorWindow(object):
  File "/usr/lib/python2.5/idlelib/EditorWindow.py", line 44, in EditorWindow
    from ColorDelegator import ColorDelegator
  File "/usr/lib/python2.5/idlelib/ColorDelegator.py", line 31, in <module>
    prog = re.compile(make_pat(), re.S)
  File "/usr/lib/python2.5/idlelib/ColorDelegator.py", line 16, in make_pat
    kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b"
AttributeError: 'module' object has no attribute 'kwlist'

lg
 
Ähm, müsste es nicht einfach:
Code:

idle &

heißen ?

Bei mir - unter Ubuntu Hardy - ist es eben idle-python.

~> idle &
[1] 12646
~> Traceback (most recent call last):
File "/usr/bin/idle", line 3, in <module>
from idlelib.PyShell import main
File "/usr/lib/python2.5/idlelib/PyShell.py", line 27, in <module>
from EditorWindow import EditorWindow, fixwordbreaks
File "/usr/lib/python2.5/idlelib/EditorWindow.py", line 42, in <module>
class EditorWindow(object):
File "/usr/lib/python2.5/idlelib/EditorWindow.py", line 44, in EditorWindow
from ColorDelegator import ColorDelegator
File "/usr/lib/python2.5/idlelib/ColorDelegator.py", line 31, in <module>
prog = re.compile(make_pat(), re.S)
File "/usr/lib/python2.5/idlelib/ColorDelegator.py", line 16, in make_pat
kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b"
AttributeError: 'module' object has no attribute 'kwlist'

Na, damit sind wir doch schon mal weiter.

Poste mal die Ausgabe von

Code:
rpm -qa | egrep -i 'python|idle'

Desweiteren die Ausgabe von

Code:
idle [ZWEI MAL TAB DRÜCKEN]

Wie hast du idle installiert? Sauber über die Paketverwaltung?
 
Ausgabe

erster Befehl:

Code:
~> rpm -qa | egrep -i 'python|idle'
python-idle-2.5.2-26.1
python-2.5.2-26.1
python-gobject2-2.14.1-15.1
python-gtkglext-1.1.0-61.1
python-qt4-4.4.2-6.1
python-orbit-2.14.3-93.1
python-gnome-2.22.0-21.1
python-gtksourceview-2.2.0-15.1
gnome-python-desktop-2.22.0-29.1
python-doc-2.5.1-75.1
python-qscintilla-1.73-103.1
python-xml-2.5.2-26.1
python-cairo-1.4.12-19.1
python-compizconfig-0.7.4-28.1
python-gdata-1.0.11.1-16.1
libxml2-python-2.6.32-14.1
python-opengl-2.0.1.09-224.1
python-tk-2.5.2-26.1
python-gnome-extras-2.19.1-92.1
python-sip-4.7.6-5.1
python-lxml-2.0.4-14.1
dbus-1-python-0.82.4-49.1
python-imaging-1.1.6-165.1
gimp-plugins-python-2.4.6-1.5
python-numeric-24.2-162.1
python-gtk-2.12.1-18.1

zweiter Befehl:

Code:
~> idle
Traceback (most recent call last):
  File "/usr/bin/idle", line 3, in <module>
    from idlelib.PyShell import main
  File "/usr/lib/python2.5/idlelib/PyShell.py", line 27, in <module>
    from EditorWindow import EditorWindow, fixwordbreaks
  File "/usr/lib/python2.5/idlelib/EditorWindow.py", line 42, in <module>
    class EditorWindow(object):
  File "/usr/lib/python2.5/idlelib/EditorWindow.py", line 44, in EditorWindow
    from ColorDelegator import ColorDelegator
  File "/usr/lib/python2.5/idlelib/ColorDelegator.py", line 31, in <module>
    prog = re.compile(make_pat(), re.S)
  File "/usr/lib/python2.5/idlelib/ColorDelegator.py", line 16, in make_pat
    kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b"
AttributeError: 'module' object has no attribute 'kwlist'

lg
 
Code:
zypper in python-idle

Das folgende NEUE Paket wird installiert:
  python-idle


Gesamtgröße des Herunterladens: 350,0 K. Nach der Operation werden zusätzlich 1,4 M genutzt.
Fortfahren? [JA/nein]:
Herunterladen von Paket python-idle-2.5.2-26.2.i586 (1/1), 350,0 K (1,4 M installiert)
Lade herunter: python-idle-2.5.2-26.2.i586.rpm [fertig]
Installiere: python-idle-2.5.2-26.2 [fertig]

idle &
Works for me™

Code:
cat /etc/SuSE-release

su 

Passwort

zypper sl
sagt?
 
Entschuldigung...

natürlich sauber über die Paketverwaltung :))

zum Code in der vorherigen Antwort:

Code:
cat /etc/SuSE-release
openSUSE 11.0 (i586)
VERSION = 11.0


Code:
zypper sl
# | Alias                 | Name                  | Aktiviert | Auffrischen
--+-----------------------+-----------------------+-----------+------------
1 | openSUSE-11.0-Oss     | openSUSE-11.0-Oss     | Ja        | Nein
2 | openSUSE-11.0-Updates | openSUSE-11.0-Updates | Ja        | Nein
3 | server:messaging      | server:messaging      | Ja        | Ja
4 | GNOME:Community       | GNOME:Community       | Ja        | Ja
5 | openSUSE-11.0-Non-Oss | openSUSE-11.0-Non-Oss | Ja        | Nein
.
.
.
EDIT (autom. Beitragszusammenführung) :
.

Die "works for me" - Variante habe ich ausprobiert, ohne Erfolg:
Code:
 zypper in python-idle
Lese installierte Pakete...

Das folgende NEUE Paket wird installiert:
  python-idle


Gesamtgröße des Herunterladens: 350,0 K. Nach der Operation werden zusätzlich 1,4 M genutzt.
Fortfahren? [JA/nein]: ja
Herunterladen von Paket python-idle-2.5.2-26.1.i586 (1/1), 350,0 K (1,4 M installiert)
Lade herunter: python-idle-2.5.2-26.1.i586.rpm [fertig (57,2 K/s)]
Installiere: python-idle-2.5.2-26.1 [fertig]
linux-6j9s:/home/falco # idle &
[1] 4564
linux-6j9s:/home/falco # Traceback (most recent call last):
  File "/usr/bin/idle", line 3, in <module>
    from idlelib.PyShell import main
  File "/usr/lib/python2.5/idlelib/PyShell.py", line 27, in <module>
    from EditorWindow import EditorWindow, fixwordbreaks
  File "/usr/lib/python2.5/idlelib/EditorWindow.py", line 42, in <module>
    class EditorWindow(object):
  File "/usr/lib/python2.5/idlelib/EditorWindow.py", line 44, in EditorWindow
    from ColorDelegator import ColorDelegator
  File "/usr/lib/python2.5/idlelib/ColorDelegator.py", line 31, in <module>
    prog = re.compile(make_pat(), re.S)
  File "/usr/lib/python2.5/idlelib/ColorDelegator.py", line 16, in make_pat
    kw = r"\b" + any("KEYWORD", keyword.kwlist) + r"\b"
AttributeError: 'module' object has no attribute 'kwlist'
 
Zuletzt bearbeitet:
Code:
2 | openSUSE-11.0-Updates | openSUSE-11.0-Updates | Ja        | Nein
Das ist schon mal unsinnig, das Updates-Repo sollte natürlich auch auf "Auffrischen" stehen (OSS und non-OSS sind statisch, die muss man nicht auffrischen).

Code:
4 | GNOME:Community       | GNOME:Community       | Ja        | Ja
Und ich könnte wetten, daß hier das Problem legt.

Die Pakete aus dem GNOME-Community Repository sind (genau so wie die der KDE-Repos) _keine_ offiziellen Updates sondern Snapshots (meist direkt aus SVN gebaut).

Repo deaktivieren und alles, was aus diesem Repository kommt (YaST hilft dabei) gegen Versionen aus OSS/NON-OSS/Updates austauschen.

//edit:

Mit zypper findet man die installierten Pakete aus dem GNOME-Community Repository so heraus:

Code:
zypper se -r 4 | grep "i |"

oder:

zypper se -r GNOME:Community  | grep "i |"
 
Zuletzt bearbeitet von einem Moderator:
Das Problem besteht weiterhin :( , selbst nachdem ich die GNOME:Community-Source komplett von meinem System getilgt hatte.
Unter den neu zu installierenden Sachen waren auch ein paar Python-Bestandteile gelistet, alles wurde aus den offiziellen openSUSE-Quellen ersetzt.
Aber nachdem ich das gemacht hatte, führte ich nochmal die Kommandos aus, um sicher zu gehen, und bin auf folgendes gestoßen:

Code:
~> zypper se -r GNOME:Community | grep "i |"
[1]+  Exit 1                  idle

PS.: die Update-Repo ist jetzt auf "Auffrischen" eingestellt.
 

Ähnliche Themen

PATH wird nicht richtig durchsucht

Empfehlung für Server Distribution

Kann Image mit Clonezilla nicht restoren

Fehlerhafte Installation von OpenSUSE 13.1

python - Verschachteltes Kommandozeilen-Parsen

Zurück
Oben