MadSTR incompatibility with Py3

Asked by Yoran Yeh

Dear MadGraph experts,

For running a particular BSM model in MadGraph I would like to install the MadSTR plugin. However, during the MadSTR installation a message pops up saying "Plugin not python3 compatible! It will run with python2"
However, when I run MadGraph itself with python 2, is says that py2 support will be removed in the last quarter of 2021.

 My question is if it's possible to run the MadSTR plugin with python3? Can we expect to see a new release or is a developer version that I could try to use?

I'm new to using MadGraph, so my apologies in advance if I'm missing something obvious.

Thanks a lot!
Yoran

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
marco zaro Edit question
Solved by:
marco zaro
Solved:
Last query:
Last reply:
Revision history for this message
marco zaro (marco-zaro) said :
#1

Hi,
@ Olivier, the py2 error is triggered in madgraph_interface at line 6469 (MG5_aMC v2), by the import statement, with the error being
ValueError : level must be >= 0
Then the exception is caught as if it were a python-related error, and the python2 message is printed.
Still, MadSTR must be polished a bit in order to be able to run at least with the latest MG5_aMC v2 version…
I will try to do that between today and tomorrow

Cheers,

Marco

> On 24 Mar 2022, at 11:20, Olivier Mattelaer <email address hidden> wrote:
>
> Question #701056 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/701056
>
> Assignee: None => marco zaro
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
Best marco zaro (marco-zaro) said :
#2

Hi,
i have pushed a version which works with MG5_aMC v 2.9.x (up to the latest release). At the moment, MadSTR does not support v3. You may install it by hand (download from
https://code.launchpad.net/~maddevelopers/mg5amcnlo/MadSTRPlugin
and copy the MadSTR subdir inside the PLUGIN directory of MG5_aMC, then start the code with
./bin/mg5 —mode MadSTR

Cheers,

Marco

> On 24 Mar 2022, at 12:01, marco zaro <email address hidden> wrote:
>
> Question #701056 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/701056
>
> Status: Open => Answered
>
> marco zaro proposed the following answer:
> Hi,
> @ Olivier, the py2 error is triggered in madgraph_interface at line 6469 (MG5_aMC v2), by the import statement, with the error being
> ValueError : level must be >= 0
> Then the exception is caught as if it were a python-related error, and the python2 message is printed.
> Still, MadSTR must be polished a bit in order to be able to run at least with the latest MG5_aMC v2 version…
> I will try to do that between today and tomorrow
>
> Cheers,
>
> Marco
>
>> On 24 Mar 2022, at 11:20, Olivier Mattelaer <email address hidden> wrote:
>>
>> Question #701056 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/701056
>>
>> Assignee: None => marco zaro
>>
>> --
>> You received this question notification because you are assigned to this
>> question.
>
> --
> You received this question notification because you are assigned to this
> question.

Revision history for this message
Yoran Yeh (yoranyeh) said :
#3

Dear Marco,
That is amazing, thank you very much!
I will try to install it ASAP and let you know if it works.

Cheers,
Yoran

Revision history for this message
Yoran Yeh (yoranyeh) said :
#4

Thanks marco zaro, that solved my question.

Revision history for this message
marco zaro (marco-zaro) said :
#5

Hi again,
concerning the py2 warning, it should not be there any longer with MG5_aMC v 2.9.10 (to be released)