Python may not be configured for Tk

Python auf Einplatinencomputer wie Raspberry Pi, Banana Pi / Python für Micro-Controller
Antworten
rabie
User
Beiträge: 2
Registriert: Samstag 24. Juli 2021, 10:53

Hallo Allerseits,

ich bin neu hier und brauche eure Hilfe.

Also ich versuche gerade ein tkinter Programm auf dem Betriebssystem PiCore zu starten (http://tinycorelinux.net/13.x/armv7/)
Das Programm funktioniert 100% auf andere Linux distributionen.

Leider bekomme ich die Fehlermeldung auf dem Betriebssystem PiCore armv7 ("import _tkinter # If this fails your Python may not be configured for Tk"), obwohl ich schon tk and tcl schon installiert habe.

Die Administratoren vom Forum TinyCore vermuten, dass python2.7, python3.8 and python3.9 sind nicht für tk kompiliert ist.

Antwort vom Admin: As per the *tcz.list files in piCore-13.x armv7, python2.7, python3.8 and python3.9 do not contain _tkinter*.so, so I would guess (I may be wrong) that they were not compiled against tk.
Drop the python maintainer a pm to request if they could recompile python against tk.


Hier einmal der Link für das Thread "http://forum.tinycorelinux.net/index.ph ... 39.15.html"

Kann jemand helfen ?

Danke im Voraus!
Sirius3
User
Beiträge: 17703
Registriert: Sonntag 21. Oktober 2012, 17:20

Was ist an der Antwort nicht klar? Python muß man mit tkinter-Unterstützung extra kompilieren. Das kannst Du entweder selbst machen, oder die Maintainer fragen, ob er ein solches Paket zur Verfügung stellt.
rabie
User
Beiträge: 2
Registriert: Samstag 24. Juli 2021, 10:53

wie kann ich den Maintainer kontaktieren ?

Gruß
Benutzeravatar
__blackjack__
User
Beiträge: 12984
Registriert: Samstag 2. Juni 2018, 10:21
Wohnort: 127.0.0.1
Kontaktdaten:

@rabie: Ich würde mal schauen ob es nicht ein `python-tkinter`-Paket (oder `python3-tkinter` oder so ähnlich) gibt, denn die meisten Linux-Distros lagern das in ein eigenes Paket aus, damit man auf einem System ohne grafische Oberfläche Python installieren kann, ohne dass das einen X-Server (o.ä.) als Abhängigkeit nach sich zieht. So etwas will man auf einem reinen Server in der Regel ja beispielsweise nicht haben.
“Most people find the concept of programming obvious, but the doing impossible.” — Alan J. Perlis
Antworten