Use Python2 instead of Python


#1

Hi there !
I tried to build the SDK on one of my computers, successfully.
I tried on another, and it failed because #!/usr/bin/env python points on Python3.

Please, please please write

    #!/usr/bin/env python2

instead of

    #!/usr/bin/env python

on top of all the SDK build scripts !

Thanks :slight_smile:


#2

PS : Right now I have to create a virtualenv… So install python-virtualenv. Not great !


#3

Hi,

The build scripts are designed to work on both python 2 & 3 … so it means that there is a problem!

I’ll try to fix this.

Nicolas.


#4

Hi again,

I pushed some changes on the ARSDKBuildUtils repo which should fix the build on python 3. Let me know if it works on your side :wink:

Regards,
Nicolas.


#5

OK for ./CheckEnv.py ! That works fine now :smiley:

But there are some other errors :

print 'ARG ' + arg
SyntaxError: Missing parentheses in call to 'print'

A ctrl-maj-F gives me

  • ARSDKBuildUtils/ConfigureWrapper/openssl/customBuild
  • mavlink/generator/lib/minixsv/minixsvWrapper.py
  • mavlink/pymavlink/test/test.py

#6

Ok, the issue was on subcalls to python (which on my computer are resolved to python2.7 … I’ll check this again :wink:


#7

Yes, and it seems it’s only about brackets :smiley: