Apps :: python and Tkinter



An easy Q first.  How to know what version of DSL is running?  I think it's 3.3.1 installed to hard drive.

I installed python from mydsl.  <which python> returns /opt/python/bin/python.  I added this to the path but importing Tkinter fails with a message that python may not be configured for Tk.

Does python need to be installed by a different method?

Many python extensions to choose from:

./system/python2.3.info
./system/python2.3.tar.gz
./system/python2.3.tar.gz.md5.txt
./testing/python-2.5.uci
./testing/nicotine-python-gtk2-1.0.8.dsl
./testing/nicotine-python-gtk2-1.0.8.dsl.info
./testing/nicotine-python-gtk2-1.0.8.dsl.md5.txt
./testing/python-2.5.uci.md5.txt
./testing/python2.5.uci
./testing/python2.5.uci.info
./testing/python2.5.uci.md5.txt
./testing/python-2.3.uci
./testing/python-2.3.uci.info
./testing/python-2.3.uci.md5.txt
./testing/python-2.5.uci.info
./uci/python.uci
./uci/python.uci.info
./uci/python.uci.md5.txt
./uci/python2.3-gtk2.uci
./uci/python2.3-gtk2.uci.info
./uci/python2.3-gtk2.uci.md5.txt
./unc/nicotine-python-gtk2-1.0.8.unc
./unc/nicotine-python-gtk2-1.0.8.unc.info
./unc/nicotine-python-gtk2-1.0.8.unc.md5.txt
./unc/python2.5.unc
./unc/python2.5.unc.info
./unc/python2.5.unc.md5.txt


Take a look in the testing area, as it will have the latest.

Read the .info files for more information.

Read the info file for python2.5uci in testing.
The info file mentions tcl/tk.

Quote (muddywaters @ Dec. 15 2007,10:59)
An easy Q first.  How to know what version of DSL is running?  I think it's 3.3.1 installed to hard drive.

See System > System Stats.
Thanks for the replies.

 Hmm, looked at system stats and missed the version number. The position right at the top must have thrown me off :)  3.1 btw

  All those extra python extensions didn't appear until a switch of servers. Thank you mikshaw and "anon" for the packages!

  Is there a way to make these persistent with a hd install or will they need to be loaded at every reboot?

 Happy holidays folks, whatever your religious beliefs.

Quote
Is there a way to make these persistent with a hd install or will they need to be loaded at every reboot?
If it's tar.gz or dsl it should persist on a traditional debian-style harddrive install. If it's unc you can copy the directories from opt/whatever into the base system (the unc should include bin, lib, and other standard directories). If it's uci you can copy the whole /opt/whatever directory to a temporary directory, uninstall (umount) the uci, then move the copied directory to /opt/whatever ("whatever" being the name of the original program directory installed from the uci).

Quote
Thank you mikshaw and "anon" for the packages!
Although i know I've created a Python extension for my own personal use, I don't remember ever submitting it to mydsl due to my limited internet speed. Maybe I'm crazier than I thought...

Next Page...
original here.