Page 1 of 3

Python 2.6.4 and Python 3.1.1

Posted: Thu 05 Nov 2009, 21:50
by ITAmember
These .pets coexist with other python installations. To make them the default python symlink either /usr/bin/python2.6 or /usr/bin/python3.1 as /usr/bin/python. Both are built without tcl/tk. I currently have both .pets and the Python that comes with devx_xxx.sfs on my puppy.

Python 2.6
Python 3.1

IF YOU DOWNLOADED THIS PET BEFORE NOVEMBER 12, 2009

Please uninstall the old pet and reinstall using the above links. The original pets had some issues.

Posted: Fri 06 Nov 2009, 01:28
by Lobster
eh . . . ? There is no Python in the devx.
You mean Genie?

My intro to Python (ever more ads from the shameless host)
http://peace.wikia.com/wiki/Python

your pets added here
http://puppylinux.org/wikka/Python
(that page needs updating)

Posted: Fri 06 Nov 2009, 01:52
by ITAmember
Python 2.5 come with the 4.1.2 devx. Not sure about new devx versions

Posted: Fri 06 Nov 2009, 02:29
by Lobster
Installed in 4.3.1

created this with geany (idle not available?)

my contribution was
print 'hi'

Code: Select all

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#       untitled.py
#       
#       Copyright 2009 root <root@puppypc>
#       
#       This program is free software; you can redistribute it and/or modify
#       it under the terms of the GNU General Public License as published by
#       the Free Software Foundation; either version 2 of the License, or
#       (at your option) any later version.
#       
#       This program is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#       GNU General Public License for more details.
#       
#       You should have received a copy of the GNU General Public License
#       along with this program; if not, write to the Free Software
#       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#       MA 02110-1301, USA.



def main():
	
	return 0

if __name__ == '__main__':
	main()
	
print 'hi'	
then ran from command line like so

Code: Select all

# python untitled.py
hi
Working :)

Posted: Fri 06 Nov 2009, 02:41
by ITAmember
The idle uses tcl/tk and I got errors when I tried to compile Python with tcl/tk. If you want a full feature Python IDE here's a Python plugin for eclipse. http://pydev.org/

Posted: Tue 10 Nov 2009, 04:25
by moogsydodong
hi ITAmember,

Ive used your python 2.6 and it works fine...

an odd thing though...there is no libpython2.6.so.1.0 in it...
Ive tried compiling python2.6 myself same thing happen...
is this odd or Ive miss something??? Im noob this so I dont know much...

I need the libpython2.6.so.1.0 for blender...
can anyone help me with this.... :(

Posted: Tue 10 Nov 2009, 23:16
by ITAmember
There's a libpython2.6.a but not a libpython2.6.so? I sense static library communism. :evil: In any case it looks like I need to add some flags to the config script when I recompile. Or maybe it's a problem with the lack of Tcl/TK? But then there wouldn't be any static library... I'll take a look at it.

Posted: Wed 11 Nov 2009, 04:11
by moogsydodong
hi again

thanks for the fast response...Ive manage to run my blender using the libpython2.6.so.1.0 included in the OO.org sfs...
sad thing though...as I run blender it wont execute any of the scripts included....

running from the command-line blender says that the libpython Ive used is from python2.6.1 therefore it cant find or recognize the installed python2.6.4

hope you can find some way around this...

Thanks in advance...

Posted: Thu 12 Nov 2009, 00:27
by ITAmember
My extensive research (./configure --help :D) says --enable-shared needs to be added to the configure script command line params. I'm currently building some rather large apps so I won't be able to rebuild until sometime tomorrow. You can build Python with the new params if you can't wait for me.

Posted: Thu 12 Nov 2009, 04:16
by moogsydodong
hi again

thanks for the reply, again... :D

I'll be trying your suggestion...

also I want to build a python with an IDLE/tkinter much like the python for windows...

they say this is hard to do since tkinter is hard to compile...I'm gonna try it though...wish me luck...

tnx...

moogsy continuing happily with puppy...
woof! woof! :lol:

Posted: Thu 12 Nov 2009, 18:11
by ITAmember
I got the new files uploaded earlier then I thought so you can just redownload the links.

TO EVERYONE ELSE WHO HAS DOWNLOADED THIS PET

Please uninstall your old version and install the new versions. The old versions where build without shared libraries.

Posted: Fri 13 Nov 2009, 04:29
by moogsydodong
thank you very much!!!!

I'll try this one...

anyways...do you have any plans of compiling this with tkinter???

if not maybe you can teach me how and try compiling it myself...

...Learning python and blender here...

one happy kennel!!!!

thanks man!!! :D

Posted: Sat 14 Nov 2009, 03:48
by moogsydodong
Just a lucky night...

I've tried compiling python2.6 with tkinter...

luckily it compiled, installed, and run without problems... :lol:

now I have a python with IDLE like the one we get for windows...
I guess there is no need for windows anymore :lol:

now...I'm looking for a place to upload this files....

hmmmm....

Posted: Sat 14 Nov 2009, 04:36
by ITAmember
Give it a name that can be distinguished from the pets I named. Go to start->internet->gFTP ftp client, host is ftp.servage.net, user is 123upload, password is puppylinux, create a python subdir and upload your file to there. Then PM forum member MU and ask him to move the contents to http://dotpups.de/puppy4/dotpups/Programming/.

Posted: Sat 14 Nov 2009, 11:28
by moogsydodong
tnx for the info...

I've named my sfs as python-2.6.4_tcl-tk-8.5_431.sfs...

sad to say I cant use gFTP since my home PC is not connected in the internet...I go online only in Internet cafe during breaks and weekends...

in all cafes here in the Philippines the OS is windows...
maybe I'll use Filezilla to do the upload tomorrow or on Monday...

now I'm gonna explore easyGUI and _tkinter....

taking small steps here...

Posted: Mon 16 Nov 2009, 04:28
by moogsydodong
Ive just uploaded the python-2.6.4_tcl-tk-8.5.sfs in ftp.servage.net...

the files are located here:
ftp://123upload@ftp.servage.net/python/ ... .5_431.sfs
ftp://123upload@ftp.servage.net/python/ ... fs-md5.txt

I didnt create a menu item for this python...
to lunch the python IDLE just type "idle" in the terminal...

Posted: Fri 04 Dec 2009, 17:06
by brymway
What's the password for the download?

Posted: Tue 08 Dec 2009, 04:26
by moogsydodong
usr : puppy
pass: linux

Posted: Tue 08 Dec 2009, 10:43
by abushcrafter
moogsydodong wrote:usr : puppy
pass: linux
No...
user: 123upload
pass: puppylinux

Tried to Download Python-Tcl/Tk

Posted: Thu 21 Jan 2010, 21:20
by rpkopreski
Hi, I cannot seem to access this download. I've tried to use gFTP and also just click the link. I put in puppylinux, puppy, linux, PuppyLinux and Puppylinux for passwords and I get nothing....

any help?