|
From: vanam on 10 Jul 2008 08:00 hi all i am new to python programming a beginner. I Came to know from the groups that "How to think like a computer scientist" is preferable for begineers. i just looking through that i came to one section where a sample program for generation of graphics is present.i tried to copy the same script to the interpreter and it is showing an error i want to know whether is there anything that has to be installed in addition to python 2.5 below is the program from gasp import * begin_graphics() Circle((200, 200), 60) Line((100, 400), (580, 200)) Box((400, 350), 120, 100) end_graphics()
From: Michiel Overtoom on 10 Jul 2008 08:16 Vanam wrote... > I want to know whether is there anything that has > to be installed in addition to python 2.5 > > from gasp import * You have to install the 'gasp' package too. https://launchpad.net/gasp-code/stable-0.1.x/0.1.1 -- "The ability of the OSS process to collect and harness the collective IQ of thousands of individuals across the Internet is simply amazing." - Vinod Vallopillil http://www.catb.org/~esr/halloween/halloween4.html
From: Glenn Hutchings on 11 Jul 2008 17:20 vanam <raghavendra.gv.vanam(a)gmail.com> writes: > hi all > i am new to python programming a beginner. I Came to know from the > groups that "How to think like a computer scientist" is preferable for > begineers. i just looking through that i came to one section where a > sample program for generation of graphics is present.i tried to copy > the same script to the interpreter and it is showing an error i want > to know whether is there anything that has to be installed in addition > to python 2.5 > below is the program > from gasp import * > begin_graphics() > Circle((200, 200), 60) > Line((100, 400), (580, 200)) > Box((400, 350), 120, 100) > end_graphics() You're probably getting an ImportError from the 'from gasp...' line. You need to grab and install the GASP package from https://launchpad.net/gasp. Glenn
|
Pages: 1 Prev: Fwd: [ANN] Genshi 0.5.1 released Next: B-Soup: broken iterator, tag a keyword? |