Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 16:27
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Python 2.6.4 and Python 3.1.1
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [41 Posts]   Goto page: Previous 1, 2, 3
Author Message
2lss

Joined: 20 Sep 2009
Posts: 225

PostPosted: Sat 06 Feb 2010, 23:09    Post subject:  

moogsydodong: No I am not a professional programmer. Although I hope to one day be a good one Smile . Python is just something I play around with.
Back to top
View user's profile Send private message 
hailpuppy

Joined: 28 Oct 2009
Posts: 73

PostPosted: Sat 10 Apr 2010, 17:43    Post subject:  

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 Smile
Back to top
View user's profile Send private message 
hailpuppy

Joined: 28 Oct 2009
Posts: 73

PostPosted: Sat 10 Apr 2010, 18:49    Post subject:  

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???
error message for idle.png
Description 
png

 Download 
Filename  error message for idle.png 
Filesize  242 KB 
Downloaded  412 Time(s) 
Back to top
View user's profile Send private message 
DMcCunney

Joined: 02 Feb 2009
Posts: 897

PostPosted: Sat 10 Apr 2010, 18:57    Post subject:  

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
Back to top
View user's profile Send private message 
ITAmember

Joined: 13 Sep 2009
Posts: 168
Location: The middle of a cornfield

PostPosted: Sat 10 Apr 2010, 19:03    Post subject:  

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.
Back to top
View user's profile Send private message 
hailpuppy

Joined: 28 Oct 2009
Posts: 73

PostPosted: Sun 11 Apr 2010, 13:48    Post subject:  

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

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.. Very Happy Very Happy Very Happy Very Happy Very Happy
Back to top
View user's profile Send private message 
hailpuppy

Joined: 28 Oct 2009
Posts: 73

PostPosted: Wed 02 Nov 2011, 13:28    Post subject:  

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:)
Back to top
View user's profile Send private message 
hailpuppy

Joined: 28 Oct 2009
Posts: 73

PostPosted: Wed 02 Nov 2011, 13:31    Post subject: Python 3.1.1 with Tkinter and IDLE on puppy 4.31  

The link again http://dotpups.de/ITAmember/python/
Back to top
View user's profile Send private message 
xia1498

Joined: 31 Oct 2010
Posts: 15

PostPosted: Sat 14 Jan 2012, 14:55    Post subject: Geany no longer compiles  

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.
Back to top
View user's profile Send private message 
afishe2000

Joined: 29 Jan 2010
Posts: 37

PostPosted: Sun 19 Aug 2012, 10:51    Post subject:  

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:
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/tkinter/introduction/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/
Back to top
View user's profile Send private message 
kocg

Joined: 20 Dec 2011
Posts: 95

PostPosted: Sat 09 Nov 2013, 17:26    Post subject: Re: Python 2.6.4 and Python 3.1.1  

ITAmember wrote:

Python 2.6


How to install this file? It has .gz extension, and when I click on it, there's arhive file in it with the same name but without extension, and I don't know how to run it.

Also I don't know what is in this 62mb archive. Is it some sort of python package, with different programs, like pygame or tkinter...?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 3 [41 Posts]   Goto page: Previous 1, 2, 3
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0784s ][ Queries: 13 (0.0047s) ][ GZIP on ]