Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Python 2.5 and IDLE, Building Issues - Python 2.5 with Tcl/Tk< Next Oldest | Next Newest >
ubermai Offline





Group: Members
Posts: 17
Joined: Dec. 2006
Posted: Jan. 25 2007,03:37 QUOTE

I've recently begun learning the Python Scripting Language, and have been using it for a few projects. Until recently, I have been quite pleased with the posted python2.5 package (I use a .unc version). Now that my curiosity has brought me to GUI scripting in Python, I have found that the posted package cannot even run IDLE, the GUI based Python IDE.

After a few posts here on the subject, I resolved to create a more complete python2.5 package. Perhaps I've bitten off more than I can chew...

I attempted to use a combination of apt-get and deb2dsl, but found that the Debian packages listed are of an earlier version of Python. Unsure if packages from Debian's Testing or Unstable areas would be compatible, I attempted to work from source, with little success.

Should I use a different distro as my host for building the new package?

-n00berMai
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 25 2007,03:46 QUOTE

Have you considered trying to build it from source on DSL? My guess is that it should work without much trouble using gcc-with-libs

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
ubermai Offline





Group: Members
Posts: 17
Joined: Dec. 2006
Posted: Jan. 25 2007,10:05 QUOTE

I just tried DSL as the host environment a second time.
I compiled and installed Tcl, then Tk.
Everything in Python compiled except for tkinter, which gave the following error:

*** WARNING: renaming "_tkinter" since importing it failed: libtk8.4.so: cannot open shared object file: No such file or directory

Maybe I need to rtfm, but I know libtk8.4.so exists.
Back to top
Profile PM 
ubermai Offline





Group: Members
Posts: 17
Joined: Dec. 2006
Posted: Jan. 25 2007,20:06 QUOTE

I recompiled and installed Tcl/Tk with the prefix /usr instead of the default /usr/local...

Python appeared to compile without errors.

I was able to use Python and IDLE as installed to the ramdisk, and decided to build some extensions. Using the methods outlined in the Wiki and Forums, I created a gzipped tarball, renamed the extension to .dsl, and converted to .unc using the dsl2unc script.

Upon reboot (Ramdisk is cleared), I attempted to run the extension packages. Both the Tcl/Tk and Python packages mounted properly, but IDLE returned the following error upon startup (after a minute or two of inactivity):

(One strange error - Segmentation Fault - appeared at first)

Actually I can't recreate the initial error. The process seems to hang when I execute IDLE, and nothing else happens. This is a little better than simply not having the libraries...

Perhaps I cut out some required files... It was late last night. I'll try remaking the package.
Back to top
Profile PM 
ubermai Offline





Group: Members
Posts: 17
Joined: Dec. 2006
Posted: Jan. 26 2007,09:43 QUOTE

I went ahead and included (or so I think) all the installed files from the Python installer in my new extension.

It mounts fine, but I still get the segmentation error, and sometimes i get a stop error saying IDLE can't run without its subprocess.

but still no IDLE.
Back to top
Profile PM 
9 replies since Jan. 25 2007,03:37 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Python 2.5 and IDLE

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code