Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6145

Re: Codes do not run

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tim@johnsons-web.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python.': 0.04; 'sys': 0.05; 'python"': 0.07; 'python': 0.08; 'received:64.4': 0.09; 'undefined': 0.09; '480,': 0.16; '50)': 0.16; '640,': 0.16; 'false)': 0.16; 'loaded.': 0.16; 'traceback': 0.16; 'programming': 0.19; 'header:In-Reply-To:1': 0.21; 'subject:not': 0.23; 'code': 0.24; 'example': 0.27; 'import': 0.29; 'version': 0.29; 'module': 0.30; 'anyone': 0.32; 'to:addr:python-list': 0.33; 'follows:': 0.34; 'header:User-Agent:1': 0.35; 'using': 0.35; 'results.': 0.37; 'could': 0.38; 'run': 0.38; 'subject:: ': 0.38; 'should': 0.39; 'itself.': 0.39; 'to:addr:python.org': 0.39; 'transparent': 0.65; 'relevant': 0.69; 'picture': 0.97
Date Tue, 24 May 2011 07:37:09 -0800
From Tim Johnson <tim@johnsons-web.com>
To python-list@python.org
Subject Re: Codes do not run
References <213250.48589.qm@web24004.mail.ird.yahoo.com>
MIME-Version 1.0
Content-Type text/plain; charset=iso-8859-1
Content-Disposition inline
Content-Transfer-Encoding 8bit
In-Reply-To <213250.48589.qm@web24004.mail.ird.yahoo.com>
Organization AkWebsoft
User-Agent Mutt/1.5.20 (2009-06-14)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2019.1306251749.9059.python-list@python.org> (permalink)
Lines 33
NNTP-Posting-Host 82.94.164.166
X-Trace 1306251749 news.xs4all.nl 49042 [::ffff:82.94.164.166]:59353
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:6145

Show key headers only | View raw


* SKHUMBUZO ZIKHALI <akekhofananaye@yahoo.co.uk> [110524 07:26]:
> Hi: 
> 
> I am learning Python on my own using a " Guide to Programming with Python" 
> book. Author of the book is Micheal Dawson and I am using version 2.3.5 of 
> python.  When I try to run the code I do not get required results. The picture 
> could not be loaded. I get trackback message regarding undefined module.The 
> example from the book is as follows:
> 
> from liveswires import games
> 
> games.init(screen_width = 640, screen_height = 480, fps = 50)
> wall_image = games.load_image("wall.jpg", transparent = False)
> games.screen.background = wall_image
> 
> games.screen.mainloop() 
> 
> Can anyone please assist me. 
 You should provide
 1)the traceback itself.
 2)Version of python
 3)Operating system
 4)All relevant code
 Also
 Do the following :
   import sys
   print(sys.path)
 Do you see the liveswires module in the path?

-- 
Tim 
tim at johnsons-web dot com or akwebsoft dot com
http://www.akwebsoft.com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Codes do not run Tim Johnson <tim@johnsons-web.com> - 2011-05-24 07:37 -0800

csiph-web