0

Trying to spin my motor I got an error in Thonny:

No module named '__future__'

When reinstalling Python and MicroPython nothing changes. I used pip to install future and __future__, but __future__ wasn't valid and future is already good. When looking up solutions they either won't work or are confusing me.

My code:

from gpiozero import Motor
from time import sleep

fan = Motor(14,15)

fan.forward()
sleep(5)
fan.stop()
user4157124
  • 2,809
  • 13
  • 27
  • 42
Cyber
  • 9
  • 1

0 Answers0