Fix for repo tool on older F&S Development Machines

  • Error Report

    Our yocto-download script uses the repo tool to get all the yocto-layers and sources necessary for a successful build.

    The repo tool recently changed, so that our yocto-download script breaks on older Fedora Machines with the following error:

    1. $ ./yocto-download
    2. Getting download information (repo init)
    3. File "./repo", line 51
    4. def print(self, *args, **kwargs):
    5. ^
    6. SyntaxError: invalid syntax


    The fix for this issue is fairly simple. The default python version must be set to python3. This can be done with the following command:

    1. sudo ln -sf /usr/bin/python3 /usr/bin/python

    python3 should already be present, but you can check this with ll /usr/bin/python*. In case it is not present, it can be installed with the package manager via sudo dnf install python3.

    Your F&S Support Team