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

Error cloning repository #5

Open
ciror00 opened this issue Jan 13, 2021 · 3 comments
Open

Error cloning repository #5

ciror00 opened this issue Jan 13, 2021 · 3 comments

Comments

@ciror00
Copy link

ciror00 commented Jan 13, 2021

Hi!

I am following the SDK installation steps. When i do step clone workspace, it shows me the following error:

$ repo init -u https://github.com/Parrot-Developers/groundsdk-manifest.git
Traceback (most recent call last):
  File "/home/ciro/code/parrot-groundsdk/.repo/repo/main.py", line 56, in <module>
    from subcmds.version import Version
  File "/home/ciro/code/parrot-groundsdk/.repo/repo/subcmds/__init__.py", line 38, in <module>
    ['%s' % name])
  File "/home/ciro/code/parrot-groundsdk/.repo/repo/subcmds/upload.py", line 27, in <module>
    from hooks import RepoHook
  File "/home/ciro/code/parrot-groundsdk/.repo/repo/hooks.py", line 472
    file=sys.stderr)
        ^
SyntaxError: invalid syntax

Can anybody help me?

@dominiknatter
Copy link

dominiknatter commented Jan 21, 2021

Hi @ciror00,

I face the same problems. I have a running Olympe system on my laptop which was installed about 6 months ago. Now I want to install a second one on another laptop. However, exactly when running the repo init ... command I get this error.

After some research it sounds to me like the SyntaxError is caused when you call print('...', file=sys.stderr) from Python 2. So apparently repo is running the main.py with Python 2.x, even though the shebang says Python3. Even if this is a correct analysis, I was not able to find a solution yet.

Maybe someone from Parrot knows better what has changed in the most recent commits?

Thanks in advance!

@dominiknatter
Copy link

dominiknatter commented Jan 21, 2021

Hi everyone,
by accident I figured out that
repo init -u https://github.com/Parrot-Developers/groundsdk-manifest.git
can be replaced by
./.repo/repo/repo init -u https://github.com/Parrot-Developers/groundsdk-manifest.git
Or maybe one needs to run repo init first in order to get the hidden folder .repo into the folder ~/code/parrot-groundsdk.
Subsequently, replace
repo sync
by
./.repo/repo/repo sync.

For me at least it finished without an error and I was able to continue and complete the Olympe installation.

@ValerioJiang
Copy link

Hi everyone,
by accident I figured out that
repo init -u https://github.com/Parrot-Developers/groundsdk-manifest.git
can be replaced by
./.repo/repo/repo init -u https://github.com/Parrot-Developers/groundsdk-manifest.git
Or maybe one needs to run repo init first in order to get the hidden folder .repo into the folder ~/code/parrot-groundsdk.
Subsequently, replace
repo sync
by
./.repo/repo/repo sync.

For me at least it finished without an error and I was able to continue and complete the Olympe installation.

Thanks man, i resolved this issue otherwise impossible to figure it out the solution :)

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

3 participants