Coder Social home page Coder Social logo

Comments (7)

valeros avatar valeros commented on September 26, 2024 1

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.

bitsk avatar bitsk commented on September 26, 2024

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.

fivefishstudios avatar fivefishstudios commented on September 26, 2024

Thank you so much! It's working now.

from platform-kendryte210.

dimitre avatar dimitre commented on September 26, 2024

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?
Uploading Screen Shot 2020-01-28 at 01.27.13.png…

edit: now I can build everything after removing enum34 using command

sudo -H pip uninstall enum34

from platform-kendryte210.

dimitre avatar dimitre commented on September 26, 2024

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.

valeros avatar valeros commented on September 26, 2024

@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.

dimitre avatar dimitre commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.