Page 1 of 1

ImportError: no module named 'upower'

Posted: Sat Jan 19, 2019 12:50 pm
by Philosophix
I'm trying to use the BkpRAM from the upower module (https://github.com/peterhinch/micropyth ... /UPOWER.md) but I'm getting the following error:
Traceback (most recent call last):
File "main.py", line 6, in <module>
ImportError: no module named 'upower'
MicroPython v1.9.1 on 2017-06-11; PYBv1.1 with STM32F405RG

Any ideas?

Re: ImportError: no module named 'upower'

Posted: Thu Jan 24, 2019 9:22 am
by Philosophix
Doesn't anyone have a clue?

Re: ImportError: no module named 'upower'

Posted: Thu Jan 24, 2019 11:21 am
by Roberthh
What exactly did you try. Without showing the code that failed almost no-one can help you.

Re: ImportError: no module named 'upower'

Posted: Thu Jan 24, 2019 6:19 pm
by pythoncoder
You need to copy upower.py to the Pyboard: to the SD card if you're using one, otherwise to the internal flash.

This applies to all user-contributed code: it isn't officially supported so needs to be installed before use.