Comments (7)
Hi @dimitre ! This issue should have been fixed already. Could you please upload to https://hastebin.com/ the contents of /Users/z/.platformio/packages/tool-scons/tool-kflash-kendryte210/kflash.py
file?
Thanks!
from platform-kendryte210.
Hi, @fivefishstudios
In order to make kflash run in python2, the enum module is placed in the kflash directory, which will be encountered in recent python3. You can open the kflash directory like this
C:\Users\{your user name}\.platformio\packages\tool-kflash-kendryte210
then delete the enum
folder and test it again and it should be able to download successfully.
from platform-kendryte210.
Thank you so much! It's working now.
from platform-kendryte210.
I'm having a similar issue here
autechre:arduino-blink z$ pio run
Processing sipeed-maix-bit (platform: kendryte210; framework: arduino; board: sipeed-maix-bit)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'enum' has no attribute 'IntFlag'
Traceback (most recent call last):
File "/Users/z/.platformio/packages/tool-scons/script/scons", line 104, in <module>
import pkg_resources
File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 24, in <module>
import re
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/re.py", line 143, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
And I didn't find this enum file to move or rename. any ideas?
edit: now I can build everything after removing enum34 using command
sudo -H pip uninstall enum34
from platform-kendryte210.
Now it is working here but this file is not present
ls -alF /Users/z/.platformio/packages/tool-scons/
total 1720
drwx------ 16 z staff 512 Jan 28 01:17 ./
drwxr-xr-x 12 z staff 384 Jan 28 03:18 ../
-rwxr-xr-x 1 z staff 238440 Aug 8 11:50 CHANGES.txt*
-rw-r--r-- 1 z staff 1071 Aug 8 11:50 LICENSE.txt
-rw-r--r-- 1 z staff 5795 Aug 8 11:50 MANIFEST
-rw-r--r-- 1 z staff 451 Aug 8 11:50 PKG-INFO
-rw-r--r-- 1 z staff 8266 Aug 8 11:50 README.txt
-rwxr-xr-x 1 z staff 2620 Aug 8 11:50 RELEASE.txt*
drwxr-xr-x 3 z staff 96 Jan 28 01:17 engine/
-rwxr-x--- 1 z staff 146 Aug 26 15:53 package.json*
-rw-r--r-- 1 z staff 26025 Aug 8 11:50 scons-time.1
-rw-r--r-- 1 z staff 535346 Aug 8 11:50 scons.1
-rw-r--r-- 1 z staff 5226 Aug 8 11:50 sconsign.1
drwxr-xr-x 7 z staff 224 Jan 28 01:17 script/
-rw-r--r-- 1 z staff 127 Aug 8 11:50 setup.cfg
-rwxr-xr-x 1 z staff 21793 Aug 8 11:50 setup.py*
from platform-kendryte210.
@dimitre Sorry, that's my bad, I gave you a wrong path. Here is the correct one /Users/z/.platformio/packages/tool-kflash-kendryte210/kflash.py
from platform-kendryte210.
here
https://hastebin.com/gezacocupi.py
I removed all kflash installed through pip and pip3 and platformio installed it automagically after removing enum34
from platform-kendryte210.
Related Issues (20)
- Add Sipeed RV Debuger cfg file. HOT 4
- Update kendryte-standalone-sdk to v0.5.6 HOT 5
- Cannot Blink Built-in LED with Basic Example Code HOT 3
- Problems running the debugger HOT 9
- Spaces in path causes build errors (kendryte210) HOT 1
- Maix Bit with Sipeed USB-JTAG/TTL RISC-V Debugger HOT 1
- Support for ARM CPUs HOT 5
- Upload fails - no attribute IntFlag HOT 2
- Platformio outdated platform
- information: is there some specific #define for this platform? HOT 1
- Upgrade standalone SDK to 5.7 HOT 2
- Exceptions cause sys_exit in C++
- Wrong download link HOT 1
- Sipeed Maix Amigo board support HOT 3
- MAIXCube Support HOT 2
- tool-openocd-kendryte not available for linux_armv7l HOT 2
- Which board is for widora AIRV that used to use kendryte210 ?
- platformio - Problem with maix one dock(k210) in debug using openocd
- Update Maixduino to 0.3.11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform-kendryte210.