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

Syntax Error when Fetching Sources for UEFI Build #1

Open
naortega opened this issue Aug 30, 2021 · 0 comments
Open

Syntax Error when Fetching Sources for UEFI Build #1

naortega opened this issue Aug 30, 2021 · 0 comments

Comments

@naortega
Copy link

naortega commented Aug 30, 2021

When trying to fetch the sources with the first init command I get a syntax error with a Python script within the container:

$ sudo docker run -v "$PWD:/work" 8040efibldr -u $(id -u) -g $(id -g) -- init
/work/build /work
gpg: keybox '/home/build/.repoconfig/gnupg/pubring.kbx' created
gpg: /home/build/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 16530D5E920F5C65: public key "Repo Maintainer <[email protected]>" imported
gpg: key 67B7E448692B382C: public key "Conley Owens <[email protected]>" imported
gpg: Total number processed: 2
gpg:               imported: 2
Get https://gerrit.googlesource.com/git-repo/clone.bundle
Get https://gerrit.googlesource.com/git-repo
  File "/work/build/.repo/repo/main.py", line 79
    file=sys.stderr)
        ^
SyntaxError: invalid syntax
/work

This is from the gerrit/git-repo repository, from the link above, but this doesn't seem to be an actual syntax error in the script, at least if you pull the repository as-is, as pytest doesn't find this as an error, and the syntax of that command in the code seems to be well-formatted:

  print('repo: error: Python 2 is no longer supported; '
        'Please upgrade to Python {}.{}+.'.format(*MIN_PYTHON_VERSION_SOFT),
        file=sys.stderr)

So I suspect this is an issue with the docker, and not with the code of this other repository.

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