Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 27 Jul 2016, 07:37
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Problem running Tkinter.py in Fatdog 701
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
chiefengineer

Joined: 25 Mar 2013
Posts: 34

PostPosted: 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
View user's profile Send private message 
chiefengineer

Joined: 25 Mar 2013
Posts: 34

PostPosted: 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
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2855
Location: The Blue Marble

PostPosted: 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, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread.
Back to top
View user's profile Send private message 
chiefengineer

Joined: 25 Mar 2013
Posts: 34

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0284s ][ Queries: 11 (0.0047s) ][ GZIP on ]