Go to advanced search

by butchec
Thu Aug 06, 2015 10:52 am
Forum: Astro Pi
Topic: Reading orientation data in a loop
Replies: 8
Views: 4779

Re: Reading orientation data in a loop

Hi, I have been using the above work around for recording the orientation every 30seconds and everything has been working well. We successfully ran it for a full week with a log and picture taken every 30 seconds. My son was one of the competition winners and for the final submission of our code we ...
by butchec
Wed Jun 24, 2015 12:22 pm
Forum: Astro Pi
Topic: ImportError: cannot import name AstroPi
Replies: 14
Views: 4546

Re: ImportError: cannot import name AstroPi

It's because Python's import hierarchy starts with files in the current folder before looking in the installed modules. It is odd, though. I wonder if numpy should be using relative imports "import .number" rather than "import number"? Indeed - the default Python search path loo...
by butchec
Tue Jun 23, 2015 8:34 am
Forum: Astro Pi
Topic: ImportError: cannot import name AstroPi
Replies: 14
Views: 4546

Re: ImportError: cannot import name AstroPi

Hi Ben, You are right, the program(s) I am running all have the word number or numbers in their title. However I am surprised that this would stop all other programs from running including the examples produced for the AstroPi. I have renamed all of the files and removed any trace of the original fi...
by butchec
Mon Jun 22, 2015 5:11 pm
Forum: Astro Pi
Topic: ImportError: cannot import name AstroPi
Replies: 14
Views: 4546

Re: ImportError: cannot import name AstroPi

Hi, Thank you for your help. I can see from the code you have listed that I was doing it the correct way for the code I was running. I also experienced the issues with the examples, and so far none of the examples work. Please see below the response I get when I try and run any program that uses the...
by butchec
Sun Jun 21, 2015 9:59 am
Forum: Astro Pi
Topic: ImportError: cannot import name AstroPi
Replies: 14
Views: 4546

ImportError: cannot import name AstroPi

I can no longer run any programs that imports the AstroPi After working for a few days following tutorials and sample codes, I was testing the set_pixel function to use the 8x8 LED grid as a two line temperature and humidity display. I was running through testing the output of a two digit number on ...

Go to advanced search