Conversion of python2 compatible model to python3 compatible.

Asked by Writasree Maitra

The model I'm trying to import is python2 compatible; but I need python3 compatibility. I tried to use 'convert model' command; but it's not working.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

Ok, and what is the question?

Cheers,

Olivier

PS: The command is not expected to work for all model .

Revision history for this message
Writasree Maitra (writz) said :
#2

Is there any other way I can convert a python2 compatible model to a python3 compatible model?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

Hi,

I do not know any strong method to convert python2 code to python3 code.
you can try the "2to3" executable, or the one I often use "python-modernize"

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Writasree Maitra for more information if necessary.

To post a message you must log in.