Problem with bin/madweight.py

Bug #1691050 reported by Kirill Skovpen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Fix Released
Undecided
Unassigned

Bug Description

Hello,

I've been trying to run MadWeight in MG5_aMC_v2_5_4 and I see that after creating the MadWeight directory one would get the following error while trying to run ./bin/madweight.py:

Launch in debug mode
Traceback (most recent call last):
  File "bin/madweight.py", line 45, in <module>
    import madweight_interface as MW
  File "/Users/kskovpen/Testarea/MG5_aMC_v2_5_4/THQMadWeight/bin/internal/madweight_interface.py", line 59, in <module>
    import internal.common_run_interface as common_run
  File "/Users/kskovpen/Testarea/MG5_aMC_v2_5_4/THQMadWeight/bin/internal/common_run_interface.py", line 64, in <module>
    import internal.save_load_object as save_load_object
ImportError: No module named save_load_object

And indeed I don't see any save_load_object present in bin/internal/

Does anyone know what could be the issue ?

Thanks,

Kirill

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1691050] [NEW] Problem with bin/madweight.py

Hi Kirill,

I can indeed reproduce the problem and will fix it. In the mean time, you can launch the run like this

./bin/mg5_aMC
Then type:
launch THQMadWeight

Cheers,

Olivier

> On 16 May 2017, at 03:36, Kirill Skovpen <email address hidden> wrote:
>
> Public bug reported:
>
> Hello,
>
> I've been trying to run MadWeight in MG5_aMC_v2_5_4 and I see that after
> creating the MadWeight directory one would get the following error while
> trying to run ./bin/madweight.py:
>
> Launch in debug mode
> Traceback (most recent call last):
> File "bin/madweight.py", line 45, in <module>
> import madweight_interface as MW
> File "/Users/kskovpen/Testarea/MG5_aMC_v2_5_4/THQMadWeight/bin/internal/madweight_interface.py", line 59, in <module>
> import internal.common_run_interface as common_run
> File "/Users/kskovpen/Testarea/MG5_aMC_v2_5_4/THQMadWeight/bin/internal/common_run_interface.py", line 64, in <module>
> import internal.save_load_object as save_load_object
> ImportError: No module named save_load_object
>
> And indeed I don't see any save_load_object present in bin/internal/
>
> Does anyone know what could be the issue ?
>
> Thanks,
>
> Kirill
>
> ** Affects: mg5amcnlo
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1691050
>
> Title:
> Problem with bin/madweight.py
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hello,
>
> I've been trying to run MadWeight in MG5_aMC_v2_5_4 and I see that
> after creating the MadWeight directory one would get the following
> error while trying to run ./bin/madweight.py:
>
> Launch in debug mode
> Traceback (most recent call last):
> File "bin/madweight.py", line 45, in <module>
> import madweight_interface as MW
> File "/Users/kskovpen/Testarea/MG5_aMC_v2_5_4/THQMadWeight/bin/internal/madweight_interface.py", line 59, in <module>
> import internal.common_run_interface as common_run
> File "/Users/kskovpen/Testarea/MG5_aMC_v2_5_4/THQMadWeight/bin/internal/common_run_interface.py", line 64, in <module>
> import internal.save_load_object as save_load_object
> ImportError: No module named save_load_object
>
> And indeed I don't see any save_load_object present in bin/internal/
>
> Does anyone know what could be the issue ?
>
> Thanks,
>
> Kirill
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1691050/+subscriptions

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

Here is the associate patch:

=== modified file 'madgraph/iolibs/export_v4.py'
--- madgraph/iolibs/export_v4.py 2017-05-04 22:22:43 +0000
+++ madgraph/iolibs/export_v4.py 2017-05-16 15:15:40 +0000
@@ -2559,8 +2559,12 @@
                             self.dir_path+'/bin/internal/common_run_interface.py')
         cp(_file_path+'/various/misc.py', self.dir_path+'/bin/internal/misc.py')
         cp(_file_path+'/iolibs/files.py', self.dir_path+'/bin/internal/files.py')
- #cp(_file_path+'/iolibs/save_load_object.py',
- # self.dir_path+'/bin/internal/save_load_object.py')
+ cp(_file_path+'/iolibs/save_load_object.py',
+ self.dir_path+'/bin/internal/save_load_object.py')
+ cp(_file_path+'/madevent/gen_crossxhtml.py',
+ self.dir_path+'/bin/internal/gen_crossxhtml.py')
+ cp(_file_path+'/various/FO_analyse_card.py',
+ self.dir_path+'/bin/internal/FO_analyse_card.py')
         cp(_file_path+'/iolibs/file_writers.py',
                               self.dir_path+'/bin/internal/file_writers.py')
         #model file

Changed in mg5amcnlo:
status: New → Fix Committed
Changed in mg5amcnlo:
status: Fix Committed → Fix Released
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.