Go to advanced search

by finlay-rg1
Wed Dec 14, 2016 7:18 pm
Forum: General discussion
Topic: Pi 1 upgrade
Replies: 3
Views: 683

Pi 1 upgrade

I have a very early Pi (Pi 1?) that I am planning to pass on to my grandson. Can it be upgraded to latest version?
by finlay-rg1
Mon Jan 21, 2013 10:53 am
Forum: General programming discussion
Topic: Solution to 'Cant run GPIO or snake game'
Replies: 0
Views: 576

Solution to 'Cant run GPIO or snake game'

I attended the Egham Raspberry Jam yesterday and got help in solving the problem I have had running the GPIO and snake game tutorials in the Users Guide. Thanks guys. The solutions are. Problem: Attempting to run the GPIO/LED tutorial in IDLE resulted in an error message 'permission denied' despite ...
by finlay-rg1
Mon Dec 31, 2012 11:34 am
Forum: General programming discussion
Topic: Can't run GPIO tutorial
Replies: 6
Views: 2033

Re: Can't run GPIO tutorial

Thanks Jim and rgh. My pi is running with raspbian and it is connected to the internet. I typed in the terminal the sudo apt-get etc code you suggested with no response so I went through the steps on page 190 of the Users Guide to download the python library from scratch. I get to step 4 to change d...
by finlay-rg1
Sun Dec 30, 2012 1:02 pm
Forum: General programming discussion
Topic: Can't run GPIO tutorial
Replies: 6
Views: 2033

Can't run GPIO tutorial

I have carefully written into IDLE the code in the tutorial on page 199 of the User Guide but when I run it I get an error message. I have downloaded the GPIO python library and checked that it is in my pi directory as RPi.GPIO-0.2.0.tar.gz The code is as follows #!/usr/bin/env python Import RPi.GPI...
by finlay-rg1
Thu Dec 27, 2012 3:38 pm
Forum: General programming discussion
Topic: Hello world programming
Replies: 3
Views: 1181

Re: Hello world programming

I also had trouble running Hello World in IDLE as shown in the users guide. First you must always save the program before running. Second there are two versions of IDLE. If you use IDLE3 you must enclose ("Hello World") in brackets like this. In IDLE it works with or without the brackets so I always...
by finlay-rg1
Fri Dec 21, 2012 12:04 pm
Forum: General programming discussion
Topic: Can't run snake pygame
Replies: 11
Views: 4788

Re: Can't run snake pygame

Thanks Matt Cook. I saved using snake.py as suggested but it did not solve the problem. I can open pygames in my pi directory so it seems to have downloaded successfully. Here is the code. #!/usr/bin/env python import pygame, sys, time, random from pygame.locals import * pygame.init() fpsClock = pyg...
by finlay-rg1
Fri Dec 21, 2012 10:16 am
Forum: General programming discussion
Topic: Can't run snake pygame
Replies: 11
Views: 4788

Can't run snake pygame

I have written the snake pygame code into IDLE exactly as shown in the Users Guide (pages 162 to 171) but when I try to run it I get the following message. Python 2.7.3rc2 (default, May 6 2012, 20:02:25) [GCC 4.6.3] on linux2 Type "copyright", "credits" or "license()" for more information. >>> =====...
by finlay-rg1
Thu Dec 20, 2012 4:54 pm
Forum: Beginners
Topic: Can't resolve syntax error in pygame snake.
Replies: 6
Views: 1728

Re: Can't resolve syntax error in pygame snake.

Thanks for your advice. The code is written and indented exactly as in the Users Guide. I have added ; in the long line of code as suggested and as a separate exercise split it into two lines. Both actions got rid of the syntax error message but brought up the following. Python 2.7.3rc2 (default, Ma...
by finlay-rg1
Thu Dec 20, 2012 11:22 am
Forum: Beginners
Topic: Can't resolve syntax error in pygame snake.
Replies: 6
Views: 1728

Can't resolve syntax error in pygame snake.

I believe I have entered the snake pygame code into IDLE as set out on pages 162 to 171 in the Users Guide tutorial but when I go to RUN it comes back with a syntax error. The word 'pygame' following 'position [1], 20,20))' is highlighted in the graphics section of the code (bottom of page 169). The...
by finlay-rg1
Thu Dec 13, 2012 3:39 pm
Forum: Beginners
Topic: Running Python programs
Replies: 0
Views: 449

Running Python programs

I have successfully written and run lines of Python code in the LX Terminal that switches on LEDs via the GPIO. I put the same code into IDLE3 but when attempting to 'run module' I get the message as follows: Python 3.2.3 (default, Jul 6 2012, 13:39:51) [GCC 4.6.3] on linux2 Type "copyright", "credi...
by finlay-rg1
Thu Dec 13, 2012 11:53 am
Forum: Python
Topic: Hello World tutorial in IDLE wont run.
Replies: 7
Views: 1917

Re: Hello World tutorial in IDLE wont run.

Thanks PS1981. When I open IDLE from the icon there is already text at the top of the page. Opening a new screen presents a blank page so following you suggestion I can now print Hello World. Looking at the next tutorial I see there are brackets round 'What is your name?' so it would seem the lack o...
by finlay-rg1
Wed Dec 12, 2012 4:07 pm
Forum: Python
Topic: Hello World tutorial in IDLE wont run.
Replies: 7
Views: 1917

Hello World tutorial in IDLE wont run.

I am slowly making headway with the Pi but I cannot get the 'Hello World' program on page 154/155 of the User Guide to run. I save the program but when I try to run it through F5 or Run it gives me a syntax error message. Any clues please.
by finlay-rg1
Wed Nov 28, 2012 3:42 pm
Forum: Beginners
Topic: Cannot find IDLE
Replies: 7
Views: 1031

Re: Cannot find IDLE

Thanks KenT.
At start up where prompted to log in I have Debian GNU/Linux 6.0 raspberrypi tty1. Is this the correct version? It came off the web with the help of our local friendly PC Paramedic. He can't now remember which site it was on.
by finlay-rg1
Wed Nov 28, 2012 7:17 am
Forum: Beginners
Topic: Cannot find IDLE
Replies: 7
Views: 1031

Re: Cannot find IDLE

OK, I found the dove. It opens a popup menu which lists pretty much the same folders as I find going through File Manager (accessories, education, internet, other, programming, sound & video, system tools, preferences). All I can find relating to Python is a file called SPE. Where am I going wrong?
by finlay-rg1
Tue Nov 27, 2012 11:06 am
Forum: Beginners
Topic: Cannot find IDLE
Replies: 7
Views: 1031

Re: Cannot find IDLE

Thanks berrypicker. I can open the screen with the big raspberry (LXDE?) but the icons down the LHS are missing.
by finlay-rg1
Tue Nov 27, 2012 9:24 am
Forum: Beginners
Topic: Cannot find IDLE
Replies: 7
Views: 1031

Cannot find IDLE

I want to follow the Hello World tutorial on page 154 of the Users Guide but cannot find IDLE to get started. Also I cannot find the LXDE desktop as shown on page 31 of the guide. Help please.
by finlay-rg1
Tue Nov 27, 2012 9:13 am
Forum: General programming discussion
Topic: Finding IDLE
Replies: 0
Views: 415

Finding IDLE

I want to follow the Hello World tutorial on page 154 of the Users Guide but cannot find IDLE to get started. Also I cannot find the LXDE desktop as shown on Page 31 of the guide. Help please.

Go to advanced search