ImportError: Importing the multiarray numpy extension module failed

Okay cool, give me a few minutes to test my code out and then I’ll post it here.

1 Like

Hi @sabtt , have it working, put up a little project here https://github.com/shaunmulligan/sensehat-python which is heavily based on an older project here https://github.com/balena-io-playground/balena-sensehat-example . In any case you should be able to push this to your device and it will show the balena logo and scroll balena across the leds every 10 seconds. The most important part to not forget is to add the configuration to enable the sensehat, this is set via the dashboard using BALENA_HOST_CONFIG_dtoverlay == rpi-sense . Let me know how that works for you.

1 Like

Thank you so much! It worked!

Just to be clear, adding configuration variables through the dashboard also works in local mode? And was that the problem all along? Would I need to add a configuration variable each time I use a sensor?

Yes, the configuration from dashboard works in localMode as well. I don’t think the issue you were having were initially related to the config. I think the main issue was with the method of installing the sense hat library. When installing it from apt-get as the project above does, it ensures all the dependencies are met, where as installing it from python pip doesn’t guarentee that. The only downside of installing from apt-get is that you are tied to the python3 supplied by debian stretch, which in this case is 3.5 (which is not too bad anyways)

Okay that makes sense. Thanks a lot for your help!

No problemo, always glad to help!