TiffanyVOhio
Posts: 9
Joined: Wed Nov 05, 2014 9:12 pm

Unable to set up PiGlow

Wed Nov 05, 2014 9:24 pm

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

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4214
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: Unable to set up PiGlow

Wed Nov 05, 2014 9:52 pm

you should clone the software using

Code: Select all

git clone https://github.com/benleb/PyGlow.git 

TiffanyVOhio
Posts: 9
Joined: Wed Nov 05, 2014 9:12 pm

Re: Unable to set up PiGlow

Wed Nov 05, 2014 10:58 pm

What do I do after that? I tried putting in the website I've been having problems with after cloning it but it still says ERROR 404: Not Found

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Unable to set up PiGlow

Wed Nov 05, 2014 11:48 pm

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.

TiffanyVOhio
Posts: 9
Joined: Wed Nov 05, 2014 9:12 pm

Re: Unable to set up PiGlow

Thu Nov 06, 2014 1:03 am

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

User avatar
ukscone
Forum Moderator
Forum Moderator
Posts: 4214
Joined: Fri Jul 29, 2011 2:51 pm
Contact: Website

Re: Unable to set up PiGlow

Thu Nov 06, 2014 1:32 am

all the instructions are here https://github.com/benleb/PyGlow

just scroll down to the readme

TiffanyVOhio
Posts: 9
Joined: Wed Nov 05, 2014 9:12 pm

Re: Unable to set up PiGlow

Thu Nov 06, 2014 1:54 am

Now it's saying Permission Denied

knute
Posts: 550
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Unable to set up PiGlow

Thu Nov 06, 2014 2:40 am

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
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.

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Unable to set up PiGlow

Thu Nov 06, 2014 8:11 am

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 suggested revised version of the tutorial is available here -

https://github.com/DirkUK/piglow/blob/f ... /README.md

(I know that looks ugly, but just follow the link or use cut-and-paste into your browser address bar and it will be fine.)
Last edited by B.Goode on Thu Nov 06, 2014 10:43 am, edited 1 time in total.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Unable to set up PiGlow

Thu Nov 06, 2014 8:38 am

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.
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.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Unable to set up PiGlow

Thu Nov 06, 2014 10:41 am

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.
That's been done, but the PR hasn't been acted on.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Unable to set up PiGlow

Thu Nov 06, 2014 12:11 pm

OK, I'll check. Ben normally does this I think, but he is out and about at the moment.

EDIT: I'm not seeing the PR, there are three, none of which appear to be related. Have you a link?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Unable to set up PiGlow

Thu Nov 06, 2014 3:56 pm

jamesh wrote:EDIT: I'm not seeing the PR, there are three, none of which appear to be related. Have you a link?
https://github.com/raspberrypilearning/piglow/pull/6

Gr.
Dirk.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Unable to set up PiGlow

Thu Nov 06, 2014 8:30 pm

Ah, OK, I don't have access to that repo. Someone else will need to merge it.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

TiffanyVOhio
Posts: 9
Joined: Wed Nov 05, 2014 9:12 pm

Re: Unable to set up PiGlow

Thu Nov 06, 2014 9:47 pm

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?!

TiffanyVOhio
Posts: 9
Joined: Wed Nov 05, 2014 9:12 pm

Re: Unable to set up PiGlow

Thu Nov 06, 2014 10:00 pm

It also says IOError: [Errno 13] Permission Denied. What am I doing wrong???

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Unable to set up PiGlow

Thu Nov 06, 2014 10:09 pm

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?!
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)

Gr.
Dirk.

TiffanyVOhio
Posts: 9
Joined: Wed Nov 05, 2014 9:12 pm

Re: Unable to set up PiGlow

Fri Nov 07, 2014 1:10 pm

I type in sudo python FirstPiGlow.py (usually that works but not anymore) and sudo python pulse.py

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Unable to set up PiGlow

Fri Nov 07, 2014 1:15 pm

TiffanyVOhio wrote:I type in sudo python FirstPiGlow.py (usually that works but not anymore) and sudo python pulse.py
3 things to check:
* can python find the pyglow module. Easiest way is to put PyGlow.py in the same directory as your script
* is your import statement correct (using correct capitalisation: PyGlow)
* do you issue the command in the directory where your script is located.

Gr.
Dirk.

TiffanyVOhio
Posts: 9
Joined: Wed Nov 05, 2014 9:12 pm

Re: Unable to set up PiGlow

Fri Nov 07, 2014 5:16 pm

I don't understand 1 and 3...

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Unable to set up PiGlow

Fri Nov 07, 2014 6:42 pm

TiffanyVOhio wrote:I don't understand 1 and 3...
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 use

Code: Select all

import PyGlow
.
By putting PyGlow.py in the same folder / directory as your script python *should* be able to find it.

3. Say your script is in /home/pi/scripts and you issue your command while you're in /home/pi python will not find the script.

BTW: what is the completer error message you get when you try to start your script? I wouldn't expect the IOError if you use 'sudo'.

Gr.
Dirk.

TiffanyVOhio
Posts: 9
Joined: Wed Nov 05, 2014 9:12 pm

Re: Unable to set up PiGlow

Fri Nov 07, 2014 9:35 pm

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

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Unable to set up PiGlow

Fri Nov 07, 2014 11:38 pm

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
Assuming F5 is the run command in IDLE... The IOError would be the result of running with insufficient rights (not running with 'sudo').

Is the 'no such file or directory' the complete message? I would have expected a bit more in front of that message (including the file that it cannot find).
But I think that the script is not where you think it is... If you use the command 'ls' in the terminal is your script listed?

Gr.
Dirk.

Jase193
Posts: 2
Joined: Wed Nov 19, 2014 6:16 pm

Re: Unable to set up PiGlow

Wed Nov 19, 2014 6:23 pm

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?

DirkS
Posts: 10347
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Unable to set up PiGlow

Wed Nov 19, 2014 7:15 pm

Jase193 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?
Case is important. The name is PyGlow.py, not pyglow.py

Gr.
Dirk.

Return to “Troubleshooting”