nikoxsxs wrote:Hi,
I hope anyone can help me.I have a Raspberry Pi B+ and i still try to run it,but it don't worked.
I did all steps exactly like on the website:
http://www.raspberrypi.org/learning/piglow/ . All goes find,but by Step 2 Point 7 i have a problem.When i want to test with : sudo python test.py, it gave me an Syntaxerror:invalid syntax. What i have to do?

Sadly, there is an error in that tutorial.
When I follow it exactly I get an error at Step 2, Activity 4 which reports "ERROR 404: Not Found."
If I continue to Step 2, Activity 6 the download of test.py is successful, but when I try to run it at Step 2 Activity 7 it fails with
Code: Select all
pi@raspberrypi ~/piglow612 $ sudo python test.py
Traceback (most recent call last):
File "test.py", line 15, in <module>
from PyGlow import PyGlow
ImportError: No module named PyGlow
This error, and the solution to it, have been reported to the Raspberry Pi Foundation. It is because the exact name of the piglow module has been changed by its author since the tutorial was published.
The above does not explain why you get the 'invalid syntax' error - to comment on that it will be necessary to see the script you are trying to run, posted here wrapped in [[ Code]] brackets, using the 5th button from the left at the top of the message editor. It would possibly be useful to capture from the screen the exact command line you used to run the script, and all the resulting error output.