Code: Select all
git clone https://github.com/benleb/PyGlow.git I couldn't get it to work either but I'm not much of a Python programmer. I am a pretty good Java programmer so I downloaded and installed Pi4J and it works great. I've got my PiGlow doing all sorts of trick stuff. Take a look at pi4j.com. I even wrote a little library for it to make the programming similar to what I think the Python libraries do.TiffanyVOhio wrote:I'm just starting out on setting up the PiGlow (I got it yesterday) and I'm having some trouble. When I type in wget https://raw.github.com/benleb/PyGlow/master/pyglow.py --no-check-certificate , 10-15 seconds later I'm getting 404 NOT FOUND. I'm using wired internet on my Pi and I'm so confused. Has this happened to anyone else? Also, how do I fix this? Thanks. ~TiffanyVOhio
The suggested revised version of the tutorial is available here -TiffanyVOhio wrote:Do I just wait until someone tells me how to fix it or wait until the tutorial is fixed? I was paying attention to the tutorial
The way to get Foundaiton documentation updated is to clone the docs, make the changes, and submit a pull request to drag your changes to the original repo. I believe there is a page describing how to do all this somewhere! Suggestions are a much slower way as people generally have much more important things to do than make suggested changes. It quicker/easier to proof read then accept a PR.B.Goode wrote:If you are attempting to follow the tutorial on the Raspberry Pi Foundation site, here, you are probably encountering mistakes in the tutorial itself. Suggestions have been made as to how these should be corrected, but the changes have not been made yet.
That's been done, but the PR hasn't been acted on.jamesh wrote: The way to get Foundaiton documentation updated is to clone the docs, make the changes, and submit a pull request to drag your changes to the original repo.
https://github.com/raspberrypilearning/piglow/pull/6jamesh wrote:EDIT: I'm not seeing the PR, there are three, none of which appear to be related. Have you a link?
How exactly do you start the script? Also, Linux is case sensitive. You have to get the name on the command line correct, but also the name of modules in your python script (pyglow is not equal to PyGlow)TiffanyVOhio wrote:Okay, i seemed to get it working. But when I was setting up pulse.py to go with it, my thing crashed! Now in the terminal when I'm trying to get to open pulse.py or FirstPiGlow.py, it says Errno 2 no such file or directory. What now?!
3 things to check:TiffanyVOhio wrote:I type in sudo python FirstPiGlow.py (usually that works but not anymore) and sudo python pulse.py
1. If e.g. your script is in /home/pi/scripts and PyGlow.py is in /home/pi/PyGlow your script will not find the PyGlow module if you useTiffanyVOhio wrote:I don't understand 1 and 3...
Code: Select all
import PyGlowAssuming F5 is the run command in IDLE... The IOError would be the result of running with insufficient rights (not running with 'sudo').TiffanyVOhio wrote:When I tried to start it in LXTerminal, it said Errno 2: No such file or directory, if I press F5 in IDLE, it says IOError
Case is important. The name is PyGlow.py, not pyglow.pyJase193 wrote:Hi,
I have been trying to download https://raw.github.com/benleb/PyGlow/master/pyglow.py
But it keeps coming up with error 404 NOT FOUND
I have been on to the GitHub site and found the actual file and it would appear empty. The file size is 9kb and when I downloaded it to my laptop there was nothing in there but the words NOT FOUND.
I think this file has corrupted.
Can you assist me with sourcing the actual pyglow module so I can download it?