Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

boards.txt.py fails in 2.4.2 release package

Open ccantill opened this issue 8 years ago • 4 comments

The 2.4.2 release zip doesn't include the package directory or the docs directory. Trying to run tools\boards.txt.py --allgen --allowWPS results in a crash. You need to manually download those files from github to make it work.

ccantill avatar Aug 04 '18 20:08 ccantill

Verified on my own. The auto-package-generator needs to be updated:

$ python tools/boards.txt.py --allgen
Traceback (most recent call last):
  File "tools/boards.txt.py", line 1539, in <module>
    package()
  File "tools/boards.txt.py", line 1300, in package
    os.rename(pkgfname, pkgfname_read)
OSError: [Errno 2] No such file or directory

In boards.txt.py it's looking for the JSON file:

def package ():

    pkgfname = "package/package_esp8266com_index.template.json"
    pkgfname_read = pkgfname

    checkdir()

    if packagegen:
        pkgfname_read = pkgfname + '.orig'
        if os.path.isfile(pkgfname_read):
            os.remove(pkgfname_read)
        os.rename(pkgfname, pkgfname_read)
...

earlephilhower avatar Aug 05 '18 02:08 earlephilhower

Could you try with --allowWPS --boardsgen ?

d-a-v avatar Aug 05 '18 08:08 d-a-v

With --allowWPS --boardsgen it's working fine.

ccantill avatar Aug 05 '18 14:08 ccantill

Fixed in documentation by #5018

d-a-v avatar Sep 04 '18 23:09 d-a-v