On Sun, May 5, 2013 at 6:49 AM, Stafford Baines <[email protected]> wrote: > I have just finished Python Programming by Michael Dawson. A wonderful book > with downloadable examples. However, after many hours of frustrating attempts > I can't get the graphics to work. >
I own this book, too, but I am not actively working in it yet. My copy is the third edition. > I get error messages such as 'no module called python.image' > > I have made sure that the folder > Livewires iis in the same folder as the program (Falling Pizzas say, but it > won't > work with any of the included graphics games) > On page 323 of my edition it says: "You need to install both pygame and livewires before you can run the programs presented in this chapter. Fortunately, versions of both are on the companion website (www.courseptr.com/downloads) in the Software folder. Just follow the installation instructions that accompany the packages." You mention that you installed livewires, but did not mention installing pygame. Could this be your problem? Also, the author notes that the livewires package that he provides on HIS site is a modified version of livewires. If you went to the official LiveWires website to download and install livewires, then it is possible it might not work with the programs in the book. The author mentions this as a "Trap" on the same page. > The book is written using python 3.1 and I am using python 3.3, could this be > a problem? > I doubt that your exact version of Python 3.x is a problem as long as you have at least 3.1. > Any advice would be very much appreciated as I do wish to use graphics > facilities. > Another trap is mentioned on page 324: "Just as with a program that uses Tkinter to create a new window, you shouldn't run a livewires program from IDLE..." The only other thing that I can think of is that you may not be importing all of the needed modules. Check your code with the author's carefully to see that you have done so. HTH, boB _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
