I can’t upload a program to MAiX BiT using PlatformIO. I’ve tried this on both Win10 with PIO in VS Code, and on Ubuntu Linux with PIO in Atom, and I get the same failure. In both cases, the kflash script fails with the following trace:
Traceback (most recent call last): File "C:\Users\markp\.platformio\packages\tool-kflash-kendryte210\kflash.py", line 13, in <module> import argparse File "C:\Users\markp\.platformio\python37\lib\argparse.py", line 87, in <module> import re as _re File "C:\Users\markp\.platformio\python37\lib\re.py", line 143, in <module> class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute 'IntFlag' *** [upload] Error 1
It seems like a problem with the enum package in Python, but it’s a mystery. I have the latest Python loaded (3.7.4). This is painful, as this used to work some weeks ago. Anyone have any idea how to fix this?