MadDM installation error

Asked by Saurabh Niyogi

Dear authors,

 I am trying to install Maddm in MG5_v_2_6_7 using install command. I am getting the following error

========
2021-12-17 20:44:21 (307 KB/s) - ‘maddm.tgz’ saved [605702/605702]

compile maddm. This might take a while.
no compilation needed for plugin. Loading plugin information,

Command "install maddm" interrupted with error:
Exception : Plugin maddm fail to be loaded. Please contact the author of the PLUGIN
  Error No module named numpy.core.fromnumeric
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.
===========
I have python 3 installed including Numpy and scipy. Kindly guide me through. Thanks

Saurabh Niyogi

Question information

Language:
English Edit question
Status:
Answered
For:
MadDM Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Daniele Massaro (dmassaro) said :
#1

Dear Saurabh Niyogi,

currently, MadDM supports only Python 2.
I suggest you to try the installation again using Python 2.7

Cheers.
--
Daniele Massaro

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#2

Thanks for quick reply. So, how do I use python 2.7 during installation ? Because I install MadDM inside Madgraph environment via "install MadDM" command. This will be helpful for me. Thanks a lot.
Cheers,
Saurabh

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

Actually MG5aMC 2.6.7 is only python2 compatible. But that version is so old that you are likely not compatible with the version of maddm that is now available online.

MG5aMC does not support anymore python2.6 (which you might be using).
My advise is to use at least the long term stable version of mG5aMC (2.9.7).
and to allow to have maddm there you need to do
python2.7 ./bin/mg5_aMC
then type install maddm

Cheers,

Olivier

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#4

Sorry, I installed MG5_aMC v2.9.7 using
>>python2.7 ./bin/mg5_aMC
Then while installing maddm, (>> install maddm) is still giving me exactly same error !!

I just want to mention: when I am installing MG5 using Python 2.7, it gives warning that python2 support will be removed in last quarter 2021. However, following Daniele's reply, MadDM supports only Python 2.7. Is there any contradiction, or I am missing something ? Thanks,

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

Hi,

This means that maddm will (likely) not be compatible with MG5aMC 3.4.0.

Cheers,

Olivier

> On 18 Dec 2021, at 18:30, Saurabh Niyogi <email address hidden> wrote:
>
> Question #699907 on MadDM changed:
> https://answers.launchpad.net/maddm/+question/699907
>
> Status: Answered => Open
>
> Saurabh Niyogi is still having a problem:
> Sorry, I installed MG5_aMC v2.9.7 using
>>> python2.7 ./bin/mg5_aMC
> Then while installing maddm, (>> install maddm) is still giving me exactly same error !!
>
> I just want to mention: when I am installing MG5 using Python 2.7, it
> gives warning that python2 support will be removed in last quarter
> 2021. However, following Daniele's reply, MadDM supports only Python
> 2.7. Is there any contradiction, or I am missing something ? Thanks,
>
> --
> You received this question notification because your team maddm is an
> answer contact for MadDM.

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

Just to add, that a python3 version of maddm is actually under validation: lp:~maddm/maddm/python3
and seems to work quite nicely now (but no clue if this is going to be released before or after MG5aMc 3.4.0)

Cheers,

Olivier

Revision history for this message
Saurabh Niyogi (saurabh12102003) said :
#7

Okay, thanks.
Actually, I was able to install maddm in MG5v 2.8.3.2. But while running

>>>python2.7 ./bin/maddm.py

No module named scipy.interpolate
WARNING: scipy module not found! Some Indirect detection features will be disabled.
Plugin PLUGIN.maddm is not supported by this version of MG5aMC.

Can you kindly help, I am unable to understand the problem . Thanks and Merry Christmas!! Enjoy..

Saurabh

Revision history for this message
Daniele Massaro (dmassaro) said :
#8

Dear Saurabh Niyogi,

your python installation is missing the scipy package, that you can install by typing

python2.7 -m pip install --user scipy

on the terminal, where python2.7 is the same you use to run maddm (as you wrote).

Alternatively, if you are using conda, then you can type

conda install scipy

Please, have a look at https://scipy.org/install/ for further information.
The scipy package is used by the indirect detection part of MadDM, so if you don't have it, many features would be disabled.

Cheers. Happy New Year.
--
Daniele

Can you help with this problem?

Provide an answer of your own, or ask Saurabh Niyogi for more information if necessary.

To post a message you must log in.