Python 2.6.4 and Python 3.1.1

Miscellaneous tools
Message
Author
2lss
Posts: 225
Joined: Sun 20 Sep 2009, 23:54

#21 Post by 2lss »

Same problem here. I tried all of the passwords above and no luck.

User avatar
rpkopreski
Posts: 19
Joined: Fri 03 Jul 2009, 20:39
Location: New England
Contact:

Python Tcl/Tk PET: _tkinter module

#22 Post by rpkopreski »

Hi, I was able to produce this Python2.6 PET configured with Tcl/Tk. It can be downloaded from this website. You just need to register first.

http://chemtoolbox.com/index.php/reposi ... elect&id=6

Regards
synergenerator
H: Ubuntu Studio 8.04 / XP Black (unattended)
W: Ubuntu 9.04 / XP
M: Crunchbang / Puppy-4.2.1 - ChemPup-0.2.5 / XP

2lss
Posts: 225
Joined: Sun 20 Sep 2009, 23:54

#23 Post by 2lss »

rpkopreski: Thanks! But do I need all three pets or just the "python 2.6 & tcl/tk?"

EDIT: I installed the python 2.6 & tcl/tk pet and everything works ok, but how do I get idle to work? I'm not sure if its included or I need a separate pet.

User avatar
rpkopreski
Posts: 19
Joined: Fri 03 Jul 2009, 20:39
Location: New England
Contact:

No IDLE

#24 Post by rpkopreski »

2lss,

Sorry, I personally only needed the _tkinter module configured for python so I did not add anything related to IDLE, in fact, I don't know what it is/does. I'm sorry I couldn't be more helpful. If I get a chance, I may look into the ins-and-outs of IDLE and see if I can help more.
synergenerator
H: Ubuntu Studio 8.04 / XP Black (unattended)
W: Ubuntu 9.04 / XP
M: Crunchbang / Puppy-4.2.1 - ChemPup-0.2.5 / XP

2lss
Posts: 225
Joined: Sun 20 Sep 2009, 23:54

#25 Post by 2lss »

rpkopreski: Idle is an Ide for python. http://en.wikipedia.org/wiki/IDLE_(Python) From what the guys on #python told me as long as _tkinter is present ./configure should build idle by default.

I ended up trying to build python with idle but make threw up an error

Code: Select all

Failed to find the necessary bits to build these modules:
_tkinter           bsddb185           sunaudiodev     
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
I'm assuming that make can't find some part of tcl/tk so I checked the config.log and found:

Code: Select all

configure:22699: checking for UCS-4 tcl
configure:22727: gcc -pthread -c -g -O2  conftest.c >&5
conftest.c:239:17: error: tcl.h: No such file or directory
conftest.c:241:3: error: #error "NOT UCS4_TCL"
configure:22733: $? = 1
configure: failed program was:
| /* confdefs.h.  */ 
But after searching for hours I have yet to figure out what that means. :shock:

User avatar
moogsydodong
Posts: 81
Joined: Mon 16 Mar 2009, 10:35
Location: Tagum City, Davao del Norte, Mindanao, Philippines

#26 Post by moogsydodong »

my python 2.6.4 sfs with tcl_tk and a working IDLE
get it here:

python-2.6.4_tcl_tk-8.5_431.sfs
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#27 Post by 8-bit »

moogsydodong wrote:my python 2.6.4 sfs with tcl_tk and a working IDLE
get it here:

python-2.6.4_tcl_tk-8.5_431.sfs
I just downloaded from your link with no name or password required.

User avatar
moogsydodong
Posts: 81
Joined: Mon 16 Mar 2009, 10:35
Location: Tagum City, Davao del Norte, Mindanao, Philippines

#28 Post by moogsydodong »

hi 8-bit...

tnx for downloading...please inform me for any problems in my package...

sorry about the size of the package...its quite big about 17mb+ compared to technos 3-6mb packages with pygtk and other goodies...
I didn't do any stripping because I don't know a safe way to strip unnecessary files its my first package compiled from source...

maybe next time I'll know how... :wink:
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

2lss
Posts: 225
Joined: Sun 20 Sep 2009, 23:54

#29 Post by 2lss »

moogsydodong: Thank you, python and idle are working good.

User avatar
moogsydodong
Posts: 81
Joined: Mon 16 Mar 2009, 10:35
Location: Tagum City, Davao del Norte, Mindanao, Philippines

#30 Post by moogsydodong »

no probs...

just PM me for any concerns...
I'm trying a lot of compilation from sources lately...
packaging and repackaging pets and sfs for personal and general use...

by the way what are you doing with python???
are you a professional programmer???
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

2lss
Posts: 225
Joined: Sun 20 Sep 2009, 23:54

#31 Post by 2lss »

moogsydodong: No I am not a professional programmer. Although I hope to one day be a good one :) . Python is just something I play around with.

hailpuppy
Posts: 73
Joined: Wed 28 Oct 2009, 07:49

#32 Post by hailpuppy »

Hi moogsydodong,

Hey cool to see a Python admiror.Im a serious python lover and regret a lot because we puppyians do not have something like portable python

http://www.portablepython.com/

If you really love python please please please do work on it.We may not have to worry about the size of it as now we have a sfs loader

http://murga-linux.com/puppy/viewtopic.php?t=47465

with which we can use and uninstall sfs packages at our will.Turining puppy into something like a hostfor portable applications!!!!

One feature that puppy had been lacking was good programing language support for developers.Hmm.let me work on some links and post it here so that you can see the void that we have for python in the puppy linux world.We have also BIgbass working on this but let me sum up some herioc efforts of puppience to turn puppylinux a good host for developers.

And moogsydodong, please do continue your good work for the sake of all of us..I love you for that :)

hailpuppy
Posts: 73
Joined: Wed 28 Oct 2009, 07:49

#33 Post by hailpuppy »

HI buddy,

I m one of those poor fellows who is deeply in love with puppylinux and worry because i do not have the technical competency to contribute to the puppylinux world.but i do believe that if we all work in a bit more organised way we can make puppy the best distro out there.I was so far been searching for a proper python solution and finally landed on your post for a working python sfs luckily. I also downloaded and tried it using sfslinker

http://murga-linux.com/puppy/viewtopic.php?t=47465

with choicepup4.31 and your sfs did work.Even i saw a menu item but when I clicked it idle didnt appear,

And as you also had noted i tried to type idle in console also but it also gave an error message like shown in the attachment.Why could this be???

DMcCunney
Posts: 889
Joined: Tue 03 Feb 2009, 00:45

#34 Post by DMcCunney »

hailpuppy wrote: And as you also had noted i tried to type idle in console also but it also gave an error message like shown in the attachment.Why could this be???
Note the last line in the error dialog. Looks like idle is trying to update the recent files list, but can't because it's in a read-only file system.

Are you running a frugal install?
______
Dennis

ITAmember
Posts: 167
Joined: Sun 13 Sep 2009, 18:50
Location: The middle of a cornfield

#35 Post by ITAmember »

A quick workaround would be to open up /root with ROX, click on the "eye" to show hidden files, right click on .idlerc and set the permissions to read/write/execute for all users.

hailpuppy
Posts: 73
Joined: Wed 28 Oct 2009, 07:49

#36 Post by hailpuppy »

Hi DMcCunney, im using a live cd.Is that what has caused the problem??:-(

And ITAmember, Yes I tried what you said but still no good.Hmm guys Is there a way to create sfs files or to convert pet.files to sfs.?Im a extreme novice when it comes to programming and stuff but I once remastered a puppy with Python,Tkinter and wxPython with pet packages available. Hope there is a way I can get around with this my level of knowledge. And thanks guys you guys are doing a damn god job.. :D :D :D :D :D

hailpuppy
Posts: 73
Joined: Wed 28 Oct 2009, 07:49

#37 Post by hailpuppy »

HI,
Follow this link http://dotpups.de/ITAmember/python/ and you will get Python 3.1.1 with Tkinter and IDLE.I just ran a print "hellow py3k" using IDLE on puppy 4.31 and it worked!!!! Thanks a million times to ITAmember for uploading this life savor!!! Laughing I am a die hard fan of the cool rebelic python,and puppy linux and now i have another joy to celebrate "py3k on python" I will shortly update a thread with links to other python sources also. Thanks again ITAmember:)

hailpuppy
Posts: 73
Joined: Wed 28 Oct 2009, 07:49

Python 3.1.1 with Tkinter and IDLE on puppy 4.31

#38 Post by hailpuppy »


xia1498
Posts: 15
Joined: Sun 31 Oct 2010, 20:24

Geany no longer compiles

#39 Post by xia1498 »

I don't know if i inadvertently did something but i can no longer get Geany to compile anything with any language.
I receive the following outputs depending on what language i try.

compilation failed
/bin/sh: python: command not found
/bin/sh: g++: command not found
/bin/sh: javac: command not found
/bin/sh: php: command not found

I am no expert on this so I don't want to waste anyone's time if it is a complicated process to fix. But if there is a somewhat simple fix i would appreciate the info.

afishe2000
Posts: 37
Joined: Fri 29 Jan 2010, 16:09

#40 Post by afishe2000 »

I used this thread to help me make this work so thought I'd post here here too.. It's also in the Programming section.

I've set this up on a couple of machines now and thought I'd pass it along...

It may not be the most up to date libraries and such, but it works.

Installing Python:
Using Puppy Package Manager under the category System install python_plus-2.6.6-i486-s

After installing you will have the following missing libraries:

libtcl8.5.so libtk8.5.so libgoocanvas.so.3

Open a console and type "python" you should see:

#python
Python 2.6.6 (r266:84292, Nov 27 2010, 1947:39)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license for more information
>>>


(No errors in the python installation)

Type "quit()" to exit python

Cleaning up two of the missing libraries:
Goto http://dotpups.de/ITAmember/python/, download and install:
tcl-8.5.7-p4.pet
tk-8.5.7-p4.pet

Open a console and type "python" then "import Tkinter" you should see:

#python
Python 2.6.6 (r266:84292, Nov 27 2010, 1947:39)
[GCC 4.5.1] on linux2
Type "help", "copyright", "credits" or "license for more information
>>>import Tkinter
>>>


(No errors in the Tkinter installation)

Again type "quit()" to exit python

** No solution for the missing libgoocanvas.so.3 library yet **
I am not having any problems programming without it so far...


Getting Geany to execute Python programs:
Open Geany and select Edit > Preferences
In Tools change the Terminal to "/usr/bin/xterm -e ebash -c"

Testing Tkinter:
Open Geany and create a new document and enter

Code: Select all

from Tkinter import *
root = Tk()
w = Label(root, text="Hello, world!")
w.pack()
root.mainloop()

Save it as HelloWorld.py

Press the Execute button

The program should execute without errors

Reference Material:
http://www.pythonware.com/library/tkint ... /index.htm

Useful Python Libraries
Basic setup instructions:
1. Download the source from one of the links below
2. Unpack the source distribution and change directory to the resulting top-level directory.
3. Type "python setup.py install"

http://www.crummy.com/software/BeautifulSoup/
http://wwwsearch.sourceforge.net/mechanize/

Post Reply