MadAnalysis install

Asked by Halley_X

Hi experts,
  I have installed MadAnalysis4 in my computer, but then I notice that MadAnalysis4 is not maintained anymore. So, if I want to install MadAnalysis5, can I update 4 to 5? Or do I need to delete madanalysis4 and madanalysis.tgz packages to install 5 ?
  Best wishes!

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

You can have both install at the same time. So you do not have to un-install one to install the second one.

Cheers,

Olivier

Revision history for this message
Halley_X (neuromance) said :
#2

Thanks for your reply. I have deleted madanalysis4 and install 5 just a moment ago. But it appear an error:
Default installation of Madanalys5 failed.
MG5aMC will now attempt to reinstall it with the options '--no_MA5_further_install --no_root_in_MA5'.
This will however limit MA5 applicability for hadron-level analysis.
If you would like to prevent MG5aMC to re-attempt MA5 installation, start MG5aMC with './bin/mg5_aMC --debug'.

Is this normal? Or what else can I do to use MA5 right?

Revision history for this message
Halley_X (neuromance) said :
#3

Now the computer is reinstalling it again and again and appear the same error. How can I stop it reinstall MG5?

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

To stop the installation, you can hit CTRL-C on your keyboard.
For the infinite loop, I thought this was fixed, which version of MG5aMC did you use?

Cheers,

Olivier

Revision history for this message
Halley_X (neuromance) said :
#5

MG2.8 . I have stopped the installation. But how can I install MA5?

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

Do you have the log file of the failed installation?

Olivier

Revision history for this message
Halley_X (neuromance) said :
#7

Sorry, I can't find MA5's log file, I see that there is a tip :
 Installing tool 'madanalysis5'...
    > Follow the installation progress by running the command below in a separate terminal)
    > tail -f /home/xhy/MadGraph5/MG5_aMC_v2_8_0/HEPTools/madanalysis5/madanalysis5_install.log

But I don't find it in HEPTools. Also, there is another tip :
Exception: MadAnalysis5 still request Python2

Does it mean I need to use python2 other than python3? But I can use python3 only.

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

Ah you are using python3.
Indeed MadAnalysis5 is not python3 compatible and therefore can not be install via MG5aMC if you run it with python3...

If you do not have python2.7 on your machine then the current situation is that you can not installl MA5 at all on your machine.
I will assign this to MA5 group such that they are aware of the need for them to move to python3 support

Cheers,

Olivier

Revision history for this message
Halley_X (neuromance) said :
#9

Thank you very much. I hear that python2.7 is not supported in ubuntu20, so even I install python2.7 , I think I cannot use it. If that is so, I had better use MA4 and reinstall it.

Revision history for this message
Jack Y. Araz (jackaraz) said :
#10

Hi Halley

Python 2.7 is still supported by Ubuntu 20 but just not shipped with it by default please see the release notes: https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Python3_by_default

You can set up a virtual environment to run Mg5 and Ma5 in there easily.

Note that we are expecting to release py3 support in v1.9 but this will take time.

Cheers
Jack

Revision history for this message
Halley_X (neuromance) said :
#11

Thanks for your suggestion Jack. I'll give it a try.

Revision history for this message
Halley_X (neuromance) said :
#12

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
Benjamin Fuks (fuks) said :
#13

Hi,

We are planning to upgrade the code to Python 3 in the next few months. In the meantime, you should be able to install python 2.7 locally and run ma5 from it.

Cheers,

Benjamin

> On 23 Sep 2020, at 11:30 , Halley Xiong <email address hidden> wrote:
>
> Question #693035 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/693035
>
> Halley Xiong posted a new comment:
> Thank you very much. I hear that python2.7 is not supported in ubuntu20,
> so even I install python2.7 , I think I cannot use it. If that is so, I
> had better use MA4 and reinstall it.
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Halley_X (neuromance) said :
#14

Ok, thanks for your information Benjamin.