Python 2.6.4 and Python 3.1.1

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

Python 2.6.4 and Python 3.1.1

#1 Post 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.
Last edited by ITAmember on Thu 12 Nov 2009, 18:12, edited 1 time in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post 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)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

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

#3 Post by ITAmember »

Python 2.5 come with the 4.1.2 devx. Not sure about new devx versions

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post 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 :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

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

#5 Post 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/

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

#6 Post 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.... :(
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

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

#7 Post 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.

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

#8 Post 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...
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

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

#9 Post 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.

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

#10 Post 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:
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

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

#11 Post 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.

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

#12 Post 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
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

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

#13 Post 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....
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

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

#14 Post 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/.

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

#15 Post 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...
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

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

#16 Post 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...
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

brymway
Posts: 407
Joined: Sun 09 Dec 2007, 01:08

#17 Post by brymway »

What's the password for the download?
[url]http://wellminded.com/puppy/pupsearch.html[/url]

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

#18 Post by moogsydodong »

usr : puppy
pass: linux
...SHUT UP AND LISTEN!!!...In a battle there is only ONE COMMANDER!!!

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#19 Post by abushcrafter »

moogsydodong wrote:usr : puppy
pass: linux
No...
user: 123upload
pass: puppylinux

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

Tried to Download Python-Tcl/Tk

#20 Post 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?
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

Post Reply