Go to advanced search

by ben_nuttall
Wed Jun 24, 2015 8:16 pm
Forum: Astro Pi
Topic: ImportError: cannot import name AstroPi
Replies: 14
Views: 3720

Re: ImportError: cannot import name AstroPi

Thanks for weighing in Dave!
by ben_nuttall
Wed Jun 24, 2015 9:54 am
Forum: Astro Pi
Topic: ImportError: cannot import name AstroPi
Replies: 14
Views: 3720

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"?
by ben_nuttall
Mon Jun 22, 2015 8:23 pm
Forum: Astro Pi
Topic: ImportError: cannot import name AstroPi
Replies: 14
Views: 3720

Re: ImportError: cannot import name AstroPi

Hi Am I right in saying the file you're trying to run is called "numbers.py"? It looks like numpy (a numerical library Astro Pi uses) imports a file called numbers.py and it's confusing it with your own numbers.py Can you try renaming the file and running again? Also try just entering "python" in a ...
by ben_nuttall
Fri Jun 12, 2015 9:31 am
Forum: General discussion
Topic: What techno do you use to generate the documentation ?
Replies: 11
Views: 2407

Re: What techno do you use to generate the documentation ?

Yet I'm not sure this is used on the raspberry pi documentation I can confirm it does use Parsedown. I have an .htaccess file that redirects all requests into index.php, which looks up the request inside the docs folder (a clone of the repo), and renders it in a template to make it look like the re...
by ben_nuttall
Wed Jun 10, 2015 11:34 pm
Forum: Astro Pi
Topic: Updating the Astro Pi Python module
Replies: 0
Views: 587

Updating the Astro Pi Python module

To find out which version of the Python module you have, run the following from the command line: python3 -c "import astro_pi as ap; print(ap.__version__)" python -c "import astro_pi as ap; print(ap.__version__)" You'll find the latest version at https://pypi.python.org/pypi/astro-pi To update your ...
by ben_nuttall
Wed Jun 10, 2015 11:17 pm
Forum: Astro Pi
Topic: apt-get upgrade breaks Astro Pi - how to fix it
Replies: 0
Views: 612

apt-get upgrade breaks Astro Pi - how to fix it

Unfortunately in the interim period while the Astro Pi firmware and software are in the process of being packaged and put into Raspbian, there's a problem in that running apt-get upgrade will break it. How to fix it: Run the following commands: wget https://www.raspberrypi.org/files/astro-pi/kinstal...
by ben_nuttall
Wed Jun 10, 2015 10:42 pm
Forum: Astro Pi
Topic: Controlling a Sphero using Astro-Pi
Replies: 3
Views: 4015

Re: Controlling a Sphero using Astro-Pi

That's really cool :)
by ben_nuttall
Wed Jun 10, 2015 10:39 pm
Forum: Astro Pi
Topic: Code to check if the switch is pressed
Replies: 7
Views: 1509

Re: Code to check if the switch is pressed

I just need to know what the code is to check the central press of the joystick and if it is not pressed, then to loop back and check again, meaning it is constantly checking. Thanks The Astro Pi / Sense HAT's joystick is mapped to the up/down/left/right/enter keys on the keyboard. To detect joysti...
by ben_nuttall
Wed Jun 10, 2015 10:35 pm
Forum: Astro Pi
Topic: Astro Cam
Replies: 3
Views: 1063

Astro Cam

I've written a little script to take a scaled-down stream from the camera and display it on the LED matrix. See https://github.com/bennuttall/astro-pi-examples/blob/master/python/astro_cam.py Does anyone see any ways of improving the image quality? It's hard to tell how good it is, or whether it's j...
by ben_nuttall
Mon May 25, 2015 8:12 am
Forum: Astro Pi
Topic: Best case for Astro-Pi
Replies: 10
Views: 3504

Re: Best case for Astro-Pi

I use the official Raspberry Pi case - which just about fits with mounting screws - or do you have a higher header?

I was thinking of trying to build a custom Pibow to go around it all, with a diffuser layer over the LEDs and access to the sensors and joystick.
by ben_nuttall
Mon May 25, 2015 2:47 am
Forum: Astro Pi
Topic: BN Astro Pi Examples
Replies: 3
Views: 1526

Re: BN Astro Pi Examples

As Dave said, we changed the API before the v1.0.0 release to allow passing of the colour in either individual r, g, b values or a 3-tuple containing (r, g, b). Sometimes you just want to have a bunch of colours declared, like black, white, blue, red, green, and pass the colour in. Sometimes, you're...
by ben_nuttall
Sun May 24, 2015 1:03 pm
Forum: Astro Pi
Topic: BN Astro Pi Examples
Replies: 3
Views: 1526

BN Astro Pi Examples

I've made a few example scripts and stuck them on GitHub: https://github.com/bennuttall/astro-pi-examples/

Examples so far:

- Random Sparkles
- Conway's Game of Life
- Minecraft Colour
- Minecraft Map
- Colour Match
by ben_nuttall
Fri Apr 10, 2015 9:43 am
Forum: General discussion
Topic: Forum problems 10 April 2015
Replies: 20
Views: 2800

Forum problems 10 April 2015

Hi everyone

We were experiencing some issues with the forums this morning: Links from Google and links in forum emails were being broken.

These issues have now been resolved.
by ben_nuttall
Wed Apr 01, 2015 9:47 am
Forum: General discussion
Topic: Downtime 1st April 0600-0800 BST
Replies: 11
Views: 1753

Re: Downtime 1st April 0600-0800 BST

plugwash wrote:looks like archive.raspberrypi.org is no longer working

ben: please fix this ASAP
Looks like it was just some downtime during the migration. I'm successfully running

Code: Select all

apt-get update
apt-get upgrade
now.

Anyone still experiencing issues?
by ben_nuttall
Wed Apr 01, 2015 6:35 am
Forum: General discussion
Topic: Downtime 1st April 0600-0800 BST
Replies: 11
Views: 1753

Re: Downtime 1st April 0600-0800 BST

The upgrade was a success and was completed much quicker than expected.
by ben_nuttall
Tue Mar 31, 2015 11:55 pm
Forum: General discussion
Topic: Downtime 1st April 0600-0800 BST
Replies: 11
Views: 1753

Downtime 1st April 0600-0800 BST

Hi everyone This is a notice that the website and forums will be unavailable during a web server migration this morning. The work will commence at 0600 BST. The main website should be down for approximately 30 minutes and we expect the forums to be down for approximately 2 hours during the migration...
by ben_nuttall
Tue Jun 10, 2014 5:31 pm
Forum: Scratch
Topic: STICKY: Scratch Usage Guide
Replies: 0
Views: 18863

STICKY: Scratch Usage Guide

We've written a usage guide for getting started with Scratch: http://www.raspberrypi.org/documentation/usage/scratch
by ben_nuttall
Tue Jun 10, 2014 5:29 pm
Forum: Python
Topic: STICKY: Python Usage Guide
Replies: 27
Views: 83968

STICKY: Python Usage Guide

I've written a usage guide for getting started with Python: http://www.raspberrypi.org/documentation/usage/python
by ben_nuttall
Tue Jun 10, 2014 5:19 pm
Forum: General discussion
Topic: Beware: phishing DM notification emails
Replies: 18
Views: 8302

Re: Beware: phishing DM notification emails

This issues has now been resolved.

The domain no longer points at this website. It was just misconfigured DNS.
by ben_nuttall
Tue Jun 10, 2014 5:13 pm
Forum: Beginners
Topic: Root folder
Replies: 15
Views: 25934

Re: Root folder

You could run a command to open the file manager window as root.

For example on Ubuntu you could run

Code: Select all

sudo nautilus
However I don't know the name of the file manager app we use on Raspbian.
by ben_nuttall
Tue Jun 10, 2014 5:02 pm
Forum: Wolfram Language
Topic: STICKY: Usage Guide for Mathematica and Wolfram
Replies: 1
Views: 16944

STICKY: Usage Guide for Mathematica and Wolfram

I've written a usage guide for getting started with Mathematica and Wolfram: http://www.raspberrypi.org/documentatio ... athematica
by ben_nuttall
Tue Jun 10, 2014 5:01 pm
Forum: Wolfram Language
Topic: Any Tutorial for Wolfram?
Replies: 7
Views: 23325

Re: Any Tutorial for Wolfram?

I've written a usage guide for getting started with Mathematica and Wolfram: http://www.raspberrypi.org/documentatio ... athematica
by ben_nuttall
Wed Jun 04, 2014 7:22 pm
Forum: General discussion
Topic: Sonic Pi Question
Replies: 5
Views: 1701

Re: Sonic Pi Question

You'll find some documentation by the author Sam Aaron in the project's GitHub repo here: https://github.com/samaaron/sonic-pi/tr ... er/etc/doc
by ben_nuttall
Thu May 29, 2014 4:53 pm
Forum: Mathematica
Topic: Mathematica Usage Guide
Replies: 0
Views: 21387

Mathematica Usage Guide

I've written a usage guide for getting started with Mathematica and Wolfram: http://www.raspberrypi.org/documentatio ... athematica
by ben_nuttall
Wed May 14, 2014 10:19 am
Forum: General discussion
Topic: Beware: phishing DM notification emails
Replies: 18
Views: 8302

Re: Beware: phishing DM notification emails

We're looking in to it.

We suspect it's no more sinister than a misconfigured DNS. Not so much anything to worry about, but I'm working to get Mythic to resolve it.

Go to advanced search