Gridpack crashes

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

Bug Description

I'm getting this output when attempting to run a gridpack on a cluster machine.

Now generating 200000 events with random seed 0 and granularity 1
Traceback (most recent call last):
  File "./madevent/bin/gridrun", line 86, in <module>
    cmd_line = cmd_interface.GridPackCmd(me_dir=root_path, nb_event=args[0], seed=args[1], gran=args[2])
  File "/storage/local/data1/condor/execute/dir_9110/no_xfer/madevent/bin/internal/madevent_interface.py", line 6302, in __init__
    MadEventCmd.__init__(self, me_dir, *completekey, **stdin)
  File "/storage/local/data1/condor/execute/dir_9110/no_xfer/madevent/bin/internal/madevent_interface.py", line 2106, in __init__
    CmdExtended.__init__(self, me_dir, options, *completekey, **stdin)
  File "/storage/local/data1/condor/execute/dir_9110/no_xfer/madevent/bin/internal/madevent_interface.py", line 207, in __init__
    super(CmdExtended, self).__init__(me_dir, options, *arg, **opt)
  File "/storage/local/data1/condor/execute/dir_9110/no_xfer/madevent/bin/internal/common_run_interface.py", line 661, in __init__
    if pjoin(mg5dir, 'PLUGIN') not in self.plugin_path:
  File "/cvmfs/fermilab.opensciencegrid.org/products/larsoft/python/v2_7_13d/Linux64bit+2.6-2.12/lib/python2.7/posixpath.py", line 70, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Revision history for this message
Garrett (thegrb93) wrote :

Any way I can fix this asap?

description: updated
Revision history for this message
Garrett (thegrb93) wrote :

Fixed it myself by setting line 657 of common_run_interface.py to
if MADEVENT and self.options.has_key('mg5_path') and self.options['mg5_path']:

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1745792] Gridpack crashes

Hi,

Thanks for this,

but in the latest version of the code, I see the following at that file/line
        # update the path to the PLUGIN directory of MG%
        if MADEVENT and 'mg5_path' in self.options :

Is it possible that you are not up-to-date with your version of MG5aMC?

Cheers,

Olivier

On 28 Jan 2018, at 20:14, Garrett <<email address hidden><mailto:<email address hidden>>> wrote:

Fixed it myself by setting line 657 of common_run_interface.py to
if MADEVENT and self.options.has_key('mg5_path') and self.options['mg5_path']:

--
You received this bug notification because you are subscribed to
MadGraph5_aMC@NLO.
https://bugs.launchpad.net/bugs/1745792

Title:
 Gridpack crashes

Status in MadGraph5_aMC@NLO:
 New

Bug description:
 I'm getting this output when attempting to run a gridpack on a cluster
 machine.

 Now generating 200000 events with random seed 0 and granularity 1
 Traceback (most recent call last):
   File "./madevent/bin/gridrun", line 86, in <module>
     cmd_line = cmd_interface.GridPackCmd(me_dir=root_path, nb_event=args[0], seed=args[1], gran=args[2])
   File "/storage/local/data1/condor/execute/dir_9110/no_xfer/madevent/bin/internal/madevent_interface.py", line 6302, in __init__
     MadEventCmd.__init__(self, me_dir, *completekey, **stdin)
   File "/storage/local/data1/condor/execute/dir_9110/no_xfer/madevent/bin/internal/madevent_interface.py", line 2106, in __init__
     CmdExtended.__init__(self, me_dir, options, *completekey, **stdin)
   File "/storage/local/data1/condor/execute/dir_9110/no_xfer/madevent/bin/internal/madevent_interface.py", line 207, in __init__
     super(CmdExtended, self).__init__(me_dir, options, *arg, **opt)
   File "/storage/local/data1/condor/execute/dir_9110/no_xfer/madevent/bin/internal/common_run_interface.py", line 661, in __init__
     if pjoin(mg5dir, 'PLUGIN') not in self.plugin_path:
   File "/cvmfs/fermilab.opensciencegrid.org/products/larsoft/python/v2_7_13d/Linux64bit+2.6-2.12/lib/python2.7/posixpath.py", line 70, in join
     elif path == '' or path.endswith('/'):
 AttributeError: 'NoneType' object has no attribute 'endswith'

To manage notifications about this bug go to:
https://bugs.launchpad.net/mg5amcnlo/+bug/1745792/+subscriptions

Revision history for this message
Garrett (thegrb93) wrote :

Yes I'm up to date. That is the line I replaced and it doesn't work because 'mg5_path' in self.options returns true even when self.options["mg5_path"] contains a NoneType

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

Thanks a lot, I have put your changes inside the development version.

Thanks,

Olivier

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.