mg5_aMC executable shows error

Asked by SUBHASISH BEHERA on 2020-01-15

Dear Olivier,

I am getting an unusual issue while running ./bin/mg5_aMC command.
System configurations :
macOS, Catalina, version: 10.15.2 (19C57)
Python 3.7.6
MG5_aMC_v2_6_6

gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.16)
Target: x86_64-apple-darwin19.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

The followings are the errors :

  File "./bin/mg5_aMC", line 187
    print 'writting history and quit on KeyboardInterrupt'
                                                         ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('writting history and quit on KeyboardInterrupt')?

Please have a look. Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2020-01-16
Last query:
2020-01-16
Last reply:
2020-01-15

Hi,

We do not support Python3 yet.
Please try with Python2

Cheers,

Olivier

> On 15 Jan 2020, at 22:52, SUBHASISH BEHERA <email address hidden> wrote:
>
> New question #688019 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/688019
>
> Dear Olivier,
>
> I am getting an unusual issue while running ./bin/mg5_aMC command.
> System configurations :
> macOS, Catalina, version: 10.15.2 (19C57)
> Python 3.7.6
> MG5_aMC_v2_6_6
>
> gcc --version
> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
> Apple clang version 11.0.0 (clang-1100.0.33.16)
> Target: x86_64-apple-darwin19.2.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
>
>
> The followings are the errors :
>
> File "./bin/mg5_aMC", line 187
> print 'writting history and quit on KeyboardInterrupt'
> ^
> SyntaxError: Missing parentheses in call to 'print'. Did you mean print('writting history and quit on KeyboardInterrupt')?
>
>
> Please have a look. Thanks in advance.
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Dear Olevier,

My apology for the spam.
I have set the python@2 as the default one and it works now.
But what if we want to use python-3.X ?

Thanks,
Subhasish

Thanks Olivier Mattelaer, that solved my question.