Madspin crashes with mg5_path error

Bug #1444227 reported by Jeff Asaf Dror
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Invalid
Undecided
Unassigned

Bug Description

I'm trying to use Madspin on the fly using a simple test process, generate p p > t t~, and the default madspin card but I get the error,

  Error detected in "generate_events run_01"
  write debug file /home/jeffdror/Downloads/Programs/MG5_aMC_v2_2_1/test/run_01_tag_1_debug.log
  If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
  MadGraph5Error : Can't load MadSpin
             The variable mg5_path might not be correctly configured.

I'm not sure where to set mg5_path so I can't check whether this is configured correctly.I've attached the log file.

Possibly relevant system details:
Ubuntu 14.04
64 bit

Tags: madspin
Revision history for this message
Jeff Asaf Dror (asafjeffdror) wrote :
tags: added: madspin
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1444227] [NEW] Madspin crashes with mg5_path error

Hi,

the mg5_path is part of the following configuration file:
./Cards/me5_configuration.txt
and need to point to a valid MG5 directory for some of the functionality (one of them is MadSpin)

Cheers,

Olivier

On 15 Apr 2015, at 02:45, Jeff Asaf Dror <email address hidden> wrote:

> Public bug reported:
>
> I'm trying to use Madspin on the fly using a simple test process,
> generate p p > t t~, and the default madspin card but I get the error,
>
> Error detected in "generate_events run_01"
> write debug file /home/jeffdror/Downloads/Programs/MG5_aMC_v2_2_1/test/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
> MadGraph5Error : Can't load MadSpin
> The variable mg5_path might not be correctly configured.
>
> I'm not sure where to set mg5_path so I can't check whether this is
> configured correctly.I've attached the log file.
>
> Possibly relevant system details:
> Ubuntu 14.04
> 64 bit
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
>
> ** Tags: madspin
>
> ** Attachment added: "run_01_tag_1_debug.log"
> https://bugs.launchpad.net/bugs/1444227/+attachment/4375740/+files/run_01_tag_1_debug.log
>
> ** Tags added: madspin
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1444227
>
> Title:
> Madspin crashes with mg5_path error
>
> Status in MadGraph5_aMC@NLO Generator:
> New
>
> Bug description:
> I'm trying to use Madspin on the fly using a simple test process,
> generate p p > t t~, and the default madspin card but I get the error,
>
> Error detected in "generate_events run_01"
> write debug file /home/jeffdror/Downloads/Programs/MG5_aMC_v2_2_1/test/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
> MadGraph5Error : Can't load MadSpin
> The variable mg5_path might not be correctly configured.
>
> I'm not sure where to set mg5_path so I can't check whether this is
> configured correctly.I've attached the log file.
>
> Possibly relevant system details:
> Ubuntu 14.04
> 64 bit
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1444227/+subscriptions

Revision history for this message
Jeff Asaf Dror (asafjeffdror) wrote :

Hi Olivier,

Thanks for the response. I just checked the me5_configuration.txt file and the mg5_path is pointing to a valid MG5 directory. Do you know of any other reasons why this error message would appear?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1444227] Madspin crashes with mg5_path error

Looks like they are an error when loading MadSpin,

in order to have more clue what the problem is. I would need you to run in debug mode:
i.e. launch your script with
./bin/mg5_aMC —debug

Then the debug file, should have more information about the reason of the crash.

Cheers,

Olivier

On 15 Apr 2015, at 10:51, Jeff Asaf Dror <email address hidden> wrote:

> Hi Olivier,
>
> Thanks for the response. I just checked the me5_configuration.txt file
> and the mg5_path is pointing to a valid MG5 directory. Do you know of
> any other reasons why this error message would appear?
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1444227
>
> Title:
> Madspin crashes with mg5_path error
>
> Status in MadGraph5_aMC@NLO Generator:
> New
>
> Bug description:
> I'm trying to use Madspin on the fly using a simple test process,
> generate p p > t t~, and the default madspin card but I get the error,
>
> Error detected in "generate_events run_01"
> write debug file /home/jeffdror/Downloads/Programs/MG5_aMC_v2_2_1/test/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
> MadGraph5Error : Can't load MadSpin
> The variable mg5_path might not be correctly configured.
>
> I'm not sure where to set mg5_path so I can't check whether this is
> configured correctly.I've attached the log file.
>
> Possibly relevant system details:
> Ubuntu 14.04
> 64 bit
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1444227/+subscriptions

Revision history for this message
Jeff Asaf Dror (asafjeffdror) wrote :

Hi Olivier,

Running in debug mode gave the same file I attached earlier. I'm not sure if this was the expected result, but I've attached is the screen output after running in debug mode in case that helps.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi,

No clearly not, I was expecting another error.
Then the only way is to modify the code to have the real error:

could you modify the file
/home/jeffdror/Downloads/Programs/MG5_aMC_v2_2_1/madgraph/interface/common_run_interface.py
around line 1730
you should have:

            if __debug__:
                raise
            else:
                raise self.ConfigurationError, '''Can\'t load MadSpin
            The variable mg5_path might not be correctly configured.’''

Could you replace it by:
            if True:
                raise

Thanks for your patience,

Olivier

On 15 Apr 2015, at 12:18, Jeff Asaf Dror <email address hidden> wrote:

> Hi Olivier,
>
> Running in debug mode gave the same file I attached earlier. I'm not
> sure if this was the expected result, but I've attached is the screen
> output after running in debug mode in case that helps.
>
> ** Attachment added: "debug.log"
> https://bugs.launchpad.net/mg5amcnlo/+bug/1444227/+attachment/4376129/+files/debug.log
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1444227
>
> Title:
> Madspin crashes with mg5_path error
>
> Status in MadGraph5_aMC@NLO Generator:
> New
>
> Bug description:
> I'm trying to use Madspin on the fly using a simple test process,
> generate p p > t t~, and the default madspin card but I get the error,
>
> Error detected in "generate_events run_01"
> write debug file /home/jeffdror/Downloads/Programs/MG5_aMC_v2_2_1/test/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
> MadGraph5Error : Can't load MadSpin
> The variable mg5_path might not be correctly configured.
>
> I'm not sure where to set mg5_path so I can't check whether this is
> configured correctly.I've attached the log file.
>
> Possibly relevant system details:
> Ubuntu 14.04
> 64 bit
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1444227/+subscriptions

Revision history for this message
Jeff Asaf Dror (asafjeffdror) wrote :

Hi Olivier,

I wasn't able to find exactly the if statement you mention but I hope I did an equivalent modification. I found the lines (around 1730):
        try:
             import MadSpin.decay as decay
             import MadSpin.interface_madspin as interface_madspin
        except ImportError:
            raise self.ConfigurationError, '''Can\'t load MadSpin
            The variable mg5_path might not be correctly configured.'''
I changed these to
        import MadSpin.decay as decay
        import MadSpin.interface_madspin as interface_madspin

The new debug file is attached. It seems to suggest I'm missing an "aloha" module.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi,

Indeed we move that file, but I thought that it was either in 2.2.3 or more likely in 2.3.0.
In any case, I have put that file in attachment.
you have to put in the following directory:
tests/unit_tests/various

Cheers,

Olivier

PS: It might be safer to re-download a full version of Madgraph, to be sure to use a clean version of the code.

Revision history for this message
Jeff Asaf Dror (asafjeffdror) wrote :

Hi Olivier,

I have re-downloaded the a clean version and now it works well. Looking back at my old Madgraph directory I see that I don't have a tests directory at all. I have a tendancy to name directories test and delete them so most likely I accidentally deleted the "tests" directory as well...

Thanks for your help and sorry for the trouble,
Jeff

Changed in mg5amcnlo:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.