AttributeError: partially initialized module has no attribute…(Python)

Python AttributeError: partially initialized module

Less of a blog post and more of a reminder to myself that when Python says: AttributeError: partially initialized module 'MODULE_NAME' has no attribute 'ATTRIBUTE_NAME' (most likely due to a circular import) It is normally because I have named my Python file the same as the module I am importing and caused a circular reference. … Continue reading AttributeError: partially initialized module has no attribute…(Python)

Sense Hat Pictures (Raspberry Pi)

After making rainbow displays on the sense hat my son realised that the Raspberry Pi sense hat's LED display could be used to output art including a creeper from Minecraft. Note: This is inspired by https://magpi.raspberrypi.org/articles/make-a-sense-hat-rainbow-display-for-your-window The sense hat has an 8x8 display of individual LEDs which can be programmed to display individual colours. For this … Continue reading Sense Hat Pictures (Raspberry Pi)

Python and Bluetooth – Part 1: Scanning For Devices And Services (Python)

"Track and Trace" has got some attention in recent times here in the UK as the Covid-19 (Coronavirus) lockdown level looks to be relaxed. Part of the "Track and Trace" program is a mobile application that uses low energy bluetooth beaconing to see what other devices running the application have been close by. This has … Continue reading Python and Bluetooth – Part 1: Scanning For Devices And Services (Python)