correiaf
Posts: 5
Joined: Tue Oct 21, 2014 4:11 pm

Pyglow

Thu Oct 23, 2014 10:57 am

Hi all

Having a bit of an issue here. I am following the tutorial only to be barred by a 404

http://www.raspberrypi.org/learning/piglow/

all goes well until i need to download the Pyglow module it, halfway thru the resolving it states 301 Moved permanently it then resolves the new host and nothing happens. HTTP request sent and the feedback is an ERROR 404: not found.

Where is the Pyglow module then?

Kind regards
Cisco

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Pyglow

Thu Oct 23, 2014 11:00 am

How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

correiaf
Posts: 5
Joined: Tue Oct 21, 2014 4:11 pm

Re: Pyglow

Thu Oct 23, 2014 11:01 am

I can get the second file the test.py one but not the pyglow.py

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Pyglow

Thu Oct 23, 2014 11:05 am

How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

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

Re: Pyglow

Thu Oct 23, 2014 11:25 am

correiaf wrote:I can get the second file the test.py one but not the pyglow.py
The 'wget' command has to be changed: 'pyglow.py' should be 'PyGlow.py'

Gr.
Dirk.

correiaf
Posts: 5
Joined: Tue Oct 21, 2014 4:11 pm

Re: Pyglow

Thu Oct 23, 2014 3:17 pm

After 4 hours of downloading and installing bits and bobs of the same code over and over again the piglow and respective Py are soon to make an early exit off the shelf and on towards the bin.

I have followed everything blocked and unblocked 2708 parts and all that and not once does it work. all I constantly get is ImportError: no module named Pyglow even if the code is in the same folder and I ran PyGlow first. Sadly no look on Google helps me find a solution.

Fun times while they lasted...

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: Pyglow

Thu Oct 23, 2014 3:23 pm

correiaf wrote:After 4 hours of downloading and installing bits and bobs of the same code over and over again the piglow and respective Py are soon to make an early exit off the shelf and on towards the bin.

I have followed everything blocked and unblocked 2708 parts and all that and not once does it work. all I constantly get is ImportError: no module named Pyglow even if the code is in the same folder and I ran PyGlow first. Sadly no look on Google helps me find a solution.

Fun times while they lasted...
try changing the reference to PyGlow instead of Pyglow. Case is very sensitive and won't play if it's feelings are hurt.

Is this the line where you have a problem?

Code: Select all

from pyglow import PyGlow
check the spelling of the pyglow.py program and ensure that it matches the first reference.
open pyglow.py

Code: Select all

sudo nano pyglow.py
and check that the PyGlow module is spelt in the same fashion.
Last edited by BMS Doug on Thu Oct 23, 2014 3:28 pm, edited 1 time in total.
Doug.
Building Management Systems Engineer.

User avatar
RaTTuS
Posts: 10559
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: Pyglow

Thu Oct 23, 2014 3:24 pm

case sensitivity is everything
step back and do it slowly
also read my sig
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

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

Re: Pyglow

Thu Oct 23, 2014 3:57 pm

FYI the name of the module / file used in the PiGlow tutorial was changed from pyglow.py to PyGlow.py a couple of weeks ago.
Earlier today I submitted a pull request to change the documentation accordingly, so hopefully will be corrected soon.

Gr.
Dirk.

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

Re: Pyglow

Thu Oct 23, 2014 4:12 pm

correiaf wrote:Hi all

Having a bit of an issue here. I am following the tutorial only to be barred by a 404

http://www.raspberrypi.org/learning/piglow/

all goes well until i need to download the Pyglow module it, halfway thru the resolving it states 301 Moved permanently it then resolves the new host and nothing happens. HTTP request sent and the feedback is an ERROR 404: not found.

Where is the Pyglow module then?

Kind regards
Cisco
This first error that you encountered seems to me to be a clear mistake in the Raspberry Pi Foundation learning resource that you are using, and I have raised an 'Issue' about it for their attention on the github repository for the RPF Learning Resources. (It seems I have merely reported the issue while at the same time Dirk was more usefully fixing it... )
Last edited by B.Goode on Thu Oct 23, 2014 4:17 pm, edited 1 time in total.

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

Re: Pyglow

Thu Oct 23, 2014 4:17 pm

(It seems I was reporting the issue while at the same time Dirk was more usefully fixing it... )
:D
I probably should have created a ticket too, but I thought these changes were almost too trivial.

Return to “Python”