Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6145 > unrolled thread
| Started by | Tim Johnson <tim@johnsons-web.com> |
|---|---|
| First post | 2011-05-24 07:37 -0800 |
| Last post | 2011-05-24 07:37 -0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Codes do not run Tim Johnson <tim@johnsons-web.com> - 2011-05-24 07:37 -0800
| From | Tim Johnson <tim@johnsons-web.com> |
|---|---|
| Date | 2011-05-24 07:37 -0800 |
| Subject | Re: Codes do not run |
| Message-ID | <mailman.2019.1306251749.9059.python-list@python.org> |
* 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 top | Article view | comp.lang.python
csiph-web