The time now is Thu 21 Jan 2021, 07:41
All times are UTC - 4 |
Author |
Message |
chiefengineer
Joined: 25 Mar 2013 Posts: 65
|
Posted: Tue 15 Sep 2015, 21:57 Post subject:
Problem running Tkinter.py in Fatdog 701 |
|
I have tk and tcl loaded, devx loaded, kernel headers loaded, python installed.
import Tkinter
fails with ImportError: No module named _tkinter.
Do I need to modify a path somehow? Thanks for any help.
|
Back to top
|
|
 |
chiefengineer
Joined: 25 Mar 2013 Posts: 65
|
Posted: Wed 16 Sep 2015, 17:09 Post subject:
Really dirty workaround Subject description: Accomplished |
|
No PYTHONPATH tricks worked, since the file didn't
exist...and just porting the file resulted in a bad ELF class
even under 32-bit-compatible sfs...no doubt because Python
itself was 64-bit...but tried it as long as I had clearly entered clusterxxxxland.
I also installed every other single thing in the repository that hinted of Python or Tk, to no avail.
Loaded Puppy with no save file. Downloaded
and installed Tcl, TclX, Tk, and Python 2.7.4.
All of these are txz's from Slackware 14.0.
Loaded 32bit-slacko6.sfs.
Installed the packages...and tkinter imports and works perfectly.
And we met our deadline.
I just have to do this every time or devote my time to choosing
between multiple savefiles which I'm uncertain of since I use
a 50Gb save folder presently.
Wish it were cleaner. I hope somebody shows me how stupid
I am and how easy this could have been.
Last edited by chiefengineer on Thu 17 Sep 2015, 15:16; edited 1 time in total
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 3475 Location: The Blue Marble
|
Posted: Wed 16 Sep 2015, 19:03 Post subject:
|
|
Sorry chiefengineer. The built-in python does not support Tkinter, because of its build order (python was built before Tcl/Tk was built). To solve the problem you will have to rebuild python when Tcl/Tk is already installed.
Look at the build recipe in /usr/src/pkgbuild/pkg/python-2.7.6* if you need guide on how to do this. The patches can be found in http://distro.ibiblio.org/fatdog/source/700/patches
_________________ Fatdog64 forum links: Latest version | Contributed packages | ISO builder
|
Back to top
|
|
 |
chiefengineer
Joined: 25 Mar 2013 Posts: 65
|
Posted: Thu 17 Sep 2015, 13:18 Post subject:
Much appreciation for Subject description: demystifying that for me |
|
I am guessing it is always going to be that way or this advice would not be forthcoming so I have started the rebuild...I guess running 32-bit Python is going to break something someday somewhere.
|
Back to top
|
|
 |
|
|
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 You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
[ Time: 1.1805s ][ Queries: 12 (1.1135s) ][ GZIP on ] |