python-idle missing tk in FatDog (Solved)

A home for all kinds of Puppy related projects
Post Reply
Message
Author
out-of-Whack
Posts: 15
Joined: Tue 03 Mar 2020, 03:27

python-idle missing tk in FatDog (Solved)

#1 Post by out-of-Whack »

Hi,

I am running the latest FD release and I get the following error message when I try to run idle (idle3/python3-3.6.5). Same happens on python 2.7.

"IDLE can't import Tkinter.
Your python may not be configured for TK."

After poking around in the folders, I found "tkinter" to be present. My guess there is somewhere a config file that should point to this folder? Is there someone who can point me in the right direction?

Thanks.
Last edited by out-of-Whack on Thu 05 Mar 2020, 03:42, edited 1 time in total.

out-of-Whack
Posts: 15
Joined: Tue 03 Mar 2020, 03:27

#2 Post by out-of-Whack »

Sorry, this was supposed to be in the Fat Dog section. How to transfer?

User avatar
6502coder
Posts: 677
Joined: Mon 23 Mar 2009, 18:07
Location: Western United States

#3 Post by 6502coder »

Be aware that one of the differences between Python2 and Python3 is that the module name changed from "Tkinter" to "tkinter".

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#4 Post by SFR »

Thanks, will be fixed in next release. For the time being just install these two:
http://distro.ibiblio.org/fatdog/packag ... 6_64-1.txz
http://distro.ibiblio.org/fatdog/packag ... 6_64-1.txz

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

out-of-Whack
Posts: 15
Joined: Tue 03 Mar 2020, 03:27

#5 Post by out-of-Whack »

@All, Thanks for your reply.

SFR I downloaded the python3-tk ... and installed.
To be more specific I converted to sfs per Rox Right Click,
and than loaded the sfs after I loaded the python3 sfs.
Typing python3 on the cli gives me the expected resonse,
so this seems to work. But "idle" still gives me the same
error message.

Since this did not work, I added "_tkinter.so" from the python3-tk...
to the "python3-3.6.5" sfs, so I have only one sfs to load, and also
to see if that makes a difference. But the results were the same, "idle"
missing "tkinter". Btw this was the only file I added, I did not add the
source folder. Maybe this is the mistake?

I am not sure if this is just a problem because I run it from sfs instead
of installing, or if the problem might be somewhere else.
Sorry for the lengthy message.

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#6 Post by SFR »

Both methods should work, but "idle" is for Python2.7, Python3.6 uses "idle3".
Did you try that, too?

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

out-of-Whack
Posts: 15
Joined: Tue 03 Mar 2020, 03:27

#7 Post by out-of-Whack »

Sorry, I did not mention this, yes I typed idle3. And to check python, I typed python3, for the 3.6 version.

I uninstalled some built-in apps did a remaster and replaced initrd with the one from the remaster, but I don't really see this an issue. That was before trying out python.

... maybe Tkinter is not finding Tcl/Tk ?

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#8 Post by SFR »

... maybe Tkinter is not finding Tcl/Tk ?
Did you install Tcl/Tk?
To be more specific I converted to sfs per Rox Right Click,
and than loaded the sfs after I loaded the python3 sfs.
Both Pythons as well as Tcl/Tk are in fd64-devx_810.sfs, so maybe give it a try, instead of separate pkgs/SFSes?
To quickly check that it really works, boot using the original initrd with 'savefile=none' (if you're using savefile/dir), load devx.sfs, install the linked packages and this should work for sure.
Then try with your remastered initrd, but still without the savefile and see if it works, too.

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

out-of-Whack
Posts: 15
Joined: Tue 03 Mar 2020, 03:27

#9 Post by out-of-Whack »

Thanks SFR, I will give this a shot and report back.

I did not know python 3 was in the devx, saw python 2.7 though.

out-of-Whack
Posts: 15
Joined: Tue 03 Mar 2020, 03:27

#10 Post by out-of-Whack »

Loaded devx and python3-tk... which solved the problem.
Thanks again.

How do I mark this thread as solved?

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#11 Post by bigpup »

Edit the subject of the first post and add solved.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Post Reply