Skip to content

boards.txt.py fails in 2.4.2 release package #5005

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

Closed
ccantill opened this issue Aug 4, 2018 · 4 comments
Closed

boards.txt.py fails in 2.4.2 release package #5005

ccantill opened this issue Aug 4, 2018 · 4 comments
Assignees

Comments

@ccantill
Copy link

ccantill commented Aug 4, 2018

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.

@earlephilhower
Copy link
Collaborator

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

@d-a-v
Copy link
Collaborator

d-a-v commented Aug 5, 2018

Could you try with --allowWPS --boardsgen ?

@ccantill
Copy link
Author

ccantill commented Aug 5, 2018

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

@d-a-v
Copy link
Collaborator

d-a-v commented Sep 4, 2018

Fixed in documentation by #5018

@d-a-v d-a-v closed this as completed Sep 4, 2018
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

4 participants