Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload fails - no attribute IntFlag #27

Closed
vanvuongngo opened this issue Jul 23, 2020 · 2 comments
Closed

Upload fails - no attribute IntFlag #27

vanvuongngo opened this issue Jul 23, 2020 · 2 comments

Comments

@vanvuongngo
Copy link

Upload firmware with platform.io fails. Upload with kflash_gui is working.

Platform.io version: Core 4.3.4, Home 3.2.3
Kendryte K210 platform version: 1.2.2

platform.ini

[env:sipeed-maix-go]
platform = kendryte210
board = sipeed-maix-go
framework = arduino

; serial monitor baudrate
monitor_speed = 115200

upload_port = /dev/ttyUSB1

Upload - Error:

Use manually specified: /dev/ttyUSB1
Uploading .pio/build/sipeed-maix-go/firmware.bin
Traceback (most recent call last):
  File ".platformio/packages/tool-kflash-kendryte210/kflash.py", line 13, in <module>
    import argparse
  File "/usr/lib/python3.8/argparse.py", line 88, in <module>
    import re as _re
  File ".platformio/penv/lib/python3.8/re.py", line 143, in <module>
    class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
*** [upload] Error 1
======================================= [FAILED] Took 3.11 seconds =======================================
The terminal process "platformio 'run', '--target', 'upload'" terminated with exit code: 1.
@vanvuongngo vanvuongngo changed the title Upload failed Upload failed - no attribute IntFlag Jul 23, 2020
@vanvuongngo vanvuongngo changed the title Upload failed - no attribute IntFlag Upload fails - no attribute IntFlag Jul 23, 2020
@vanvuongngo
Copy link
Author

same issue: #19

@vanvuongngo
Copy link
Author

I deleted the enum folder and now it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant