Parrot-Developers / olympe

Python controller library for Parrot Drones
https://developer.parrot.com/docs/olympe/index.html
BSD 3-Clause "New" or "Revised" License
80 stars 36 forks source link

Issue with repo init #25

Closed Interaze closed 3 years ago

Interaze commented 3 years ago

When I attempt to follow the installation instructions, the repo init fails. This is provisioned with:

file=sys.stderr)
        ^
SyntaxError: invalid syntax

I updated the alias of python to be python3 (Ubuntu 18.04), but it doesn't appear to have made a change. Any insight would be appreciated.

wangjw55 commented 3 years ago

You can try to open hooks.py and delete ", file=sys.stderr" in the three lines of code in the figure below. This is what I did and the test has been successful. 111

markpdxt commented 3 years ago

On Ubuntu 18.04, just setting the python alias was successful for me.

JeromeBouvard commented 3 years ago

It's actually a problem with repo and python. Using the last version of repo from Google fixes the issue.

mkdir -p ~/.bin
PATH="${HOME}/.bin:${PATH}"
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+rx ~/.bin/repo